Group, I've expanded a small app that started with 50 textboxes and labels to 200 of each. To hide and make these visable I use the codes lblProperty01.Visible = False tbxProperty01.Visible = True lblProperty02.Visible = False tbxProperty02.Visible = True This means there are 400 lines of code to hide and display the 200 textboxes and labels. I've got to believe there is a more efficient way to write this..... and one that will hide and display these controls much faster. Can you advise me as to what that might be? As always, thanks for your assistance! Don

Member Avatar
Member Avatar
+0 forum 8

Flip Vertical and Print Code: Printer.PaintPicture Picture1.Picture, 0, Picture1.ScaleHeight, _ Picture1.ScaleWidth, -Picture1.ScaleHeight, 0, 0, Picture1.ScaleWidth, _ Picture1.ScaleHeight, vbSrcCopy I have seen this code in various places on the web but it does not seem to work. I am trying to get a label to flip to the vertical. Any help would be appreciated. Thanks Tim

Member Avatar
Member Avatar
+0 forum 2

How can I sort label names on buttons within a form. Automatically sort the names and put into the correct place within the form. A-Z order sort can be left to right. Want some sensibility to the form not all mixed up.

Member Avatar
Member Avatar
+0 forum 4

Situation: I have a form (dont we all! LOL) It's in a table (sigh) The table has 4 rows <tr> and 2 columns Each row has a <fieldset> containing multiple <labels> and various types of input fields (input, selects, radio, check) The CSS formats the labels to appear above the input fields The problem: I want two label/input fields on the same line. If I use a <tr><td> to accomplish this, the <tr> terminates the the <fieldset> [CODE] <label class='column' id='labcity' for='ajcity'>City:</label><select id='ajcity' name='city'></select> <label class='column' id='labcounty' for='ajcounty'>County:</label><select id='ajcounty' name='county' class='required'></select> [/CODE] [CODE] label.column { font-family:verdana; font-size: 10px; color: blue; …

Member Avatar
Member Avatar
+0 forum 11

How can I get [B]a right value [/B]in label2 that when I click on the equal button at the second or more time? Please help.. I am stuck [CODE]private void button3_Click(object sender, EventArgs e) { if (label1.Text == "0" || isActivity == true) { label1.Text = ""; isActivity = false; } if (label1.Text.Length < 28) label1.Text += "9"; else SystemSounds.Beep.Play(); } private void button12_Click(object sender, EventArgs e) { //label2 is a label to keep all process -and- isActivity is a boolean to apply operators whether pressed //result is decimal variable to keep data to compute //label1 is a label to …

Member Avatar
Member Avatar
-1 forum 3

Hello, Im trying to make a simple equation solver with tkinter. Originally i built it without using classes and it worked fine however I am now trying to use a class. [CODE]from tkinter import * import math class RootFinder(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() self.create_widgets() def create_widgets(self): self.root1lbl=Label(self.outputframe, text='') self.root1lbl.grid(row=0,column=1) self.root2lbl=Label(self.outputframe,text='') self.root2lbl.grid(row=0, column=4) self.calcbutton=Button(self.inputframe, text="Calculate Roots",\ command=self.findroots()) self.calcbutton.grid(row=1, column=5, padx=20) def findroots(self): sqr=self.sqrcoeff.get() xcoeff=self.xcoeff.get() const=self.constant.get() a=float(sqr) b=float(xcoeff) c=float(const) root1=round((-b+math.sqrt(b*b-4*a*c))/(2*a),3) root2=round((-b-math.sqrt(b*b-4*a*c))/(2*a),3) self.root1lbl.configure(text=root1) self.root2lbl.configure(text=root2) app=RootFinder() app.mainloop()[/CODE] Ive only shown the widgets concerned. The problem is that it doesnt like me trying to configure the root1 and root2 labels and I really …

Member Avatar
Member Avatar
+0 forum 10

Hi all, I am kinda new to the area so please bear with me :) I want to dynamically display an image according to a certain variable obtained from an XML document and I did the following code where intTypeID is a variable whose value changes according to the nodes being read: [CODE] // Choose which image to show switch (intTypeID) { case 1: strNewsImage = "<asp:Image \"ID=imgGeneral\" runat=\"server\" ImageUrl=\"~/images/news_general.gif\" />"; break; case 2: strNewsImage = "<asp:Image \"ID=imgEvent\" runat=\"server\" ImageUrl=\"~/images/news_event.gif\" />"; break; default: strNewsImage = "<asp:Image \"ID=imgGeneral\" runat=\"server\" ImageUrl=\"~/images/news_general.gif\" />"; break; }[/CODE] However the images are not displaying...any idea as …

Member Avatar
Member Avatar
+0 forum 1

I need to add a text line in a specified point of a windows form. In this form I draw something and I would like to describe the draw exactly where it is pointed. Is there a way to add a tooltip in a specified point of a Form? For example something like: [CODE]Point pt = new Point (490,567); ToolTip tt = new ToolTip(); pt.ToolTip=tt;[/CODE] Other ways I've tried: 1- Label class, but when I add the control with Controls.Add(label) the system restart execution of the draw, I don't know why. 2- TextBox class, but execution become quite slow when …

Member Avatar
Member Avatar
+0 forum 6

Hi I'm trying to get the labels of my form to appear above their input boxes and for the input boxes themselves to be side by side (basically a horizontal login form) I've used the label tag in my form after doing some research which looks like: [CODE]<form> <label for="email">Email</label> <br /> <input type="text" name="email" /> <label for="password">Password</label> <br /> <input type="text" name="password" /> </form> [/CODE] In my CSS I have a label property defined as: [CODE]label { display:inline-block; }[/CODE] But the outcome is this: [URL="http://i56.tinypic.com/10r0c1s.png"]http://i56.tinypic.com/10r0c1s.png[/URL] Could anyone please shed some light on my problem? Thank you

Member Avatar
Member Avatar
+0 forum 1

Ok, so I pretty much have my program up and running, but it's not the best looking program aesthetically, and I am trying to do a couple of things to make it look better, and none of them are working. Here is what I want to do. 1) change the button sizes to be all the same size (buttons are labeled decrease, surrender, remain, etc...) 2) move the buttons to the middle of the screen. 3) change the background to transparent black (like the Pro terminal on the Mac) or, at the very least, to change it just to black. …

Member Avatar
Member Avatar
+0 forum 1

Hi I had written an in VB.net that took addresses from a database put them into a csv file then took the csv file data and performed a mail merge in Word to allow the user to print them out on to an Avery L7163 label sheet. The app was working fine until our company upgraded from Windows XP with office 2000 to Windows 7 with Office 2010. Instead of getting the labels populated with the address data there are what appear to be form fields printed e.g. <<Address 1>>. Also they are not appearing in the order they should …

Member Avatar
Member Avatar
+0 forum 2

I need to create pages of address labels using VB Express, so no Crystal Reports. The end user does not have Office, so no mail merge either. I am using an Access table for data source. I need to be able to save it as a pdf so the documents can be emailed. This is for a membership system for a small charity. Any ideas on the label creation would be great - thanks.

Member Avatar
Member Avatar
+0 forum 2

The End.