Click here to Skip to main content
15,898,790 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# seting valuse in another form Pin
WuRunZhe17-Nov-13 21:31
WuRunZhe17-Nov-13 21:31 
GeneralProblem firing event and passing "this" Pin
andrewstan11-Nov-03 7:04
andrewstan11-Nov-03 7:04 
GeneralRe: Problem firing event and passing "this" Pin
Heath Stewart11-Nov-03 7:14
protectorHeath Stewart11-Nov-03 7:14 
GeneralRe: Problem firing event and passing "this" Pin
andrewstan11-Nov-03 23:20
andrewstan11-Nov-03 23:20 
GeneralRe: Problem firing event and passing "this" Pin
Heath Stewart12-Nov-03 2:53
protectorHeath Stewart12-Nov-03 2:53 
GeneralRe: Problem firing event and passing "this" Pin
andrewstan12-Nov-03 3:13
andrewstan12-Nov-03 3:13 
Generaldrag window wothout titlebar Pin
troels_sorensen11-Nov-03 6:21
troels_sorensen11-Nov-03 6:21 
GeneralRe: drag window wothout titlebar Pin
Amirjalaly11-Nov-03 7:04
Amirjalaly11-Nov-03 7:04 
may be this code can help you
add mousemove event and form_load event to your form and three variables x,y,click,first to your class
check this code is true or not.
 private int x,y;<br />
 bool click=false;<br />
 bool first=false;<br />
 private void Form1_MouseMove(object sender,System.Windows.Forms.MouseEventArgs e)<br />
 {<br />
   if(e.Button==MouseButtons.Left)<br />
   {<br />
	if(click&&first)<br />
           this.Location=new Point(this.Location.X+e.X-    x,this.Location.Y+e.Y-y);<br />
	x=e.X;<br />
	y=e.Y;<br />
	click=true;<br />
	first=!first;<br />
	}<br />
	else<br />
  	click=false;<br />
<br />
	}<br />
<br />
	private void Form1_Load(object sender,   System.EventArgs e)<br />
	{<br />
	x=this.Location.X;<br />
	y=this.Location.Y;<br />
	}

GeneralRe: drag window wothout titlebar Pin
troels_sorensen11-Nov-03 22:20
troels_sorensen11-Nov-03 22:20 
GeneralRe: drag window wothout titlebar Pin
Alvaro Mendez11-Nov-03 7:45
Alvaro Mendez11-Nov-03 7:45 
GeneralRe: drag window wothout titlebar Pin
Judah Gabriel Himango11-Nov-03 10:27
sponsorJudah Gabriel Himango11-Nov-03 10:27 
GeneralReading a used file Pin
j-hannemann11-Nov-03 6:16
j-hannemann11-Nov-03 6:16 
GeneralRe: Reading a used file Pin
Eric Gunnerson (msft)11-Nov-03 13:54
Eric Gunnerson (msft)11-Nov-03 13:54 
GeneralRe: Reading a used file Pin
j-hannemann11-Nov-03 23:58
j-hannemann11-Nov-03 23:58 
GeneralRe: Reading a used file Pin
Eric Gunnerson (msft)12-Nov-03 11:36
Eric Gunnerson (msft)12-Nov-03 11:36 
GeneralRe: Reading a used file Pin
j-hannemann12-Nov-03 21:16
j-hannemann12-Nov-03 21:16 
Generalproblems when copying an wmi object Pin
wfettich11-Nov-03 5:20
wfettich11-Nov-03 5:20 
GeneralNeed no setup... Pin
Amirjalaly11-Nov-03 4:56
Amirjalaly11-Nov-03 4:56 
GeneralRe: Need no setup... Pin
Judah Gabriel Himango11-Nov-03 5:11
sponsorJudah Gabriel Himango11-Nov-03 5:11 
GeneralRe: Need no setup... Pin
Heath Stewart11-Nov-03 7:06
protectorHeath Stewart11-Nov-03 7:06 
QuestionHow to customize the printPreviewDialog? Pin
Member 67887511-Nov-03 4:39
Member 67887511-Nov-03 4:39 
AnswerRe: How to customize the printPreviewDialog? Pin
Heath Stewart11-Nov-03 7:00
protectorHeath Stewart11-Nov-03 7:00 
Generalprotect my program Pin
eafares26511-Nov-03 3:56
eafares26511-Nov-03 3:56 
GeneralRe: protect my program Pin
Heath Stewart11-Nov-03 6:57
protectorHeath Stewart11-Nov-03 6:57 
Generalextended procedure for sql server Pin
mhmoud rawas11-Nov-03 1:20
mhmoud rawas11-Nov-03 1:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.