|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how pass data between formspart of my application has a "Notepad" similar function with a separate
"Find" form. -- how do I keep the Find form open yet have it pass data back to the Main form to do repetitive searches -- llike Notepad ?? I've tried both "Show()" (which doesn't work) and "ShowDialog() (which works fine but I don't know how to make it do repetitive "Next" searches). It seems I need to do the searching from the Find form -- but I can't figure out how to access the richtextbox form on the main form.
Show quote
Hide quote
"tcloud" <tcl***@discussions.microsoft.com> schrieb: Pass a reference that points to the richtextbox to the find form, in a > part of my application has a "Notepad" similar function with a separate > "Find" form. > > -- how do I keep the Find form open yet have it pass data back to the Main > form to do repetitive searches -- llike Notepad ?? > > I've tried both "Show()" (which doesn't work) and "ShowDialog() (which > works > fine but I don't know how to make it do repetitive "Next" searches). > > It seems I need to do the searching from the Find form -- but I can't > figure > out how to access the richtextbox form on the main form. property, for example. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> "Herfried K. Wagner [MVP]" wrote: I'm sorry, but I don't understand that answer -- is there some place I can > Pass a reference that points to the richtextbox to the find form, in a > property, for example. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> see some sample code? I'm not an experienced programmer. How about set the RichTextBox's Modifiers to Public, and in main form use
frmFind.RichTextBox1.Text? Show quoteHide quote "tcloud" <tcl***@discussions.microsoft.com> wrote in message news:2730BCC1-4BC1-4559-AB0F-D5104C60ECCD@microsoft.com... > > > "Herfried K. Wagner [MVP]" wrote: > >> Pass a reference that points to the richtextbox to the find form, in a >> property, for example. >> >> -- >> M S Herfried K. Wagner >> M V P <URL:http://dotnet.mvps.org/> >> V B <URL:http://classicvb.org/petition/> > > I'm sorry, but I don't understand that answer -- is there some place I can > see some sample code? I'm not an experienced programmer. "Wencheng Magiya" <goldla***@hotmail.com> schrieb: That would work too, but it's better to decouple the two form classes.> How about set the RichTextBox's Modifiers to Public, and in main form use > frmFind.RichTextBox1.Text? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> =?Utf-8?B?dGNsb3Vk?= <tcl***@discussions.microsoft.com> wrote in
news:FA3E3C87-4D32-4368-A00F-41E38EC12EBB@microsoft.com: Maybe this helps?> I've tried both "Show()" (which doesn't work) and "ShowDialog() (which > works fine but I don't know how to make it do repetitive "Next" > searches). http://www.codeproject.com/dotnet/WorkingWithWinForms.asp Its similar - just call methods in addition to what it shows. -- Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/ "Programming is an art form that fights back" Get your ASP.NET in gear with IntraWeb! http://www.atozed.com/IntraWeb/
System.Web.Mail.Smtp namespace
Get names of opened windows and their process name manged alternative to get the complete text from each open window Intellisense question Need Help With Translation C#? to VB How to convert this code from C# to VB.NET? reference dependency warnings during build is there way to send email throught outlook express without mapi controls ? MessageBox coming up with blank message and blank buttons. Case conversion |
|||||||||||||||||||||||