Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 6th, 2008, 3:30 PM   #1
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
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#
Jewel is offline   Reply With Quote
Old Jun 6th, 2008, 5:03 PM   #2
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
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#
Jewel is offline   Reply With Quote
Old Jun 7th, 2008, 11:28 AM   #3
ghg5
Newbie
 
Join Date: Apr 2008
Location: flagstaff az
Posts: 18
Rep Power: 0 ghg5 is on a distinguished road
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?
ghg5 is offline   Reply With Quote
Old Jun 7th, 2008, 1:45 PM   #4
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
Re: Class Form.

Yea about.
__________________
C#
Jewel is offline   Reply With Quote
Old Jun 7th, 2008, 2:24 PM   #5
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
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#
Jewel is offline   Reply With Quote
Old Jun 7th, 2008, 2:37 PM   #6
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
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>
Jimbo is offline   Reply With Quote
Old Jun 7th, 2008, 3:22 PM   #7
Jewel
Programmer
 
Join Date: Feb 2008
Posts: 32
Rep Power: 0 Jewel is on a distinguished road
Re: Class Form.

Ok, Thanks
__________________
C#
Jewel is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC