Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
GeneralSending ANSI to Printer Driver Pin
myNameIsRon4-Oct-04 21:02
myNameIsRon4-Oct-04 21:02 
GeneralRe: Sending ANSI to Printer Driver Pin
Dave Kreskowiak4-Oct-04 23:44
mveDave Kreskowiak4-Oct-04 23:44 
GeneralRe: Sending ANSI to Printer Driver Pin
myNameIsRon5-Oct-04 5:43
myNameIsRon5-Oct-04 5:43 
GeneralRe: Sending ANSI to Printer Driver Pin
Dave Kreskowiak5-Oct-04 6:23
mveDave Kreskowiak5-Oct-04 6:23 
Generalcontrol instances at designtime Pin
mpff4-Oct-04 20:53
mpff4-Oct-04 20:53 
GeneralRe: control instances at designtime Pin
Dave Kreskowiak4-Oct-04 23:29
mveDave Kreskowiak4-Oct-04 23:29 
GeneralRe: control instances at designtime Pin
mpff4-Oct-04 23:55
mpff4-Oct-04 23:55 
GeneralRe: control instances at designtime Pin
Dave Kreskowiak5-Oct-04 0:13
mveDave Kreskowiak5-Oct-04 0:13 
Wow, 60?! It can be done using the Form.Controls collection. You can specify the index on that collection, but your going to run into a couple of problems.

First, if you make change to the visual properties of most of your controls, you'll find that the method you want to use will be slow. Actually, any method will be slow... So try out your method first before you dump alot of time into depending on it. See if the performance is going to be acceptable for you.

Second, your database that hold all the changes in not going to be linked directly to your controls, so ANY changes to the controls on the form, like accidently deleting and readding a control, will change the index of the control. This will make future versions of your application a [explitive deleted] to write.

Instead of relying on the index of the control, what you might want to do is add data to the .Tag property of your controls that uniquely identifies each of them. Then, use that as an indentifier in your database with the changes to be made to them. When you need to make changes, you'll have to iterate through the controls, checking each controls .Tag property for the ID of the control you want, then make the change to it. This will be even slower that using the index method, but will be far more reliable when making changes to your form.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: control instances at designtime Pin
mpff5-Oct-04 0:58
mpff5-Oct-04 0:58 
GeneralComboBox Pin
4-Oct-04 18:36
suss4-Oct-04 18:36 
GeneralRe: ComboBox Pin
Member 12723814-Oct-04 19:28
Member 12723814-Oct-04 19:28 
GeneralRe: ComboBox Pin
Stefan Troschuetz4-Oct-04 21:11
Stefan Troschuetz4-Oct-04 21:11 
GeneralRe: ComboBox Pin
HahnTech5-Oct-04 7:20
HahnTech5-Oct-04 7:20 
QuestionHow can I export a class of C++ to C#? Pin
ting6684-Oct-04 16:27
ting6684-Oct-04 16:27 
AnswerRe: How can I export a class of C++ to C#? Pin
Paul Lyons4-Oct-04 16:45
Paul Lyons4-Oct-04 16:45 
GeneralRe: How can I export a class of C++ to C#? Pin
Heath Stewart4-Oct-04 16:49
protectorHeath Stewart4-Oct-04 16:49 
AnswerRe: How can I export a class of C++ to C#? Pin
Heath Stewart4-Oct-04 16:50
protectorHeath Stewart4-Oct-04 16:50 
GeneralAssembly paths and assembly versions Pin
Marc Clifton4-Oct-04 15:56
mvaMarc Clifton4-Oct-04 15:56 
GeneralRe: Assembly paths and assembly versions Pin
Heath Stewart4-Oct-04 16:38
protectorHeath Stewart4-Oct-04 16:38 
GeneralRe: Assembly paths and assembly versions Pin
Marc Clifton6-Oct-04 4:20
mvaMarc Clifton6-Oct-04 4:20 
GeneralRe: Assembly paths and assembly versions Pin
Heath Stewart6-Oct-04 5:02
protectorHeath Stewart6-Oct-04 5:02 
GeneralRe: Assembly paths and assembly versions Pin
Marc Clifton6-Oct-04 5:13
mvaMarc Clifton6-Oct-04 5:13 
GeneralDll calling other dll Pin
RonBou4-Oct-04 15:56
RonBou4-Oct-04 15:56 
GeneralRe: Dll calling other dll Pin
Heath Stewart4-Oct-04 16:43
protectorHeath Stewart4-Oct-04 16:43 
GeneralRe: Dll calling other dll Pin
Alex Korchemniy5-Oct-04 18:21
Alex Korchemniy5-Oct-04 18:21 

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.