Click here to Skip to main content
15,921,643 members
Home / Discussions / C#
   

C#

 
GeneralRe: Collecting Forms from phisical path! Pin
Pete O'Hanlon11-Aug-08 8:35
mvePete O'Hanlon11-Aug-08 8:35 
AnswerRe: Collecting Forms from phisical path! Pin
Dan Neely11-Aug-08 5:08
Dan Neely11-Aug-08 5:08 
Questionlocal database connection string Pin
Deresen11-Aug-08 3:54
Deresen11-Aug-08 3:54 
AnswerRe: local database connection string Pin
Ashfield11-Aug-08 5:15
Ashfield11-Aug-08 5:15 
GeneralRe: local database connection string Pin
Deresen11-Aug-08 10:41
Deresen11-Aug-08 10:41 
GeneralRe: local database connection string Pin
Ashfield12-Aug-08 19:58
Ashfield12-Aug-08 19:58 
GeneralRe: local database connection string Pin
Deresen12-Aug-08 22:29
Deresen12-Aug-08 22:29 
GeneralRe: local database connection string Pin
Ashfield13-Aug-08 1:50
Ashfield13-Aug-08 1:50 
Questionhow to store PDF document in local database Pin
laziale11-Aug-08 3:51
laziale11-Aug-08 3:51 
AnswerRe: how to store PDF document in local database Pin
Manas Bhardwaj11-Aug-08 4:00
professionalManas Bhardwaj11-Aug-08 4:00 
GeneralRe: how to store PDF document in local database Pin
laziale11-Aug-08 4:03
laziale11-Aug-08 4:03 
AnswerRe: how to store PDF document in local database Pin
Giorgi Dalakishvili11-Aug-08 4:01
mentorGiorgi Dalakishvili11-Aug-08 4:01 
GeneralRe: how to store PDF document in local database Pin
laziale11-Aug-08 4:13
laziale11-Aug-08 4:13 
GeneralRe: how to store PDF document in local database Pin
Giorgi Dalakishvili11-Aug-08 4:36
mentorGiorgi Dalakishvili11-Aug-08 4:36 
QuestionTo get hostname/IP Adress of data-recieving server Pin
Ahuja.bangalore11-Aug-08 3:41
Ahuja.bangalore11-Aug-08 3:41 
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 

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.