it depends on yourself, not the school
technology is a tool, your mind is much more important.
User Profile
Collapse
-
FYI: struct is enough for you to orangnize your data.
try this and I have tested on my VS
...Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial classLeave a comment:
-
first, some obvious errors.
these varibles' accessing authority is private. so fred's object can't access them.Code:string jim; string hilda; int eccles; bool crunn; double vodka;
second, when you use chunky.Add( ),
the transferred parameter shouble be fred's object.
does this return a list of fred: r.returnedList?
i'm not native speaker,...Leave a comment:
-
I don't think you could build successfully.
I did like the following and it works.
...Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : FormLeave a comment:
-
Hi PsychoCoder,
Anyway thanks for your reply.
my question is:
I'm currently developing under Windows Moblie system.
There are two WinForms. One is called "Setting" Form and anthor is "ShowList" Form.
Setting Form has
a ComboBox for user to choose a GPS MeasureMethod,
a CheckBox indicates whether he/she is a superuser,
...Last edited by LittleDong; Mar 8 '12, 06:36 AM. Reason: edit the text format and explain the question more detailedLeave a comment:
-
How to pass a UI from one form to anthor form?
How to pass a form's UI to anthor form?
such as a ComboBox or TextBox.
plus how to pass mixed controls i.e. ComboBox & Label & TextBox ?
use Dictionary<Cont rols>
or declare a public form.control variable -
Can this work ?
replace "MDIParent.clos e()" with "Application.Ex it();" when u close MDIParent
Or you can create a pulic form in a new class.
common.cs
...Code:namespace YourWorkNameSpace { public class Common { /** * public forms */ public static MDIParent m_MDIParent = null; public static MDIChild m_MDIChild = null;Leave a comment:
-
-
if there are six textforms in a winform
I think it's not a good way to write
if((Textbox1.te xt=="")&&(Textb ox1.text==null) )
.
.
if((Textbox2.te xt=="")&&(Textb ox2.text==null) )
.
.
if((Textbox3.te xt=="")&&(Textb ox3.text==null) )
.
...Leave a comment:
-
how to validate the Textbox.text is not empty?
would somebody show me a convenient way to validate Textbox's value are not null or empty in Winform.
if-else condition is only good for fewer textboxs in a winform or solution,
if(Textbox1.tex t==null)
{
...
}
else
{
...
}
but if there are lots of textbox?
No activity results to display
Show More
Leave a comment: