|
I'm assuming you wanted to minimize another applications window without clicking it that window's minimize button. You'd have to enumerate through all the windows, using FindWindow, EnumWindows, GetWindowText, until you found the window that you wanted. Then after getting the handle for that window you'd have to use SendMessage to post a WM_SIZE message with a SIZE_MINIMIZED parameter, I think.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello all
actualy i wanted to open a window like my computer & other operating system window inside the vb form.
as all window open on windows desktop
Mannoj
|
|
|
|
|
The short answer is, you can't do that.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In VB.Net how can I get a value masked e.g.
Putting a date into a text box and want to make sure the following format
dd/mm/yyyy
Showing in the text box would be __/__/____ and all the user does is put in the values 01/01/2005 and no other value.
Hope this makes sense?
|
|
|
|
|
Use the Masked Edit Control[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to extract icon from exe file by vs.net 2005 beta 2?
In vb 6.0 , we could use API functon.
Now , how to do it?
Thanks!
|
|
|
|
|
The same way you do it in VB6. You just have to modify the code a bit to use the correct data types. For exmaple, a Long in VB6 is now in Integer in VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It seems the Windows API could not use in vs.net.
The .net project only accept .net of ocx components.
|
|
|
|
|
rushing wrote:
It seems the Windows API could not use in vs.net
Nothing could be further from the truth.
Perhaps if you posted the code you're using, a brief translation could be made?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In vb 6.0 , you could use these code:
Private Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long
total = ExtractIcon(App.hInstance, Me.CommonDialog1.FileName, -1)
For I = 0 To total - 1
p(I) = ExtractIcon(App.hInstance, Me.CommonDialog1.FileName, I)
Next I
For I = 0 To total - 1
DrawIcon Picture1.hdc, 34 * I, 0, p(I)
Next I
|
|
|
|
|
Declare Auto Function ExtractIcon Lib "shell32" ( _
ByVal hInst As IntPtr, _
ByVal lpszFilename As String, _
ByVal nIconIndex As Integer) _
As IntPtr
Declare Auto Function DestroyIcon Lib "user32" ( _
ByVal hIcon As IntPtr) _
As Integer
.
.
.
Dim IconCount As Integer
Dim hIcon As IntPtr
' Get the number of icons in the file. I'm not going to use it here
' but it shows how to do it. -1 tells ExtractIcon to return the number
' of icons in the file.
hIcon = ExtractIcon(Me.Handle, filename, -1)
IconCount = hIcon.ToInt32()
' Get the icon from the file into a Bitmap object. Don't forget to
' release the icon handle when you're done with it! iconNumber is a
' 0-based index into the array of icons in the file.
hIcon = ExtractIcon(Me.Handle, filename, iconNumber)
Dim b As Bitmap = Bitmap.FromHicon(hIcon)
PictureBox1.Image = b
DestroyIcon(hIcon)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
this is out of the programming questions but i'm facing a problem when it comes to vb installation. whEnever i run the vb installation CD, the following error message appeared :
"c:\windows\system32\autoexec.nt. the system file is not suitable for running MS-DOS and microsoft windows applications. choose 'close' to terminate the application."
how can i fix this?
thank you in advance!!
|
|
|
|
|
You might want to try typing that EXACT error message into MSDN's search.
But, based on what you've posted so far, results[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All
I am a new user of vb.net so i havent quite found my feet yet, the question i have im hoping a gaurdian angel can answer ASAP as i have to implement it ASAP
: I want to find out how to check the size/status of an email account eg: a user must get notification everytime a new message is recieved in their mail account(eg yahoo) so what should happen(i think) is that a query be run constantly(in loop) that will check the size of the account and if the size increases from the last state a message box should appear stating a new message recieved.
I dont want to do this through outlook but i dont know how to do it in VB HELP
|
|
|
|
|
email clients implementing email protocols
like pop3 which have commands to get this info
you check at interval time by using timer
Pop3 Protocol[^]
|
|
|
|
|
How can we check to see if a directory is empty?
I need to delete directories whenever they're empty.
E.g. <c:\example\hi.txt> If i delete the Hi.txt, the application should know that there are no more files in C:\Example, thus it will delete this entire directory as well.
|
|
|
|
|
If you're using VB.NET, see this.[^]
<italic>Work hard, Work effectively.
|
|
|
|
|
Hi guys, wonder whether any of you guys have any good links to tutorials that teach you how to make our vb.net program access the notepad and enter data in it and all. Or better yet, make out program straight make a *.txt file and input data into it.. I tried searching around and couldn't find any.. Any help offered is greatly appreciated...Thanz
|
|
|
|
|
VB6 or VB.NET ? Either way, creating a .txt file is pretty trivial, you should google for it. Manipulating Notepad is sure the hard way to go about doing that, by a significant degree.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
VB.net... Yea, did that, came out empty handed.. Googled it, and even search for it here in Codeproject.. But the first time I search here, there was one article on it, but couldn't access it because of page not availble or something,. reload the search page and the article is gone...Any other ideas?
|
|
|
|
|
|
Man, u guys make it seem so easy... Hahaha,
Once again, I am deeply indebted to you, Christian Grauz. Thanz man...
|
|
|
|
|
Hi! Anybody can help me how to add databind of simple combobbox to a listview using vb.net like many items in property box contains boolean values you can select either true of false
|
|
|
|
|
What do you want to do ? How do you want to select boolean items ? Do you want to embeed a combobox in a listview ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes i want to embed a combobox in a listview so that i select items directly from listview For example In an order filling form .
|
|
|
|