Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there a good way to do this? Pin
KingTermite8-Jun-03 8:39
KingTermite8-Jun-03 8:39 
GeneralDistributing C# .NET programs... major headache. Pin
EvilDingo7-Jun-03 20:13
EvilDingo7-Jun-03 20:13 
GeneralRe: Distributing C# .NET programs... major headache. Pin
leppie7-Jun-03 22:50
leppie7-Jun-03 22:50 
GeneralRe: Distributing C# .NET programs... major headache. Pin
EvilDingo8-Jun-03 0:42
EvilDingo8-Jun-03 0:42 
GeneralRe: Distributing C# .NET programs... major headache. Pin
leppie8-Jun-03 1:04
leppie8-Jun-03 1:04 
GeneralRe: Distributing C# .NET programs... major headache. Pin
Steven Behnke10-Jun-03 12:58
Steven Behnke10-Jun-03 12:58 
QuestionLable auto resize vertically to show hidden text? Pin
Weiye Chen7-Jun-03 18:44
Weiye Chen7-Jun-03 18:44 
GeneralI encountered an System.Net.Sockets.SocketException, but dunno why it happened Pin
viperxp7-Jun-03 17:39
viperxp7-Jun-03 17:39 
GeneralRe: I encountered an System.Net.Sockets.SocketException, but dunno why it happened Pin
leppie7-Jun-03 22:38
leppie7-Jun-03 22:38 
GeneralRe: I encountered an System.Net.Sockets.SocketException, but dunno why it happened Pin
viperxp15-Jun-03 5:54
viperxp15-Jun-03 5:54 
QuestionHow to check... Pin
Kant7-Jun-03 17:36
Kant7-Jun-03 17:36 
AnswerRe: How to check... Pin
leppie7-Jun-03 22:35
leppie7-Jun-03 22:35 
GeneralRe: How to check... Pin
Kant8-Jun-03 4:21
Kant8-Jun-03 4:21 
GeneralRe: How to check... Pin
shaunAustin9-Jun-03 0:46
shaunAustin9-Jun-03 0:46 
GeneralRe: How to check... Pin
Kant9-Jun-03 5:03
Kant9-Jun-03 5:03 
QuestionHow to create a 'copy' and 'paste' feature for selected cell ranges Pin
sleepycat7-Jun-03 15:40
sleepycat7-Jun-03 15:40 
GeneralVisual C# question Pin
dratti7-Jun-03 12:24
dratti7-Jun-03 12:24 
GeneralRe: Visual C# question Pin
leppie7-Jun-03 13:02
leppie7-Jun-03 13:02 
GeneralRe: Visual C# question Pin
dratti7-Jun-03 22:21
dratti7-Jun-03 22:21 
GeneralRe: Visual C# question Pin
Iulian Serban7-Jun-03 22:22
Iulian Serban7-Jun-03 22:22 
GeneralRe: .NET Framework Initialization Error Pin
James T. Johnson7-Jun-03 15:07
James T. Johnson7-Jun-03 15:07 
GeneralRe: .NET Framework Initialization Error Pin
shaunAustin9-Jun-03 0:48
shaunAustin9-Jun-03 0:48 
GeneralRe: .NET Framework Initialization Error Pin
shaunAustin9-Jun-03 9:10
shaunAustin9-Jun-03 9:10 
GeneralScrollBar.LargeChange Pin
Iulian Serban7-Jun-03 3:04
Iulian Serban7-Jun-03 3:04 
GeneralRe: ScrollBar.LargeChange Pin
James T. Johnson7-Jun-03 15:15
James T. Johnson7-Jun-03 15:15 
Iulian Serban wrote:
(CilentRectangle.Width/WholeWidth)

This is likely to yield 0 unless the WholeWidth is less than ClientRectangle.Width because you are performing integer division. The correct way is to convert the three values to floats, then convert back to an int to assign to the LargeChange property.

hScrollBar.LargeChange = (int) ((float) hScrollbar.Maximum) * (
  ((float) ClientRectangle.Width) / ((float) WholeWidth) 
);
HTH,

James

"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him

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.