Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
GeneralRe: Stream writing html Pin
Steven Campbell17-Sep-04 4:33
Steven Campbell17-Sep-04 4:33 
GeneralRe: Stream writing html Pin
Heath Stewart17-Sep-04 6:53
protectorHeath Stewart17-Sep-04 6:53 
GeneralRe: Stream writing html Pin
Mikke_x17-Sep-04 7:14
Mikke_x17-Sep-04 7:14 
Generalposting data to another url using webclient Pin
Abraham Durairaj17-Sep-04 0:31
Abraham Durairaj17-Sep-04 0:31 
GeneralMaskEdit Pin
jzb17-Sep-04 0:09
jzb17-Sep-04 0:09 
GeneralRe: MaskEdit Pin
Heath Stewart17-Sep-04 6:37
protectorHeath Stewart17-Sep-04 6:37 
GeneralGraphical programming Pin
Member 62427317-Sep-04 0:06
Member 62427317-Sep-04 0:06 
GeneralRe: Graphical programming Pin
Colin Angus Mackay17-Sep-04 1:10
Colin Angus Mackay17-Sep-04 1:10 
I would say that is more of an OO thing than an algorithmic thing.

For example, you have two classes called DrawingSurface and Component.

DrawingSurface has a collection of Components

To Insert you instantiate a component (Component theComponent = new Component()) and add it to the DrawingSurface (DrawingSurface.Add(theComponent);)

To Delete to remove the component from the DrawingSurface (DrawingSurface.Remove(theComponent);)

To Resize you would have properties on the component like Width and Height. You might trigger an event on the setters of these properties that the DrawingSurface would handle to redraw the diagram.

To Move you would have position properties on the component like X and Y. And again in the setters you would probably fire off an event that the drawing surface uses to redraw the display.

And so on and so forth.


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


Generalcustom progressbar, problem updating it. Pin
misterbear16-Sep-04 23:50
misterbear16-Sep-04 23:50 
GeneralRe: custom progressbar, problem updating it. Pin
Stefan Troschuetz17-Sep-04 2:47
Stefan Troschuetz17-Sep-04 2:47 
GeneralRe: custom progressbar, problem updating it. Pin
Tim Kohler17-Sep-04 9:49
Tim Kohler17-Sep-04 9:49 
Generalcorrel function for c# Pin
tradingsharp16-Sep-04 22:56
tradingsharp16-Sep-04 22:56 
GeneralRe: correl function for c# Pin
leppie16-Sep-04 23:46
leppie16-Sep-04 23:46 
GeneralReg. Posting data to other url Pin
Abraham Durairaj16-Sep-04 18:50
Abraham Durairaj16-Sep-04 18:50 
QuestionHow can I add , update , delete a row Pin
skywen16-Sep-04 16:51
skywen16-Sep-04 16:51 
AnswerRe: How can I add , update , delete a row Pin
sreejith ss nair16-Sep-04 23:59
sreejith ss nair16-Sep-04 23:59 
AnswerRe: How can I add , update , delete a row Pin
Kodanda Pani17-Sep-04 21:06
Kodanda Pani17-Sep-04 21:06 
QuestionHow do i force a control to only exist in the component tray? Pin
FocusedWolf16-Sep-04 15:59
FocusedWolf16-Sep-04 15:59 
GeneralServer application Pin
qigong516-Sep-04 13:37
qigong516-Sep-04 13:37 
GeneralRe: Server application Pin
Salil Khedkar20-Sep-04 1:18
Salil Khedkar20-Sep-04 1:18 
GeneralRe: Server application Pin
qigong516-Sep-04 16:57
qigong516-Sep-04 16:57 
GeneralRe: Server application Pin
Tim Kohler17-Sep-04 9:57
Tim Kohler17-Sep-04 9:57 
GeneralComboBox within a Listbox Pin
pkunkrocker16-Sep-04 13:19
pkunkrocker16-Sep-04 13:19 
GeneralRe: ComboBox within a Listbox Pin
sreejith ss nair16-Sep-04 20:29
sreejith ss nair16-Sep-04 20:29 
GeneralSimple Console App. Pin
Milan200716-Sep-04 13:12
Milan200716-Sep-04 13:12 

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.