Click here to Skip to main content
15,888,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting the height of a main menu Pin
CyberKewl15-Sep-03 5:47
CyberKewl15-Sep-03 5:47 
GeneralMemory in .NET Pin
Dave Kerr14-Sep-03 8:12
Dave Kerr14-Sep-03 8:12 
GeneralRe: Memory in .NET Pin
Nick Parker14-Sep-03 11:18
protectorNick Parker14-Sep-03 11:18 
GeneralRe: Memory in .NET Pin
Dave Kerr15-Sep-03 8:04
Dave Kerr15-Sep-03 8:04 
GeneralRe: Memory in .NET Pin
James T. Johnson15-Sep-03 8:54
James T. Johnson15-Sep-03 8:54 
GeneralUsing IsPostBack with LoadControl Pin
Jay Pal14-Sep-03 8:03
Jay Pal14-Sep-03 8:03 
GeneralRe: Using IsPostBack with LoadControl Pin
Nick Parker14-Sep-03 11:38
protectorNick Parker14-Sep-03 11:38 
GeneralDRawable Panel, Resize and Scrollbars ! Pin
Frank Olorin Rizzi14-Sep-03 4:46
Frank Olorin Rizzi14-Sep-03 4:46 
This is starting to get to me !
So, let me ask you all, just in case someone has a quick solution for my problem.

Here's what I would like to do.
Imageine a simple Win App, with a main form with a couple of buttons,
and a panel. The buttons are "Rectangle", "Ellipses", and "None".
If you click on the "Rectangle" button, you can draw a rectangle in
the panel (by clicking-dragging in the panel). Similarly,
if you click on the "Ellipses" button, you'll be able to draw an ellipses in the
panel. The "None" button is there simply to let you go back to
your standard mouse situation.
So far so good.

I got all of that working by using the GDI+ DrawRectangle and
DrawEllipses functions.

Now, my problem is that I can't make the panel pop-up the scrollbars
(both vertical and horizontal) as needed.
In other words, if I open up the application,
maximize it to full screen, and draw something in the lower-right corner of the
panel, when I resize the application to a smaller size,
the drawn object does not show up in the panel (duh! it's out there somewhere).
But, most importantly, the scrollbars of the panel do not appear either !

I've tried to set to true the AutoScroll property of the panel,
and set the minimum size and the actual size of the scrollbars to (5,5),
but that had no impact.

As far as I can tell, the problem is that the AutoScroll property comes
into play only if some "Control" is placed outside the viewable
area of the panel at some point, while the rectangles and circles are
(being drawn with GDI+) not considered controls !

Any suggestions ?

Thanks in advance for your 2 pennies Smile | :)

F.O.R.


GeneralRe: DRawable Panel, Resize and Scrollbars ! Pin
Frank Olorin Rizzi14-Sep-03 14:39
Frank Olorin Rizzi14-Sep-03 14:39 
GeneralActiveX and C# Pin
Robert_14-Sep-03 2:40
Robert_14-Sep-03 2:40 
GeneralRe: ActiveX and C# Pin
Mazdak14-Sep-03 4:14
Mazdak14-Sep-03 4:14 
QuestionLet property builder generate code? Pin
Johan de Koning14-Sep-03 1:22
Johan de Koning14-Sep-03 1:22 
GeneralHTML editor in C# Pin
Jasper4C#13-Sep-03 22:24
Jasper4C#13-Sep-03 22:24 
GeneralRe: HTML editor in C# Pin
James T. Johnson15-Sep-03 4:26
James T. Johnson15-Sep-03 4:26 
GeneralRe: HTML editor in C# Pin
Jasper4C#15-Sep-03 8:08
Jasper4C#15-Sep-03 8:08 
GeneralMain Form Control Pin
dbetting13-Sep-03 14:17
dbetting13-Sep-03 14:17 
GeneralRe: Main Form Control Pin
mcgahanfl14-Sep-03 14:15
mcgahanfl14-Sep-03 14:15 
GeneralRe: Main Form Control Pin
dbetting14-Sep-03 15:12
dbetting14-Sep-03 15:12 
GeneralRe: Main Form Control Pin
mcgahanfl15-Sep-03 3:03
mcgahanfl15-Sep-03 3:03 
GeneralScreen Coordinates Pin
Paul Silvernail13-Sep-03 7:32
Paul Silvernail13-Sep-03 7:32 
GeneralRe: Screen Coordinates Pin
leppie13-Sep-03 8:12
leppie13-Sep-03 8:12 
GeneralRe: Screen Coordinates Pin
Paul Silvernail13-Sep-03 8:25
Paul Silvernail13-Sep-03 8:25 
GeneralRe: Screen Coordinates Pin
leppie13-Sep-03 8:40
leppie13-Sep-03 8:40 
GeneralRe: Decimal to Binary to Hex convert Pin
eggie513-Sep-03 18:05
eggie513-Sep-03 18:05 
GeneralNamespace 'ADO' not accessible.... Pin
Pranoti13-Sep-03 5:30
Pranoti13-Sep-03 5:30 

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.