Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
AnswerRe: Do you know any VS 2003 to VS.NET project converter? Pin
Uwe Keim19-Jul-03 6:31
sitebuilderUwe Keim19-Jul-03 6:31 
Questionhow to connect??? Pin
don7cry18-Jul-03 20:46
don7cry18-Jul-03 20:46 
QuestionHow to use the KeyPress event Pin
kharr102718-Jul-03 17:03
kharr102718-Jul-03 17:03 
AnswerRe: How to use the KeyPress event Pin
Nick Parker18-Jul-03 19:16
protectorNick Parker18-Jul-03 19:16 
GeneralRe: How to use the KeyPress event Pin
kharr102720-Jul-03 9:28
kharr102720-Jul-03 9:28 
GeneralRe: How to use the KeyPress event Pin
Nick Parker20-Jul-03 17:43
protectorNick Parker20-Jul-03 17:43 
AnswerRe: How to use the KeyPress event Pin
Bo Hunter20-Jul-03 11:49
Bo Hunter20-Jul-03 11:49 
QuestionUpDown control ValueChange Problem? Pin
azusakt18-Jul-03 15:29
azusakt18-Jul-03 15:29 
Dear all,
I've got a problem on controlling Numermic UpDownControl. In my application, I have 6 UpDownControl, they are L, R, Top, Bottom, width and height. now I would like to check the input of L value is over range or not.

the default maxValue of L is set to 200, and it is various of "width", that's means, if L or R decrease, width will be decreased. The equation is
DWidth = L + R + "Width"

The following code, I check if the "width" value is met its minimum value, then L, R, can't be increased.

<br />
private void LUpDown_ValueChanged(object sender, System.EventArgs e)<br />
{<br />
     if(OwnChanged)<br />
       return;	<br />
<br />
       if(!AngleChange && !changeValueOnly)<br />
       {<br />
	 if(Angle == 0)<br />
         {<br />
	   decimal range =DWidth- LUpDown.Value - RUpDown.Value;<br />
<br />
           if(range < SizeWUpDown.Minimum)  //loop 1<br />
             {	<br />
		OwnChanged=true;<br />
                LUpDown.Value = DWidth - SizeWUpDown.Minimum - RUpDown.Value;  // equ1<br />
		OwnChanged=false;<br />
	     }<br />
 	     changeValueOnly = true;<br />
             SizeWUpDown.Value = DWidth- LUpDown.Value - RUpDown.Value;  //<---problem?	     changeValueOnly = false;<br />
	}<br />
	else<br />
	{   ..... }


if the value is over its minVaule, I will set back the value of L like "equ1", then it will activate its valueChanged event again, so I use OwnChanged to prevent it. The problem is I don't know why the "problem?" line can't execute, and this function will be return once it reach this line..

I just know, If I cross out LUpDown.Value in "problem?" line,like
SizeWUpDown.Value = DWidth - RUpDown.Value; //<---problem?
the program can pass this instruction.

Am I do it in wrong way?Confused | :confused: How can I solve it?
Please Help... Thanks
QuestionCreate a managed array from a pointer? Pin
Josh Martin18-Jul-03 15:11
Josh Martin18-Jul-03 15:11 
AnswerRe: Create a managed array from a pointer? Pin
Jim Stewart18-Jul-03 16:07
Jim Stewart18-Jul-03 16:07 
GeneralRe: Create a managed array from a pointer? Pin
Josh Martin21-Jul-03 7:23
Josh Martin21-Jul-03 7:23 
Generaldatagrid row problem Pin
mdolby18-Jul-03 12:26
mdolby18-Jul-03 12:26 
GeneralRe: datagrid row problem Pin
Mazdak19-Jul-03 11:29
Mazdak19-Jul-03 11:29 
Generalconnect c# web service Pin
colin mcadam18-Jul-03 3:34
colin mcadam18-Jul-03 3:34 
GeneralRe: connect c# web service Pin
Ista21-Jul-03 17:18
Ista21-Jul-03 17:18 
GeneralC# Web Service Client Pin
hwen18-Jul-03 3:14
hwen18-Jul-03 3:14 
GeneralC # development with OWC &amp; XP Pia's Pin
Member 47499718-Jul-03 3:04
Member 47499718-Jul-03 3:04 
QuestionHow to control the number of instances of a application Pin
Ivan Fernandez18-Jul-03 2:57
Ivan Fernandez18-Jul-03 2:57 
AnswerRe: How to control the number of instances of a application Pin
Kastro18-Jul-03 3:53
Kastro18-Jul-03 3:53 
GeneralActivator Class Pin
vikramlinux18-Jul-03 2:10
vikramlinux18-Jul-03 2:10 
GeneralRe: Activator Class Pin
John Fisher18-Jul-03 4:32
John Fisher18-Jul-03 4:32 
GeneralDataAdapter and StoredProcedure Pin
totig18-Jul-03 1:18
totig18-Jul-03 1:18 
GeneralRe: DataAdapter and StoredProcedure Pin
Kant19-Jul-03 16:42
Kant19-Jul-03 16:42 
GeneralText Pin
totig18-Jul-03 0:03
totig18-Jul-03 0:03 
GeneralRe: Text Pin
A.Wegierski18-Jul-03 2:07
A.Wegierski18-Jul-03 2:07 

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.