my application workes perfectly fine on win xp, but doesn't show some of the labels and text boxes on win 7 or vista (these controls that doen't show are on a panel that was created by code - the one's on the form are fine) -
for (int j = Drinks.Count - 2; j >= Index; j--)
-
{
-
p = new Point(3, 3 + hGap * (j + 1));
-
for (i = 0; i < Drinks.Count && pnlDrinks.Controls[i].Name.CompareTo("pnlDrink" + j) != 0; i++) ;
-
pnlDrinks.Controls[i].Location = p;
-
pnlDrinks.Controls[i].Name = "pnlDrink" + (j + 1);
-
-
}
-
Label lblDrinkNo = new Label();
-
lblDrinkNo.AutoSize = true;
-
lblDrinkNo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(177)));
-
lblDrinkNo.Location = new System.Drawing.Point(9, 9);
-
lblDrinkNo.Name = "lblDrinkNo";
-
lblDrinkNo.Size = new System.Drawing.Size(61, 13);
-
lblDrinkNo.TabIndex = 0;
-
lblDrinkNo.Text = "Drink No.";
-
-
TextBox txtDrinkNo = new TextBox();
-
txtDrinkNo.Location = new System.Drawing.Point(71, 6);
-
txtDrinkNo.Name = "txtDrinkNo";
-
txtDrinkNo.Text = drinkNo.ToString();
-
txtDrinkNo.Size = new System.Drawing.Size(27, 20);
-
txtDrinkNo.TabIndex = 41;
-
txtDrinkNo.Enabled = false;
-
-
Label lblDrinkPrice = new Label();
-
lblDrinkPrice.AutoSize = true;
-
lblDrinkPrice.Location = new System.Drawing.Point(139, 9);
-
lblDrinkPrice.Name = "lblDrinkPrice";
-
lblDrinkPrice.Size = new System.Drawing.Size(59, 13);
-
lblDrinkPrice.TabIndex = 2;
-
lblDrinkPrice.Text = "Drink Price";
-
-
-
TextBox txtDrinkPrice = new TextBox();
-
txtDrinkPrice.Location = new System.Drawing.Point(203, 6);
-
txtDrinkPrice.Name = "txtDrinkPrice";
-
txtDrinkPrice.Size = new System.Drawing.Size(32, 20);
-
txtDrinkPrice.TabIndex = 41;
-
txtDrinkPrice.Text = "00";
-
-
txtDrinkPrice.LostFocus += new System.EventHandler(PriceCheckValidity);
-
-
-
Label lblDrinkName = new Label();
-
lblDrinkName.AutoSize = true;
-
lblDrinkName.Location = new System.Drawing.Point(302, 8);
-
lblDrinkName.Name = "lblDrinkName";
-
lblDrinkName.Size = new System.Drawing.Size(63, 13);
-
lblDrinkName.TabIndex = 40;
-
lblDrinkName.Text = "Drink Name";
-
-
-
TextBox txtDrinkName = new TextBox();
-
txtDrinkName.Location = new System.Drawing.Point(369, 6);
-
txtDrinkName.Name = "txtDrinkName";
-
txtDrinkName.Size = new System.Drawing.Size(194, 20);
-
txtDrinkName.TabIndex = 41;
-
-
-
Label label6 = new Label();
-
label6.AutoSize = true;
-
label6.Location = new System.Drawing.Point(3, 3);
-
label6.Name = "lblSteps";
-
label6.Size = new System.Drawing.Size(34, 13);
-
label6.TabIndex = 30;
-
label6.Text = "Steps";
-
-
Panel pnlSteps = new Panel();
-
pnlSteps.AutoScroll = true;
-
pnlSteps.Controls.Add(label6);
-
pnlSteps.Location = new System.Drawing.Point(0, 30);
-
pnlSteps.Name = "pnlSteps";
-
pnlSteps.Size = new System.Drawing.Size(995, 38);
-
pnlSteps.TabIndex = 43;
-
-
-
hStartP = 1;
-
szLbl = new Size(19, 2);
-
wStartP = 43;
-
wGap = 120;
-
szTxt = new Size(70, 2);
-
-
for (i = 0; i < 32; i++)
-
{
-
c = new TextBox();
-
p = new Point(wStartP + i * wGap, hStartP);
-
c.Location = p;
-
c.Name = LBL_STEP + i;
-
c.Text = (i + 1).ToString();
-
c.Size = szLbl;
-
c.Enabled = false;
-
pnlSteps.Controls.Add(c);
-
-
c = new TextBox();
-
p = new Point(wStartP + 18 + i * wGap, hStartP);
-
c.Location = p;
-
c.Name = TXT_INGRD + i;
-
c.Size = szTxt;
-
c.Enter += new System.EventHandler(IngrdSaveLast);
-
c.LostFocus += new System.EventHandler(IngrdCheckValidity);
-
pnlSteps.Controls.Add(c);
-
-
p = new Point(wStartP + 18 + 69 + i * wGap, hStartP);
-
c = new TextBox();
-
c.Location = p;
-
c.Name = TXT_QTY + (i);
-
c.Size = szLbl;
-
c.LostFocus += new System.EventHandler(QtyCheckValidity);
-
pnlSteps.Controls.Add(c);
-
}
-
-
hGap = 75;
-
pnl = new Panel();
-
pnl.SuspendLayout();
-
pnlDrinks.Controls.Add(pnl);
-
pnl.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
-
pnl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
-
pnl.Controls.Add(lblDrinkNo);
-
pnl.Controls.Add(txtDrinkNo);
-
pnl.Controls.Add(lblDrinkPrice);
-
pnl.Controls.Add(txtDrinkPrice);
-
pnl.Controls.Add(lblDrinkName);
-
pnl.Controls.Add(txtDrinkName);
-
pnl.Controls.Add(pnlSteps);
-
-
pnl.Location = new System.Drawing.Point(3, 3 + hGap * Index);
-
-
pnl.Name = "pnlDrink" + Index;
-
pnl.Size = new System.Drawing.Size(995, 71);
-
pnl.TabIndex = 48;
-
-
0 928 Sign in to post your reply or Sign up for a free account.
Similar topics
by: rut |
last post by:
What control is available for showing multimedia content in a vb.net app. I
know there is mediaplayer but I'm looking for something that displays full
screen with no controls showing; controled...
|
by: Brindley |
last post by:
Hi there,
In my Mdi application, I have placed a set of controls on the parent form to
call child forms. The problem is that the controls hide the child forms. I
have used SendToBack when Im...
|
by: THQ |
last post by:
I have visual studio .NET V7 on XP pro and IIS 5.1. I
created an ASP.NET web application with a label, a
textbox and a button in c#. When I access the file
MyWebForm.aspx in IE 6 or using...
|
by: Andy |
last post by:
Just instaled the new Office 2007, and the new layout is really cool. Will
there be any upgrades to VS 2005 Pro that will include new controls whith a
smilar look and feel as that you get in Office...
|
by: j2ee.singh |
last post by:
Hi,
I'm looking to buy a new laptop primarily to learn & practice .NET and
C#.
My Question is:
Is there any requirement for .NET and C# in terms of the following
Operating Systems:
-...
|
by: Wayne |
last post by:
Several of my Access 2003 databases are exhibiting the same problem
under Windows Vista. Charts in forms are not showing any data.
Reports are not affected. Charts in reports display as they...
|
by: teejayem |
last post by:
Hi have an asp.net page which uses a client control which is embedded
within the aspx page.
I have tested this in IE 6 and 7and it works fine.
When we run the same page in IE 7 on Vista we...
|
by: dstorms |
last post by:
Something very strange going on here! Don't know where dstorms original post went! The post, in essence, stated that his form, containing a checkbox and a textbox, opened fine if opened...
|
by: nRk |
last post by:
Hi,
I am working on asp.net 2.0 with Visual Studio 2005. My asp.net
project contains one Masterpage.
I exposed my asp.net project in my machine (Windows XP with IIS 5.1)
and access using...
|
by: rory.groves |
last post by:
I have an C# .NET 2.0 application which runs fine on XP, but on Vista
(Home Basic), the MouseUp event does not fire until i move the mouse
over another control/button in the application. The same...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |