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

C#

 
GeneralRe: A lot of Sockets Pin
nahumtakum9-Apr-03 3:22
nahumtakum9-Apr-03 3:22 
GeneralAccessing Num Lock state from C# Pin
Katalyst6-Apr-03 9:46
Katalyst6-Apr-03 9:46 
GeneralRe: Accessing Num Lock state from C# Pin
Nathan Blomquist7-Apr-03 7:00
Nathan Blomquist7-Apr-03 7:00 
GeneralRe: Accessing Num Lock state from C# Pin
Katalyst7-Apr-03 16:21
Katalyst7-Apr-03 16:21 
GeneralRe: Accessing Num Lock state from C# Pin
Katalyst7-Apr-03 17:25
Katalyst7-Apr-03 17:25 
GeneralRe: Accessing Num Lock state from C# Pin
Nathan Blomquist7-Apr-03 18:04
Nathan Blomquist7-Apr-03 18:04 
GeneralPictureBox problem Pin
Mazdak6-Apr-03 8:16
Mazdak6-Apr-03 8:16 
GeneralRe: PictureBox problem Pin
James T. Johnson6-Apr-03 8:35
James T. Johnson6-Apr-03 8:35 
You can do a couple different things with the SizeMode property of the PictureBox.

If you set it to PictureBoxSizeMode.StretchImage then the image will change it's size to match the picturebox. Not my favorite way of doing it, but if you must be able to view all of the image at one time then this can work (to make it look better you may have to resize the picture box a little so that the aspect ratio of the image is retained).

My favorite method is to place the picture box in a panel, set the SizeMode to PictureBoxSizeMode.AutoSize which will change the size of the picture box to match the image. Now set the panel's AutoScroll property to true. Now you will get scrollbars which can be used to view the hidden parts of the image, and the image will display at normal size.

Without knowing your exact requirements that is all I can offer, but it covers the two scenarios I can think of.

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

GeneralRe: PictureBox problem Pin
Mazdak6-Apr-03 8:51
Mazdak6-Apr-03 8:51 
GeneralIPAddress Problem Pin
Mr BallyDaHob6-Apr-03 5:43
Mr BallyDaHob6-Apr-03 5:43 
GeneralRe: IPAddress Problem Pin
Richard Deeming7-Apr-03 1:43
mveRichard Deeming7-Apr-03 1:43 
GeneralMaking skinned apps. Pin
zamazula6-Apr-03 2:39
zamazula6-Apr-03 2:39 
GeneralResource editor Pin
Manish K. Agarwal6-Apr-03 2:31
Manish K. Agarwal6-Apr-03 2:31 
GeneralRe: Resource editor Pin
James T. Johnson6-Apr-03 4:41
James T. Johnson6-Apr-03 4:41 
GeneralRe: Resource editor Pin
Manish K. Agarwal6-Apr-03 17:37
Manish K. Agarwal6-Apr-03 17:37 
GeneralTextBox doubt Pin
Smitha Nishant6-Apr-03 2:16
protectorSmitha Nishant6-Apr-03 2:16 
GeneralRe: TextBox doubt Pin
James T. Johnson6-Apr-03 4:42
James T. Johnson6-Apr-03 4:42 
GeneralRe: TextBox doubt Pin
Smitha Nishant6-Apr-03 6:11
protectorSmitha Nishant6-Apr-03 6:11 
Generalhttp://www.codeproject.com/csharp/BigInteger.asp Pin
James Wanless6-Apr-03 1:24
James Wanless6-Apr-03 1:24 
General= Operator on TabPage Pin
monrobot135-Apr-03 9:28
monrobot135-Apr-03 9:28 
GeneralRe: = Operator on TabPage Pin
James T. Johnson5-Apr-03 14:00
James T. Johnson5-Apr-03 14:00 
GeneralRe: = Operator on TabPage Pin
monrobot135-Apr-03 19:19
monrobot135-Apr-03 19:19 
GeneralAccessing remoting objects from a remoted object Pin
Alex Korchemniy5-Apr-03 8:41
Alex Korchemniy5-Apr-03 8:41 
GeneralStreamReader Pin
Member Salamon5-Apr-03 8:30
Member Salamon5-Apr-03 8:30 
GeneralRe: StreamReader Pin
leppie6-Apr-03 2:10
leppie6-Apr-03 2:10 

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.