Forum: C# Jul 23rd, 2009 |
| Replies: 1 Views: 190 Hi all,
Does anyone have a good example of using Cursor.Clip?
I need to be able to restrict movement to a form only when the left mouse button is pressed, so using:
if(e.Button ==... |
Forum: C# Jul 23rd, 2009 |
| Replies: 6 Views: 320 Will do and thanks again! |
Forum: C# Jul 23rd, 2009 |
| Replies: 6 Views: 320 Thanks everyone! I got it working really well. i'll give the Cursor.Clip a go too. Do you have a quick example of just restricting the movement to the form (so the edges can't go past, etc)?
Can... |
Forum: C# Jul 23rd, 2009 |
| Replies: 6 Views: 320 Hi all,
I'm using the following code at the moment to get a panel to drag across the form:
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button ==... |
Forum: C# Jan 27th, 2009 |
| Replies: 3 Views: 1,664 Hi,
Thanks for the quick repsonse.
I apologise for being thick here, but I don't follow you.
I was just trying to save the image to file when I hit the button (which does save the picturebox... |
Forum: C# Jan 27th, 2009 |
| Replies: 3 Views: 1,664 Hi all,
I am just wondering if someone can help me.
Basically, I have the following code that I am using to allow me to draw on a picturebox.
There are a few things that I need to be able to... |
Forum: C# Nov 18th, 2008 |
| Replies: 3 Views: 1,933 Thanks, I didn't see any TCPServer in use in that code sample, though it is quite helpful.
Do you have any samples lying around that would illustrate the following:
Sending a string from a... |
Forum: C# Nov 18th, 2008 |
| Replies: 3 Views: 1,933 Hi all,
Could anyone help me out here.... I'm trying to work out how to write a very simple server and client that I can first send a string through and then send a file to. For example, I'd send... |
Forum: C# Aug 13th, 2008 |
| Replies: 2 Views: 2,511 Hi,
I know what it needs to do, just can't get it to act that way. I couldn't figure out how to get the individual hosts listed and then the users, then the software as children.
The closest... |
Forum: C# Aug 13th, 2008 |
| Replies: 2 Views: 2,511 Hi all,
I am trying to grab data from the database that this application is connecting to and then show entries in a treeview.
public void dbcall()
{
SqlConnection... |