|
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
|
|
|
|
|
I'm looking for a way to separate sections of text with horizontal lines in a textbox or another control. My nice-to-have would probably be a TableLayoutControl with a row containing a textbox for each section, allowing independent horizontal scrolling for each section, but I would settle for a textbox modded to act like the old code windows in VB6, with thin horizontal lines separating each section.
My second wish, in the ideal solution, is for the textboxes to autosize their height based on the text they contain.
Any suggestions please?
I do not believe they are right who say that the defects of famous men should be ignored. I think it is better that we should know them. Then, though we are conscious of having faults as glaring as theirs, we can believe that that is no hindrance to our achieving also something of their virtues. - W. Somerset Maugham
My New Blog
|
|
|
|
|
Brady Kelly wrote: separate sections of text with horizontal lines in a textbox or another control.
Try to use RichTextBox control and insert a horizontal-line bitmap from some web page.
Brady Kelly wrote: autosize
CP is full of such solutions, the easiest way is to handle TextChanged:
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.Width = (int)CreateGraphics().MeasureString(textBox1.Text, textBox1.Font).Width + 10;
}
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I want to know about vurtual graphic adapter in depth in respect to vista, do any body have any link or any article about it.
thanx
prashant jain
|
|
|
|
|
hi all,
my problem is how to include a checkbox as the first column in datagrid(not in Datagridview)in windows application for .net 2003 .pls suggest me its very urgent
ksf
|
|
|
|
|
u include a checkbox in datagrid by defining its datatype boolean
exp.
dc = New DataColumn("Is Male")
dc.DataType = System.Type.GetType("System.Boolean")
dc.DefaultValue = false
dc.ReadOnly = True
dt.Columns.Add(dc)
here dt is datatable.
Ghazanfar Ali
Programmar (MSTS,MCPD)
|
|
|
|