I have movable buttons on my form. To move them you right-click and drag them. I however cannot figure out the best way to "snap" them together. If anyone has any ideas on how to do this it would make me happy.
These buttons are created at runtime, if that makes a difference.
Thanks
Jimmy
I did something a little bit easyer:
Declare Function GetWindowThreadProcessId Lib "user32.dll" ( _
ByVal hwnd As Int32, _
ByRef lpdwProcessId As Int32) As Int32
-----
Dim processID As Int32
GetWindowThreadProcessId(GetForegroundWindow(), processID)...
Why was my last post of this deleted?
I need to be able to see what window has focus. If i have two windows I need to be able to figure out which one has focus.
Focus being "grayed out" in windows taskbar.
Thanks
Jimmy
That still seems to crank up the cpu usage. I got an idea this morning to make a panel slide over the form. This panel would be simi transparent on one side and fade to nontransparent on the other. The color of this panel would have to be the Transparent Key. How can I do this to the panel...
After messing with the code you gave me I came up with this:
Private Sub pb1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles pb1.DragDrop
Try
Dim filedrops() As String = e.Data.GetData(DataFormats.FileDrop)
Me.pb1.Image =...
I have a timer set to 1ms. In this timer I have the following code:
For i = 0 To loopin 'loopin is how many pixels per loop
If Me.Width < xOrg Then 'xOrg is the forms width orginally
Me.Width = Me.Width + 1
Else
scrollIn.Enabled = False
End If
Next
This, as you can see, makes...
I want to be able to drag a .exe or some other executable file into a pictureBox. Get the files path and save it to a varible. Then set the pictureBox's image to the executable files image. I have no clue how to even start doing this.
Thanks for the fast answer, however......
I have ShowInTaskBar=False, but when a user presses 'WindowsKey + D' it minimizes to the Taskbar as invisible.
Not being in the 'Alt+Tab' list isn't for this program. I needed it for other programs in the past, thanks for that info.
Thanks
JimmyTheGreat
Simple question here, I hope.
How can I keep a form from being minimized to taskbar?
Also, how can I keep my form from being the the 'Alt+Tab' list.
Thanks
JimmyTheGreat
Hi, i'm kinda new...well, not new but I forgot everything about VB.net that I learned in the past. But onto the problem.
I'm using ChrW(11) to simulate the return key being pressed.
Ex.
main.Text = (Text1.Text + ChrW(11)) and I get (Text1.text)
I searched for chrw(11) on google and it is that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.