![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2008
Posts: 32
Rep Power: 0
![]() |
Class Form.
Got a new question
Anyone knows how to include WindowsForm to Class ( DLL )file? Don't know how to explain it better but there it is..
__________________
C# |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Feb 2008
Posts: 32
Rep Power: 0
![]() |
Re: Class Form.
Bump
![]() Anyway i'll ask new question then. I use cool Custom Command System with my program. My Program reads the CG.txt file and if it startswith some specific letter or word it shows some MessageBox. So my question is can i do this shortly or do i have to add this code over and over = if (conf_lbl.Text.StartsWith("ShowMsg") == true)
{
MessageBox.Show("Welcome. CG Detected.");
}It like on Form1_Load conf_lbl Reads the Configure File. Thanks ![]()
__________________
C# |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2008
Location: flagstaff az
Posts: 18
Rep Power: 0
![]() |
Re: Class Form.
What requires you to run the code over and over? Are there a bunch of cases in which you would need to show the message? If so you might be able to store the cases in an array and loop through the array to see if the they match the beginning of your files. Is this what you meant?
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: Feb 2008
Posts: 32
Rep Power: 0
![]() |
Re: Class Form.
Yea about.
__________________
C# |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Feb 2008
Posts: 32
Rep Power: 0
![]() |
Re: Class Form.
Really don't understand what is Array
But got a question.. Can Array be string or must it be int?Tutorial for Array.
__________________
C# |
|
|
|
|
|
#6 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
Re: Class Form.
Arrays can be of any type. You can use
string[] for strings, for example.
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Feb 2008
Posts: 32
Rep Power: 0
![]() |
Re: Class Form.
Ok, Thanks
__________________
C# |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| template class | brad sue | C++ | 1 | Mar 25th, 2007 5:46 PM |
| Show or hiding forms/modifying control properties ..from different a form.. | cloud- | C# | 4 | Nov 10th, 2006 10:51 AM |
| URL class | Eric the Red | Java | 5 | Jun 24th, 2006 9:01 PM |
| .NET Timer Form closing issue | MBirchmeier | C# | 4 | Nov 21st, 2005 10:00 AM |
| MFC/OpenGL: problem with 'Document' class | brenda | C++ | 11 | May 23rd, 2005 8:10 PM |