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

C#

 
GeneralRe: Need Help Pleaaase Pin
Dave Kreskowiak27-Jun-04 14:37
mveDave Kreskowiak27-Jun-04 14:37 
Generalfirewall Pin
shahrokh nabavi27-Jun-04 2:04
shahrokh nabavi27-Jun-04 2:04 
GeneralRe: firewall Pin
leppie27-Jun-04 3:55
leppie27-Jun-04 3:55 
GeneralRe: firewall Pin
Colin Angus Mackay28-Jun-04 0:39
Colin Angus Mackay28-Jun-04 0:39 
GeneralRe: firewall Pin
JimRivera28-Jun-04 16:14
JimRivera28-Jun-04 16:14 
GeneralDesigners serialization and code generation Pin
Jon_Slaughter27-Jun-04 1:19
Jon_Slaughter27-Jun-04 1:19 
GeneralRe: Designers serialization and code generation Pin
Heath Stewart27-Jun-04 17:54
protectorHeath Stewart27-Jun-04 17:54 
GeneralRe: Designers serialization and code generation Pin
Jon_Slaughter27-Jun-04 19:51
Jon_Slaughter27-Jun-04 19:51 
well, I tried to messa round with that stuff and doesn't seem to work(For me atleast, I just started recoding after a couple of years and I'm not up to par at the moment). I've tried that static method and problem is, constructor is called even when deleted the control. I've tried the IDisposable, but not sure how it works(seems to not be called all the time or sometimes to many times(used code reference from .NET sdk). The only thing that seems to be consistant is that the serializer gets called each time and for all controls when one is added or deleted to the form design(so, when I add the 4th control, it will call serializer 4 times). I got all this through debugging.


Heres what I need to do(create designer to generate):

// Is created only when one or more jControl's exist
// Is deleted when there are no jControl's
jControlsCollection jControls = new jControlsCollection();



//
// jControlk
//
// The next lines are generated by the base serializer
this.jControlk = new ns_jControl.jControl();
this.jControlk.Location = new System.Drawing.Point(56, 32);
this.jControlk.Name = "jControl1";
this.jControlk.Size = new System.Drawing.Size(112, 96);
this.jControlk.TabIndex = 0;
// I want to add this line
// the problem being, how do I figure how what k is in my code generator
// Only way I can think of is by extracting it from one of the previous code statements
// But that seems like a hack to me, and theres gotta be a better way...
this.jControls.Add(this.jControlk)

P.S. I know it can be done because the default code generator does it. It adds "this.SuspendLayout();" only once.
GeneralRe: Designers serialization and code generation Pin
Heath Stewart28-Jun-04 3:31
protectorHeath Stewart28-Jun-04 3:31 
GeneralRe: Designers serialization and code generation Pin
Heath Stewart27-Jun-04 18:47
protectorHeath Stewart27-Jun-04 18:47 
QuestionHow to get device info using SetupDiGetDeviceInterfaceDetail? Pin
Pain_Elemental27-Jun-04 0:35
Pain_Elemental27-Jun-04 0:35 
AnswerRe: How to get device info using SetupDiGetDeviceInterfaceDetail? Pin
Heath Stewart27-Jun-04 18:12
protectorHeath Stewart27-Jun-04 18:12 
GeneralRe: How to get device info using SetupDiGetDeviceInterfaceDetail? Pin
Pain_Elemental27-Jun-04 19:52
Pain_Elemental27-Jun-04 19:52 
GeneralDataGrid :- Events Pin
jk chan26-Jun-04 22:48
jk chan26-Jun-04 22:48 
Generalaccess to controls of a project in another project Pin
fatidarya26-Jun-04 21:08
fatidarya26-Jun-04 21:08 
GeneralRe: access to controls of a project in another project Pin
Stefan Troschuetz26-Jun-04 21:20
Stefan Troschuetz26-Jun-04 21:20 
GeneralRe: access to controls of a project in another project Pin
fatidarya26-Jun-04 23:48
fatidarya26-Jun-04 23:48 
GeneralRe: access to controls of a project in another project Pin
Stefan Troschuetz27-Jun-04 0:12
Stefan Troschuetz27-Jun-04 0:12 
GeneralRe: access to controls of a project in another project Pin
fatidarya27-Jun-04 1:54
fatidarya27-Jun-04 1:54 
GeneralRe: access to controls of a project in another project Pin
Stefan Troschuetz27-Jun-04 2:07
Stefan Troschuetz27-Jun-04 2:07 
QuestionMail Checker 1.0 extension? Pin
razzeler26-Jun-04 18:08
razzeler26-Jun-04 18:08 
AnswerRe: Mail Checker 1.0 extension? Pin
Heath Stewart27-Jun-04 5:51
protectorHeath Stewart27-Jun-04 5:51 
Generalproxy pass https question Pin
steven shingler26-Jun-04 8:54
steven shingler26-Jun-04 8:54 
GeneralRe: proxy pass https question Pin
Heath Stewart26-Jun-04 14:36
protectorHeath Stewart26-Jun-04 14:36 
GeneralRe: proxy pass https question Pin
steven shingler29-Jun-04 6:58
steven shingler29-Jun-04 6:58 

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.