Click here to Skip to main content
15,891,717 members
Home / Discussions / C#
   

C#

 
GeneralRe: I have a problem setting paper size for printing a page Pin
Alex Manolescu1-Jan-10 6:59
Alex Manolescu1-Jan-10 6:59 
QuestionUser Control Question - Changing Location and Size Pin
Roger Wright31-Dec-09 21:34
professionalRoger Wright31-Dec-09 21:34 
AnswerRe: User Control Question - Changing Location and Size Pin
Rob Philpott31-Dec-09 22:26
Rob Philpott31-Dec-09 22:26 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 4:36
professionalRoger Wright1-Jan-10 4:36 
QuestionRe: User Control Question - Changing Location and Size Pin
Eric Dahlvang31-Dec-09 23:01
Eric Dahlvang31-Dec-09 23:01 
AnswerRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 4:33
professionalRoger Wright1-Jan-10 4:33 
GeneralRe: User Control Question - Changing Location and Size Pin
DaveyM691-Jan-10 5:10
professionalDaveyM691-Jan-10 5:10 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 22:06
professionalRoger Wright1-Jan-10 22:06 
I've been thinking about your response all day, trying to figure out where my reasoning has gone wrong. I selected UserControl as a base class only because the book I'm using as a guide recommends it. But your point about using Control as a base and drawing what's needed actually fits my needs more closely. What I'm trying to create is a reusable control that provides a Gannt chart style of scheduling bar.   I'm using a rectangle for the task duration, overlaid with another rectangle to show the progress, with triangles at each end to mark the start and finish points.   Each triangle also contains an anchor point to allow it to be linked to other dependent tasks.   These are just graphical objects that need to be manually drawn, and your approach seems more logical.   Where I'm getting stuck, I think, is in scaling the graphical objects in response to changes in the size of the base object, and in placing the control on a form. These changes would always be at design-time, never in run-time.   But the control does need to respond to run-time changes in duration and progress.

Can you suggest an approach that you would use in implementing this control? This is my first attempt in C# at creating a control, and it's already been quite instructional.   Your insight would be much appreciated.

"A Journey of a Thousand Rest Stops Begins with a Single Movement"

GeneralRe: User Control Question - Changing Location and Size Pin
DaveyM692-Jan-10 2:59
professionalDaveyM692-Jan-10 2:59 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright2-Jan-10 5:17
professionalRoger Wright2-Jan-10 5:17 
AnswerRe: User Control Question - Changing Location and Size Pin
Nicholas Butler31-Dec-09 23:46
sitebuilderNicholas Butler31-Dec-09 23:46 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 4:25
professionalRoger Wright1-Jan-10 4:25 
AnswerRe: User Control Question - Changing Location and Size Pin
DaveyM6931-Dec-09 23:50
professionalDaveyM6931-Dec-09 23:50 
GeneralRe: User Control Question - Changing Location and Size Pin
Roger Wright1-Jan-10 4:28
professionalRoger Wright1-Jan-10 4:28 
Questionmultiple lines string Pin
Member 59031031-Dec-09 18:57
Member 59031031-Dec-09 18:57 
AnswerRe: multiple lines string Pin
Abhijit Jana31-Dec-09 19:30
professionalAbhijit Jana31-Dec-09 19:30 
GeneralRe: multiple lines string Pin
Member 59031031-Dec-09 19:42
Member 59031031-Dec-09 19:42 
GeneralRe: multiple lines string Pin
Nicholas Butler1-Jan-10 0:15
sitebuilderNicholas Butler1-Jan-10 0:15 
AnswerRe: multiple lines string Pin
Eric Dahlvang1-Jan-10 13:50
Eric Dahlvang1-Jan-10 13:50 
QuestionHow to display a 3D(WPF) in a WinFormApplication Pin
arucied31-Dec-09 14:37
arucied31-Dec-09 14:37 
AnswerMessage Closed Pin
31-Dec-09 19:39
stancrm31-Dec-09 19:39 
GeneralRe: How to display a 3D(WPF) in a WinFormApplication Pin
arucied1-Jan-10 17:41
arucied1-Jan-10 17:41 
QuestionConverting a nullable type to a non nullable type Pin
Jeroen De Dauw31-Dec-09 13:34
Jeroen De Dauw31-Dec-09 13:34 
AnswerRe: Converting a nullable type to a non nullable type Pin
Rob Philpott31-Dec-09 22:39
Rob Philpott31-Dec-09 22:39 
GeneralRe: Converting a nullable type to a non nullable type Pin
Jeroen De Dauw1-Jan-10 1:17
Jeroen De Dauw1-Jan-10 1:17 

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.