Search found 2756 matches
- by mandai
- Mon May 03, 2010 9:08 pm
- Forum: General coding help
- Topic: Emulator for N64
- Replies: 2
- Views: 2418
You'll have to start by finding out the exact specs for the N64, then find out how each component communicates to other components and how data is processed. It would involve you reverse engineering the N64 hardware; managing memory (just like an operating system) and displaying the output that you ...
- by mandai
- Mon May 03, 2010 8:35 pm
- Forum: Tutorial Requests
- Topic: THISSSSSSSSSSSSSSSSS!
- Replies: 2
- Views: 1051
Try
Code: Select all
If PictureBox1.Bounds.IntersectsWith(PictureBox2.Bounds) Then
'don't let picturebox1 move any more.
End If
- by mandai
- Mon May 03, 2010 8:16 pm
- Forum: Coding Help & Support
- Topic: Changing multiple things (in code)
- Replies: 3
- Views: 1227
If you need many shapes to change colour when they collide with 1 other object then you could cast the sender object from an event.
Then you could set that event for all of the shapes.
Then you could set that event for all of the shapes.
- by mandai
- Mon May 03, 2010 7:12 pm
- Forum: Coding Help & Support
- Topic: Changing multiple things (in code)
- Replies: 3
- Views: 1227
For i As Integer = 0 To Me.Controls.Count - 2 If Controls(i).Bounds.IntersectsWith(Controls(i + 1).Bounds) Then Me.Controls(i).BackColor = Color.Red End If Next That should work, though to make sure you are checking the right "shape" you might want to check with Name.StartsWith or somethi...
- by mandai
- Mon May 03, 2010 2:12 pm
- Forum: Tutorial Requests
- Topic: Cusor Change and mouse cords.?
- Replies: 2
- Views: 954
You could use GetAsyncKeyState to do checks for the state of each mouse button, if you keep track of which buttons are down/up you can add click down/up events to your listbox (reading Cursor.Position.X and Cursor.Position.Y for coordinates). As for the webbrowser control it doesen't support mouse e...
- by mandai
- Mon May 03, 2010 1:31 pm
- Forum: Tutorial Requests
- Topic: Cursor Click?
- Replies: 3
- Views: 1223
Structure MOUSEINPUT Public dx As Integer Public dy As Integer Public mouseData As UInteger Public dwFlags As UInteger Public time As UInteger Public dwExtraInfo As IntPtr End Structure Structure INPUT Public type As UInteger ' = 0 already for mouse Public mi As MOUSEINPUT End Structure <DllImport(...
- by mandai
- Sun May 02, 2010 11:02 pm
- Forum: Website Help & Suggestions
- Topic: Story Category xD?
- Replies: 4
- Views: 1908
Programming stories?
- by mandai
- Sun May 02, 2010 10:57 pm
- Forum: Coding Help & Support
- Topic: display image from scanned file
- Replies: 3
- Views: 1355
Add an OpenFileDialog to your form -
Then for any control event call OpenFileDialog1.ShowDialog()
Then for the OpenFileDialog1 FileOk event you use OpenFileDialog1.FileName for the selected file.
Then for any control event call OpenFileDialog1.ShowDialog()
Then for the OpenFileDialog1 FileOk event you use OpenFileDialog1.FileName for the selected file.
- by mandai
- Sun May 02, 2010 9:56 pm
- Forum: Tutorials
- Topic: How to make a DLL
- Replies: 4
- Views: 1812
You could make a function in your DLL to return a file that you have stored in its resources.
- by mandai
- Sun May 02, 2010 9:06 pm
- Forum: Tutorials
- Topic: Importing Countries from Windows Registry
- Replies: 9
- Views: 3824
You could always use Environment.UserName to get the name of the user currently logged on. You can also get that country list without having to directly access the registry: Dim ci As CultureInfo() = CultureInfo.GetCultures(CultureTypes.AllCultures - CultureTypes.NeutralCultures) For i As Integer = ...
Copyright Information
Copyright © Codenstuff.com 2020 - 2023