Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2004

Tip: Looking for answers? Try searching our database.

Can someone Translate this

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gerry Viator - 26 Apr 2004 13:52 GMT
Hi all,

Can someone translate this C++ to VB.NET

int _tmain(int argc, _TCHAR* argv[])
{
HWND hWnd = ::FindWindow("ConsoleWindowClass",NULL);//Find window

HMENU hMenu = GetSystemMenu(hWnd,FALSE);
DeleteMenu(hMenu,SC_CLOSE,MF_BYCOMMAND);

RECT rc;
::GetWindowRect(hWnd,&rc);
SetWindowPos(hWnd,HWND_NOTOPMOST,rc.left,rc.top,rc.right -
rc.left,rc.bottom - rc.top,SWP_FRAMECHANGED);
               printf("put any key to continue");
getchar();
return 0;
}

Thanks
Gerry
"Ying-Shen Yu[MSFT]" - 27 Apr 2004 06:10 GMT
Hi Gerry,
I have posted the translated version in the original thread.
"Disable x button of another program",
If you have problem when testing with the code, please feel free to reply
in that thread.

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.