|
Yeah, I assume you're right.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm using Visual Studio 2005 and writing a C# MDI form appliction.
I insert a menustrip and toolstrip into a child mdi form. I then, click on the respective SmartTags and Inserted Standard Items. But when I run the program, Toolstrip shows up, but the menustrip doesn't show.
Any ideas why?
------------------------------------------------
"We are disturbed not by events, but by the views which we take of them.
I must die. Must I then die lamenting? I must be put in chains. Must I then also lament? I must go into exile. Does any man then hinder me from going with smiles and cheerfulness and contentment?"
- Epictetus (Greek Stoic Philosopher)
|
|
|
|
|
By default, the MenuStrip items will be merged with the MDI parent's menu. So you should see them on the main form's menu. You can disable this by setting AllowMerge[^] to false on the child MDI form. Or you can customize how the items are merged using the MergeAction[^] and MergeIndex[^] on the individual menu items.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks Tom
It works just as you say.
I have another question.
The child's ToolStrip AllowMerge Property is set to true, yet it does not merge with its Parent's ToolStrip.
Do you know how I can set it to merge with it's parent.
Thanks again, in advance.
Paul
------------------------------------------------
Paul Chin
|
|
|
|
|
There's a bug[^] with merging ToolStrips. Basically, you will have to perform the merge yourself.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks Tom
Based on the MSDN links that you shared, I manage to get the Child's ToolStrips to merge and unmerge.
Solution:
In Parent MDI Form, insert an event handler called MdiChildActivate. This can
be done via the Properties Grid. Then, insert the following code within this
event handler:
<code>
private void MainForm_MdiChildActivate(object sender, EventArgs e)
{
ToolStripManager.RevertMerge(toolStrip1);
if (this.ActiveMdiChild != null)
{
try
{
ToolStripManager.Merge((ActiveMdiChild as PictureForm).toolStrip2, toolStrip1);
}
catch (Exception err) { };
}
}
</code>
MainForm is the parent MDI Form, toolStrip1 is the Parent's Toolstrip, toolStrip2 is my child's ToolStrip and PictureForm is my Child MDI Form.
------------------------------------------------
Paul Chin
|
|
|
|
|
I am trying to create a data-posting mechanism in my winform application.
The application has one MDIparent and another main form in it.
I have added another form with a datagridview. What i want is for the user could enter the data in the datagridview such that data is saved there in the application and can be pulled out by the virtue of an identifier.i.e. each row of data can correspond to a 'Date'. And whenever the user wants to pull up that saved data respective to that particular date, he/she can do it just by clicking a date in the calendar.
I also want to make the column in the datagridview, just like the access. In access, we can make a filtered selection of data in the columns.
Any ideas?
|
|
|
|
|
how to get the desktop of each users
like
system.environment......
what else
can anybody help me
|
|
|
|
|
varun.g wrote: how to get the desktop of each users
like
system.environment......
what else
can anybody help me
You mean:
System.Environment.SpecialFolder.Desktop
Or something else?
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
DataGridview Through Coding dataset....
I use the DefaultValuesNeeded event to populate the new rows. This works
just fine except for one particular case: If the last existing row and
becomes the new row the default values are not effective.
If a click a ADD Button, cursor going to New row in cell Position.But i want default values in that Cell..and after cursor move to next cell..then before cell become a readonly property..so this only i want some example codes..pls...
This is the code fragment:
private void LocationDgrid_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
{
e.Row.Cells["lid"].Value = ????? ---->here what will give??
}
So Pls tell me
somasundaram
|
|
|
|
|
I'm developing a windows application in C# .net 2005 with crystal reports. I'm having problems desplaying the report. Is there any place that I can set the default size of the report to A4 independent of the printer. If I provide a valid printer that set the paper size to A4 then the report appears fine when I run the app and open a report. But If I dont have a printer installed for reports(A4) and have other printers installed (with different paper size) then the report not showing properly. Even if I set no printer, in printer setting option It takes the paper size of the default printer in the machine. I cant just change the paper size to A4. I want to open my report as A4 when I don't have a report printer in the machine.
Can anybody help me.
|
|
|
|
|
i really dont have the solution of yours problem but u have the solution o fmy problem i am also working on the same tool and i want to have yours help that can u please guide me that which steps u taken for using crystal report in yurs application?
|
|
|
|
|
try these,
http://support.businessobjects.com/documentation/product_guides/cr_net/vs_2005/
http://www.codeproject.com/useritems/Crystal_Reports_in_net.asp
|
|
|
|
|
HI,
I am working on a POC project. I am using Winforms 2.0 with .net 2.0. I am developing my forms with monitor resolution as 1024 X 678. In this resolution forms are looking pretty good. When I change the resolution to any other then forms are filling only some portion of the screen.Can anybody have ideas or examples for how to develop the resolution independent winforms.
Thanks
vedd
|
|
|
|
|
kuncha wrote: I am working on a POC project. I am using Winforms 2.0 with .net 2.0. I am developing my forms with monitor resolution as 1024 X 678. In this resolution forms are looking pretty good. When I change the resolution to any other then forms are filling only some portion of the screen.Can anybody have ideas or examples for how to develop the resolution independent winforms.
I always find it helpful to anchor form elements relative to the 4 corners of the screen. That way (assuming that you are not trying to fit too many controls on the form) if resolution changes, the controls stay relatively reasonable.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
But waht about Control fonts...they are shrinks when resolution chnages
|
|
|
|
|
Hi,
How to create the DataGridLinkColumn through coding C# Winforms
pls tell me..
somasundaram
|
|
|
|
|
|
try out this
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn(VS.80).aspx
|
|
|
|
|
i want to change startup form in windows application in C#
Do good and have good.
|
|
|
|
|
Change the form in Startup.cs to the form you wish to startup with
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Go to Program.cs and change the form
|
|
|
|
|
man no way, noe it's giviv' me another error, here it goes:
"Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'. MainApplication"
i added the reference to microsoft.win... and still nothing.
this is gettin' aggrevating
Know thyself
|
|
|
|
|
Hello,
I'm hoping someone can help me out here.
I want to get started using DataGridView, but I've not actually managed to find any examples that fit what I'm trying to do.
What I want to do is very simple:
(1) I have a list of class instances thus:
List<MyClass> classList;
(2) I want each MyClass member of classList to be represented as a row in my DataGridView
(3) I want to show only a subset of the class parameters, for example:
public class MyClass<br />
{<br />
private string name;<br />
private int anumber;<br />
<br />
public String Name<br />
{<br />
get { return (name); }<br />
set { name = value; }<br />
}<br />
<br />
public int Number<br />
{<br />
get { return (anumber); }<br />
set { anumber= value; }<br />
}<br />
}<br />
I think that sums it up. No SQL, nothing just a nice list of data that I want to display.
Can anyone help? Many thanks!!
|
|
|
|
|
My formating didn't come out properly, the first line of code should read:
List<MyClass> classList = new List<MyClass>();
classList.Add(new MyClass("Fred"));
classList.Add(new MyClass("Wilma"));
etc
|
|
|
|