Click here to Skip to main content
15,887,294 members
Home / Discussions / C#
   

C#

 
AnswerRe: To get hostname/IP Adress of data-recieving server Pin
vikas amin11-Aug-08 5:14
vikas amin11-Aug-08 5:14 
GeneralRe: To get hostname/IP Adress of data-recieving server Pin
Tony Richards11-Aug-08 10:19
Tony Richards11-Aug-08 10:19 
GeneralRe: To get hostname/IP Adress of data-recieving server Pin
Ahuja.bangalore11-Aug-08 20:53
Ahuja.bangalore11-Aug-08 20:53 
GeneralRe: To get hostname/IP Adress of data-recieving server Pin
Ahuja.bangalore11-Aug-08 20:53
Ahuja.bangalore11-Aug-08 20:53 
Questionhow to design form designer Pin
Abdul Rahman Hamidy11-Aug-08 2:28
Abdul Rahman Hamidy11-Aug-08 2:28 
AnswerRe: how to design form designer Pin
scottgp11-Aug-08 2:32
professionalscottgp11-Aug-08 2:32 
AnswerRe: how to design form designer Pin
Giorgi Dalakishvili11-Aug-08 2:40
mentorGiorgi Dalakishvili11-Aug-08 2:40 
AnswerRe: how to design form designer Pin
Alan Balkany11-Aug-08 4:17
Alan Balkany11-Aug-08 4:17 
Here's a general (very general) approach I've found helpful for a similar application:

1. Implement a MyControl base class that has features common to all of your controls: Coordinates, size, color, text, enabled, style, etc...

2. Add a DrawOn (Graphics g) method in this base class that draws a basic control. This will be overridden by your derived control classes that want to display the control differently.

3. In the form your user is designing on, have a List<MyControl> member that has all the controls the user has added so far, in the order they've added them. (If you want to serialize forms, use ArrayList instead because generics can't be serialized by default.)

4. In your form's OnPaint handler, iterate through your MyControl list, calling the DrawOn method for each control.

5. In the form's mouse-move handler, set the new coordinates of all selected controls, and invalidate their previous and current positions.

That's it. A bit simplistic, but that's what makes this approach easy to use.
GeneralRe: how to design form designer Pin
Abdul Rahman Hamidy11-Aug-08 22:08
Abdul Rahman Hamidy11-Aug-08 22:08 
GeneralRe: how to design form designer Pin
Alan Balkany12-Aug-08 3:19
Alan Balkany12-Aug-08 3:19 
QuestionCompact Framework. Dragging a control at runtime causes a smear of the control across the screen. Paint Problem? Pin
gembob11-Aug-08 2:25
gembob11-Aug-08 2:25 
QuestionConvert HTML file to PDF Pin
selvakkumar11-Aug-08 1:47
selvakkumar11-Aug-08 1:47 
AnswerRe: Convert HTML file to PDF Pin
Giorgi Dalakishvili11-Aug-08 1:52
mentorGiorgi Dalakishvili11-Aug-08 1:52 
AnswerRe: Convert HTML file to PDF Pin
blackjack215011-Aug-08 3:13
blackjack215011-Aug-08 3:13 
AnswerRe: Convert HTML file to PDF Pin
vikas amin11-Aug-08 5:17
vikas amin11-Aug-08 5:17 
QuestionSome type of Workflow - Programming? Pin
Tomerland11-Aug-08 1:46
Tomerland11-Aug-08 1:46 
QuestionRe: Some type of Workflow - Programming? Pin
led mike11-Aug-08 4:48
led mike11-Aug-08 4:48 
Questiondockin of column -Data Grid View in C# [modified] Pin
sailesh_gupta11-Aug-08 0:53
sailesh_gupta11-Aug-08 0:53 
GeneralRe: dockin of column -Data Grid View in C# Pin
c242311-Aug-08 0:58
c242311-Aug-08 0:58 
AnswerRe: dockin of column -Data Grid View in C# Pin
Vimalsoft(Pty) Ltd11-Aug-08 1:36
professionalVimalsoft(Pty) Ltd11-Aug-08 1:36 
AnswerRe: dockin of column -Data Grid View in C# Pin
Wendelius11-Aug-08 8:46
mentorWendelius11-Aug-08 8:46 
QuestionHow i can Customize my Outlook2003 add into Outlook 2002 Pin
wasimsharp10-Aug-08 23:07
wasimsharp10-Aug-08 23:07 
AnswerRe: How i can Customize my Outlook2003 add into Outlook 2002 Pin
Thomas Stockwell11-Aug-08 1:26
professionalThomas Stockwell11-Aug-08 1:26 
QuestionSilly Qustion About try catch finally blocks!!!!! Pin
mrcooll10-Aug-08 22:32
mrcooll10-Aug-08 22:32 
AnswerRe: Silly Qustion About try catch finally blocks!!!!! Pin
Christian Graus10-Aug-08 22:47
protectorChristian Graus10-Aug-08 22:47 

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.