Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
Favorite Forums
Member Avatar for nlblnx

Hi all, I'm using the following code at the moment to get a panel to drag across the form: [CODE]private void panel1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Point newLoc = new Point(e.X+panel1.Location.X, e.Y+panel1.Location.Y); panel1.Location = newLoc; } }[/CODE] I had to put the +panel1.Location.X parts in …

Member Avatar for Matt_Lebrao
0
7K
Member Avatar for nlblnx

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: [CODE]if(e.Button == MouseButtons.Left){}[/CODE] Any help would be appreciated. Thanks

Member Avatar for sknake
0
161
Member Avatar for nlblnx

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 do and I can't work out exactly how to …

Member Avatar for LizR
0
213
Member Avatar for nlblnx

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 the file name and then the actual file. Also, does …

Member Avatar for ddanbe
0
145
Member Avatar for nlblnx

Hi all, I am trying to grab data from the database that this application is connecting to and then show entries in a treeview. [CODE] public void dbcall() { SqlConnection sqlconn = new SqlConnection("user id=USERNAME;" + "password=PASSWORD;server=SERVER;" + "database=DBNAME;" + "connection timeout=30"); SqlCommand select = new SqlCommand("SELECT * from MAIN", …

Member Avatar for nlblnx
0
165