|
Yes. Why not just download their sourcecode from codeplex and see how they did it?
|
|
|
|
|
Hi
I have a MdiForm with some child forms.
In MdiForm i have a StatusStrip control with toolStrips as items.
From ChildForms i cant change visible property of StatusStrip items.
I created a function in MdiForm to call it from ChildForms and wrote code in it to change visible property, but it faild too.
In MdiForm i have no problem, problem occurs when i try to change from childForms.
What should i do?
Regards
|
|
|
|
|
Posting the text of the error messages abd some code snippets wouldbe very helpful.
Regards
|
|
|
|
|
Ok
Can you describe it more for me please?
Tanx.
|
|
|
|
|
Describe what??!! I'm telling you to post the errors are you getting, and the code you are using that is giving you these errors!!
Regards
|
|
|
|
|
Ok
Dear friend
For example in statusStrip control, i want to change first items text or second items visibility, i can do this in MDIForm that contains this control, this controls and it's items are public, but changing its items from ChildForm has no effect!
There is no error message, just i see nothing.
<br />
public void setStatusbar(string Message, bool visible, string tsStatusLabel)<br />
{<br />
statusStripMain.Items[tsStatusLabel].Text = Message;<br />
statusStripMain.Items[tsStatusLabel].Visible = visible;<br />
}<br />
<br />
copymdiMain.setStatusbar("InProcess...", True, "tsStatusLabelProcess");<br />
i wish this was enough.
-- modified at 14:07 Friday 1st December, 2006
|
|
|
|
|
The copymdiMain object; How do you provide it to the child form? Via a Constructor I suppose?
It should work, but if you make it using the new keyword for every child sure it won't work.
Regards
|
|
|
|
|
can i use matlab in C#??how to include it?
SUMA
|
|
|
|
|
|
Hi everyone,
I am using Sharpdevelop.
I have specified the icon of my app in the property inspector,
and it is showing correctly in the title bar of the app when
I run it.
But when I look at the executable in explorer, it is a dos window
exe icon.
How do I specify the icon so that it shows up correctly in explorer?
forged
|
|
|
|
|
Sounds like you have set the 'forms' icon but not the app's icon
Sometimes simply is better than fancy. The developer stated after typing code line 10 billion!!!
|
|
|
|
|
OK, I have set the form icon properly.
How do I set the application icon?
Can someone please tell me?
I AM USING SHARPDEVELOP and C#.
forged
|
|
|
|
|
I don't use SharpDevelop so I don't know what step to take.
I can suggest this steps just from looking at a screenshot of SharpDevelop.
Try:
1. On main toolbar click 'Project' and then look for option.
2. In the 'Projects' dockalbe window right click on the 'solution' name and look
for options.
3. Google
Good luck.
Jason
Sometimes simply is better than fancy. The developer stated after typing code line 10 billion!!!
|
|
|
|
|
First of all, you need to ensure the icon contains the correct icon formats. You have size and color settings to play with.
Most common sizes are
16 x 16
24 x 24
32 x 32
48 x 48
64 x 64
Colors are
16 colors
256 colors
16 bit colors
32 bit colors
|
|
|
|
|
you have to set the forms icon and app icon seperately.
You can set the app icon in the project properties somewhere.
good luck.
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
|
Have you checked that:
Form's icon is set &
App's icon is set
Sometimes simply is better than fancy. The developer stated after typing code line 10 billion!!!
|
|
|
|
|
Hello,
I want to load an hierarchical view using two tables: Companies and users. There are about 25000 records in both tables.
If I use CreateChildView to retrieve the child rows for everycompany record, building the complete tree takes about 3 minutes (!!):
foreach(DataRowView dr in companiesBindingSource)
{
IList childs = dr.CreateChildView("Companies_Users");
}
However, when I use GetChildRows the same code only takes 80 ms:
foreach(DataRowView dr in companiesBindingSource)
{
IList childs = dr.Row.GetChildRows("Companies_Users");
}
Can anyone explain why there is such a big difference?
Thanks for any help you can give me.
Regards,
Kees Vermeulen
|
|
|
|
|
Shooting from the hip, I would say step back to your data adpter and fill it will both tables then set the relationship of your data view. (I know you can do this with a datagrid haven't done this with a data view). I just seems you are going the long way about.
Sometimes simply is better than fancy. The developer stated after typing code line 10 billion!!!
|
|
|
|
|
I want to display a complete view at once:
Company 1
- User 1
- User 2
Company 2
- User 3
- User 4
etc.
Therefore I run through all parent records, fetch the children and store them both in a flat list. This is different from having two separate grids, one showing the parent records and one showing the children of the selected parent record.
Loading the data into the tables is no problem (calling Fill() only takes about 400 ms). Only building the view takes time when using CreateChildView instead of GetChildRows.
Kees
|
|
|
|
|
CreateChildView will create controls too I susoect. Have a look in Reflector what is happening inside those methods.
|
|
|
|
|
Reflector?
I never used it, where can I find this tool?
Kees
|
|
|
|
|
Hai Friends,
I was stuck while do a porject which involves adding a key_up event for a label control....
Can anyone help me to solve this... It may be in any method!!
Regards
B.VijayaRam
Vijay
|
|
|
|
|
Hello,
public YourConstructor()<br />
{<br />
InitializeComponent();<br />
<br />
this.YourLabel1.KeyUp +=new KeyEventHandler(YourLabel1_KeyUp);<br />
}<br />
<br />
private void YourLabel1_KeyUp(object sender, KeyEventArgs e)<br />
{<br />
<br />
}
All the best,
Martin
|
|
|
|
|
Why would anyone need a keyup event in a label?
|
|
|
|