Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Find and replace in text file Pin
tom_dx10-Nov-04 12:39
tom_dx10-Nov-04 12:39 
GeneralRe: Find and replace in text file Pin
Dave Kreskowiak10-Nov-04 13:37
mveDave Kreskowiak10-Nov-04 13:37 
GeneralRe: Find and replace in text file Pin
Kraki11-Nov-04 9:06
Kraki11-Nov-04 9:06 
QuestionIs there a way to prevent InitializeComponent() regeneration? Pin
DizzyMobile10-Nov-04 1:26
DizzyMobile10-Nov-04 1:26 
AnswerRe: Is there a way to prevent InitializeComponent() regeneration? Pin
Skynyrd10-Nov-04 5:26
Skynyrd10-Nov-04 5:26 
AnswerRe: Is there a way to prevent InitializeComponent() regeneration? Pin
J4amieC10-Nov-04 5:34
J4amieC10-Nov-04 5:34 
GeneralRe: Is there a way to prevent InitializeComponent() regeneration? Pin
DizzyMobile10-Nov-04 8:35
DizzyMobile10-Nov-04 8:35 
GeneralRe: Is there a way to prevent InitializeComponent() regeneration? Pin
Skynyrd10-Nov-04 9:47
Skynyrd10-Nov-04 9:47 
As far as I know, you cant create any method that the designer will run when creating a new instance of the control/component. It only does that with InitializeComponent() and it must be hardcoded because the method doesnt have any Atribute to tell the designer to run it in design time.

The only way u might be able to achieve what I think you want is creating some Browsable Get/Set property and putting the DataSet binding code in the setter. Then create a new form inheriting from the one u just created and go back to the designer and change the derived form's property. That should run whatever code you want.

Haven't tested it, but it should work. I dont know what the use in doing this is unless u want to get a better idea in design time how ur DataGridStyle is looking when displaying data but Confused | :confused: ...if thats the case, once it looks good just copy all generated code to ur original form and ur set.
Generaloverride WndProc allow form resize, move, max and min Pin
Lyhr10-Nov-04 0:51
Lyhr10-Nov-04 0:51 
GeneralRe: override WndProc allow form resize, move, max and min Pin
Jay Shankar10-Nov-04 19:36
Jay Shankar10-Nov-04 19:36 
GeneralGet ID of resource Pin
El'Cachubrey10-Nov-04 0:50
El'Cachubrey10-Nov-04 0:50 
GeneralRe: Get ID of resource Pin
Heath Stewart10-Nov-04 8:35
protectorHeath Stewart10-Nov-04 8:35 
GeneralSetPixel in C# Pin
Lost In China10-Nov-04 0:36
sussLost In China10-Nov-04 0:36 
GeneralRe: SetPixel in C# Pin
benjymous10-Nov-04 1:03
benjymous10-Nov-04 1:03 
GeneralRe: SetPixel in C# Pin
ACorbs11-Nov-04 19:10
ACorbs11-Nov-04 19:10 
GeneralRe: SetPixel in C# Pin
Lost In China11-Nov-04 19:56
sussLost In China11-Nov-04 19:56 
GeneralRemoting question Pin
Gavin Jeffrey10-Nov-04 0:18
Gavin Jeffrey10-Nov-04 0:18 
GeneralRe: Remoting question Pin
benjymous10-Nov-04 1:06
benjymous10-Nov-04 1:06 
GeneralRe: Remoting question Pin
Gavin Jeffrey10-Nov-04 5:21
Gavin Jeffrey10-Nov-04 5:21 
GeneralC# control with strong name in html page Pin
fridtjof9-Nov-04 21:50
fridtjof9-Nov-04 21:50 
GeneralAdditional information Pin
fridtjof9-Nov-04 21:53
fridtjof9-Nov-04 21:53 
Generalread version of any executable Pin
Member 1988529-Nov-04 21:48
Member 1988529-Nov-04 21:48 
GeneralRe: read version of any executable Pin
Richard Deeming10-Nov-04 8:00
mveRichard Deeming10-Nov-04 8:00 
GeneraliTunes COM Interfaces Pin
DalTXGuy19809-Nov-04 21:43
DalTXGuy19809-Nov-04 21:43 
GeneralHashtable Pin
HahnTech9-Nov-04 20:28
HahnTech9-Nov-04 20:28 

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.