|
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)
|
|
|
|
|
I've got a question for you. See if you can help.
Our winform application does some calculations on the main form. Basically, an input (say IN) is entered and application extracts data from data sources and displays it in text boxes and grids through a main event which is fired by pressing a button. The data is unique to every IN (input) we enter.
The Need:
The goal is to open multiple forms and compare data of different INs side by side.
The Problem:
When I open a new form (or multiple forms) through MDIParent menu, instead of keeping the data of INs separate, the main event is fired in the default form. As a result, the data are over written and the the most recent data is processed and displayed in all the forms. Meaning, we end up with same data in multiple forms. We want the data to be displayed in individual forms.
Question:
Do you know what might be happening here?
Appreciated.
|
|
|
|
|
basi0014 wrote: Do you know what might be happening here?
You have a serious desgin flaw in your app. No, really.
Each form should be getting it's own set of data, but it's not. It appears that every child form is looking at the same "IN". Since we have no idea what you mean by "IN", it's impossible to tell you waht's going on.
Each copy of this child form should be maintaining it's own copy of whatever objects you're using to hold the data.
|
|
|
|
|
Dave Kreskowiak wrote: You have a serious desgin flaw in your app.
I agree. Sounds likes the OP needs to relook at how things should be done.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
if i use a dll in my project(i don't have the code of this dll.and i have receipt the new version of the dll but
some methods are changed.the compiler don't throw an error but while running the project a method not found exception appear.
Note :can i compile this dll using command prompt?
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: can i compile this dll using command prompt?
It is already compiled.
The compiler should pick up the changes for where ever else it is used, unless you are building the other assemblies against the old DLL.
|
|
|
|
|
I am in the process of designing a generic 'record maintenance' toolbar class containing the 'standard' add/edit/delete/save/cancel buttons. I notice that the VS toolbox already has a bindingnavigator control which already has some of the functionality that I require (although I don't require the navigation buttons).
Which control should I go for? As far as I can see the bindingnavigator is just a glorified toolbar bound directly to a datasource, but I may be missing something.
Can I subclass a toolbar/bindingnavigator visually or does it have to be done in code? I am using C# with VS2005 express.
TIA
Alan
|
|
|
|
|
aharrisreid wrote: I am in the process of designing a generic 'record maintenance' toolbar class containing the 'standard' add/edit/delete/save/cancel buttons. I notice that the VS toolbox already has a bindingnavigator control which already has some of the functionality that I require (although I don't require the navigation buttons).
Which control should I go for? As far as I can see the bindingnavigator is just a glorified toolbar bound directly to a datasource, but I may be missing something.
Can I subclass a toolbar/bindingnavigator visually or does it have to be done in code? I am using C# with VS2005 express.
You can just use Windows Forms' BindingSource and create a decent ToolStrip (previously known as ToolBar in .NET 1.x), with your own buttons with custom actions.
Any data binding applications in Windows Forms can do navigating by just using BindingSource with a valid DataSource such as DataSet or DataTable.
Start from this:
http://msdn2.microsoft.com/en-us/library/ef2xyb33.aspx[^]
Eriawan
|
|
|
|
|
Hi kuyak2000, thanks for the reply.
You can just use Windows Forms' BindingSource and create a decent ToolStrip (previously known as ToolBar in .NET 1.x), with your own buttons with custom actions.
The problem with the BindingSource is that I don't require the navigation buttons, which only leaves the add and delete buttons, so I would have to add my own edit/save/cancel buttons. It might make more sense for me to create my own customised toolstrip.
Regards,
Alan
|
|
|
|
|
aharrisreid wrote: The problem with the BindingSource is that I don't require the navigation buttons, which only leaves the add and delete buttons, so I would have to add my own edit/save/cancel buttons. It might make more sense for me to create my own customised toolstrip.
Using VS 2005 IDE, you can just add BindingSource by dropping from toolbox, and then start to create your own ToolStrip with your own data manipulation buttons. Dropping BindingSource doesn't create new BindingNavigator on your Form.
regards,
Eriawan
|
|
|
|