Discussion on:

6
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Flickering
amol.shegawkar 2nd Mar 2010
How solve the flickering problem
0 Votes
+ -
It is from 2002 and it's a tad juvenile, but can't see any successive repaints which usally show up as flickering.
Keyboard form connect to text form
0 Votes
+ -
YOU MUST STOP THE REPEATE (IF WE USE THIS BUTTON MORE THAN ONE TIME)
It may be old code but still works well. I did modify it slightly to make the Instanceref of the type of the form. This gives it reference to the forms methods without needing to make it static. Of course the forms needs to be instantiated at run time before Form2 is called but in my code Form1 is called via Application.Run(Form1) from Main() so is always available.

e.g.
private Form1 m_InstanceRef = null;
public Form1 InstanceRef
{
get
{
return m_InstanceRef;
}
set
{
m_InstanceRef = value;
}
}
0 Votes
+ -
how about
Form1 frm= (Form1)Application.OpenForms["Form1"];
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.