|
DroppedDown property is not supported in CE Framework. I need it for Pocket PC project.
|
|
|
|
|
hi all,
i have problem with the application apperance. I am developing using a Screen Resoulution 1024 * 768. But when i change the resolution to 1280 * 1024 the panels that were maximized changes the size and everything get out of it palce or changes its size,
How can i solve this problem?
|
|
|
|
|
Hello,
Normaly the correct usage of anchor and dock property from the controls should solve this problem.
May you can give a more detailed example.
All the best,
Martin
|
|
|
|
|
He Martin
i don't know what to info should i give you. Lead me if you can.
anyways i will try to change the anchor and dock properties. It need some time. So if it didn't work i will repost tomorrow.
Thanks
|
|
|
|
|
Hi,
When you set the size for each and every control, give in terms of percentage(%) instead of giving the exact size
Regards,
Sylvester G
|
|
|
|
|
And how can i calculate the percentage size if i have the size in pixcels??
|
|
|
|
|
I would prefere skaling! (Control.scale)
|
|
|
|
|
hey martin, your following me everywhere
thanks for the replies
Martin# wrote: I would prefere skaling! (Control.scale)
I will try that. i have never used it before so i am having a search on google and MSDN to find some methods for using it. If you have any link for that please tell me about.
thanks again
|
|
|
|
|
|
Hi all,
I have a peculiar problem in my application.
I have developed a .net windows application that interacts with a third party dll named Ltws32.dll to connect to the database HP9000 and fetch data.
I have been working with it since 3 months.
Application is completely developed and pakaged also.
Now, the first time i try to fetch data, the connection is aborting .
From the second attempt it is working fine.
This happens only the first time when the application is launched.
Another strange behavior is ,it happens only if i compile the application in release mode.In debug mode its working fine.
The connection to the database is getting established but when i try to send data to the open connection ,it fails.
What can be the reason?
Thanks.
|
|
|
|
|
have two Forms in C#. ie Form1 and Form2, Form1 contains one textBox Control. and Form2 contain one Button Control. When i press a Button of Form2 then i want the textBox of form1 will display like="Hello". is it possible ?
plz give me idea?
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
You've asked exact the same thing 6 minutes ago and already got answers. Do not spam the forum!!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Yes, it is possible. If you have two forms in the same application then on the button click event of form 2 u can write the code like
Form frm = new Form1("Hello") // Define overloaded constructor for Form1.
frm.ShowDialog();
In form1, simply do like
public Form1(string msg)
{
this.str = msg;
}
txtBox1.Text = this.str;
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
i have two Forms in C#. ie Form1 and Form2, Form1 contains one textBox Control. and Form2 contain one Button Control. When i press a Button of Form2 then i want the textBox of form1 will display some message like="Hello". is it possible ?
plz give me idea?
Sanjit.rajbanshi@wlinktech.com
|
|
|
|
|
|
|
Sanjib Raj wrote: s it possible ?
It is one of the basic things in Object Oriented programming.
just if you create Form2 from Form1 give a reference of form1 to form2 and have a public function in form1 that sets the text in the textBox, Vica versa
|
|
|
|
|
**TEST_TABLE
ID Name Surname
-- ---- -------
3 Jack Black
4 Marry Green
5 John Wall
I fill combobox like this;
comboBox1.ValueMember = "id";
comboBox1.DisplayMember = "name";
comboBox1.DataSource = obj; //obj is IList
So, combobox filled and show "Name"s.
How can I get selected value's ID from combobox.
For example, if I select "Marry" on the combobox, how can I get "4"?
Best Regards...
|
|
|
|
|
|
comboBox1.SelectedIndex is return selected value index number.
For example my Database (table) like this;
**TEST_TABLE
ID Name Surname
-- ---- -------
3 Jack Black
4 Marry Green
5 John Wall
If I fill the comboBox and I select the "Marry" So comboBox1.SelectedIndex return "1"
But I want to get ID. (I want to get "4" in this example).
|
|
|
|
|
Sorry,
Didn't looked at youre question carefully.
Have no experience with the binding of Database.
|
|
|
|
|
comboBox1.SelectedValue.toString()
|
|
|
|
|
comboBox1.SelectedValue.toString() --> Its return class name.
This are not work;
Convert.ToInt32(comboBox1.SelectedValue)
(string)comboBox1.SelectedValue;
comboBox1.SelectedItem.ToString();
comboBox1["id"];
comboBox1.SelectedItem["id"];
comboBox1("id");
comboBox1.SelectedItem("id");
|
|
|
|
|
And this is not work;
try
{
object o = comboBox1.SelectedValue;
int i = Convert.ToInt32(o);
}
catch (Exception ex)
{
DataRowView o = (DataRowView) comboBox1.SelectedValue;
int i = Convert.ToInt32(o["id"]);
}
|
|
|
|
|
comboBox1.SelectedValue.ToString()
Works great!
|
|
|
|