##vbScript - Get Drive Letter by Volume Label Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. I have all my computers partitioned with two partitions. The drive letters are C (OS and applications) and D (user data). I use Macrium Reflect to take monthly full and daily differential images of C. To backup D Ii use a script front end for robocopy. Using a script to do the backup has one major problem. The drive letter of my dedicated backup external drive may change. I find that even if I have used Drive Manager to …

Member Avatar
+1 forum 0

Hi,my name is yawar i am a student learning c#.I have combobox,when i select an item in combobox there comes data which i want to display on labels,but my problem is there comes many data,i want to display only 3 labels when only 3 data rows comes from database and when 4 data rows comes i want to diplay 4 labels.please help me.

Member Avatar
Member Avatar
+0 forum 11

Hi eveyone, I have a few labels in a panel and found this bit of code... Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click Dim RndGen As New Random For Each ctrl As Control In Panel1.Controls Dim lbl As Label = TryCast(ctrl, Label) If lbl IsNot Nothing Then lbl.Text = RndGen.Next(1, 45).ToString End If Next End Sub what i would like to do is , put the text values into an array. So that i can evaluate them to see if any are equal to each other. if 2 are both the same, then lose both . The …

Member Avatar
Member Avatar
+0 forum 1

Hello. I am having a small problem involving a text label not displaying correctly over a field. It was fine until about a week ago; I believe I must have changed something and now I do not remember what I did that is causing this error. The State text label should display over the dropdown but no matter what I try I cannot get it to render in this manner. Here is code related to this area in question: ` <!--City Field--> <label type="grey" for="email">City:</label> <input type="field" type="text" name="city" id="city" size="23" /> <!--State Field--> <label>State:</label> <select name="state" id="state"> ` Please …

Member Avatar
Member Avatar
+0 forum 15

Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def build(self): delta = datetime.datetime(2015, 3, 21, 2, 15, 11) - datetime.datetime.now() days = delta.days days = str(days) self.label_days = Label(text=days + " days") hour_string = str(delta).split(', ')[1] hours = hour_string.split(':')[0] self.label_hours = Label(text=hours + " hours") minuts = hour_string.split(':')[1] self.label_minuts = Label(text=minuts + " minuts") seconds = hour_string.split(':')[2] self.label_seconds = Label(text=seconds + " seconds") b = BoxLayout(orientation="vertical") b.add_widget(self.label_days) b.add_widget(self.label_hours) b.add_widget(self.label_minuts) b.add_widget(self.label_seconds) return b if __name__ == "__main__": CountdownApp().run() I want …

Member Avatar
Member Avatar
+0 forum 5

is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = Text2.Text Text2 = "" ! DBGrid1.Columns(2).Text = Text3.Text Text3 = "" DBGrid1.Columns(3).Text = Text4.Text Text4 = "" DBGrid1.Columns(4).Text = Text5.Text Text5 = "" DBGrid1.Refresh End Sub Private Sub Command4_Click() 'button for search 'MsgBox ("Your Name is " & Text6.Text) With Data1.Recordset If Combo1.Text = "id" Then Label6 = ("[id]like" & …

Member Avatar
Member Avatar
+0 forum 1

I want to make new string to show under the first ("Verificiranje na akauntot !") text but i dont know what to do in the "jLabel3MouseClicked" class, please help me how do i paint the graphic after i press the label ? here is some code: @Override public void paint(final Graphics g) { super.paint(g); Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Font font = new Font("Serif", Font.PLAIN, 17); g2.setFont(font); g2.setColor(Color.GREEN); g2.drawString("Verificiranje na akauntot !", 20, 130); } private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) { // what should i do here ? }

Member Avatar
Member Avatar
+0 forum 11

I'm trying to create a set of selectable labels, New Game, Load Game, Options, and Exit. I created a MenuItem class which extends Label, and set up the constructor to use the standard stuff expected from a Label. Here is the class. package com.irridium.echo.menu; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.scenes.scene2d.ui.Label; /** * @author GeoDoX * * MenuItem.java */ public class MenuItem extends Label { private boolean selected = false; private LabelStyle menuOption; public MenuItem(CharSequence text, LabelStyle menuOption) { super(text, menuOption); this.menuOption = menuOption; menuOption.fontColor = Color.WHITE; } public void select() { if(selected == true) { selected = false; menuOption.fontColor = Color.WHITE; } …

Member Avatar
Member Avatar
+0 forum 6

This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController class. private static Game game; private static sceneController controller; public static void main(String[] args) { Application.launch(GoldMiner.class, (java.lang.String[])null); game = new Game(); running = true; tick(); //Line 26 } //Line 44: update(); private static void update() { controller.totalGoldLabel.setText(Float.toString(game.getTotalGold())); //Line 52 controller.currentGoldLabel.setText(Float.toString(game.getCurGold())); } Error Exception in thread "main" java.lang.NullPointerException at com.github.geodox.goldminer.GoldMiner.update(GoldMiner.java:52) at com.github.geodox.goldminer.GoldMiner.tick(GoldMiner.java:44) at com.github.geodox.goldminer.GoldMiner.main(GoldMiner.java:26) Exception in thread "JavaFX Application Thread" sceneController is just the FX Controller, and it is using the …

Member Avatar
Member Avatar
+0 forum 15

I have a listbox with items and a panel. What I want to do is when I click on an item, a label shows up in a panel, which was already there before the item was clicked. I've managed to show the label, but it didn't add to the panel, instead went to the back of the panel. How could I fix this? I've already tried to code the label to bring it to front, but it didn't work. Here is the code I have so far: Dim MyLinkLabel As New Label() With MyLinkLabel .Location = New Point(205, 90) .Visible …

Member Avatar
Member Avatar
+0 forum 2

How to create a form with a a button add_subjects which adds one textbox on each click, at runtime in VB and a corresponding label, 3 buttons - Add, Edit and Delete, for each textbox created. Once each texbox's corresponding Add _button is clicked, it passes textbox's value is passed to the label.

Member Avatar
Member Avatar
+0 forum 1

Hello guys!!! I want to design my audio dvd colection, so I need your advices about label making software! I hope you will help me. Thanks!!!

Member Avatar
Member Avatar
+0 forum 3

can someone help me to find out why my label display is listing the result of the textboxes instead of adding up the values of the text boxes? here are my codes: Dim strstudentName As String = (" ") Dim dblAssignment1 As Double Dim dblAssignment2 As Double Dim dblAssignment3 As Double Dim dblAssignment4 As Double Dim dblMidterm As Double Dim dblFinalExam As Double strstudentName = (txtStudentName.Text) dblAssignment1 = (txtAssignment1.Text) dblAssignment2 = (txtAssignment2.Text) dblAssignment3 = (txtAssignment3.Text) dblAssignment4 = (txtAssignment4.Text) dblMidterm = (txtMidterm.Text) dblFinalExam = (txtFinalExam.Text) lblFinal.Text = "Final Grade is: " + (txtAssignment1.Text + txtAssignment2.Text + txtAssignment3.Text + txtAssignment4.Text + txtMidterm.Text …

Member Avatar
Member Avatar
+0 forum 2

what code should i write in VBA if i want the textbox to show the same as my label caption?

Member Avatar
Member Avatar
+0 forum 1

i have threshold line[s] displaying on my chart, but i need a label now, showing one to be a "MIN" line, one a "MAX". i will post code upon request, but currently it only draws the threshold, but i am unable to get it to draw a label on it. does anyone have experience with this? i have searched and searched to no avail.

Member Avatar
Member Avatar
+0 forum 1

Hi all, I'm following [this](http://msdn.microsoft.com/en-us/library/dd492149.aspx) tutorial and I'm encountering strange behaviour with the program. My finishLabel *ought* to be calling finishLabel_MouseEnter() when the mouse hovers over it, but it's calling wall_MouseEnter() instead - the location of the mouse resets and the congratulations box doesn't show up. In the properties/events box for the label, finishLabel_MouseEvent is selected. In Form1.Designer.cs, `// ` `// finishLabel` `// ` `this.finishLabel.AutoSize = true;` `this.finishLabel.Location = new System.Drawing.Point(467, 430);` `this.finishLabel.Name = "finishLabel";` `this.finishLabel.Size = new System.Drawing.Size(34, 13);` `this.finishLabel.TabIndex = 15;` `this.finishLabel.Text = "Finish";` `this.finishLabel.MouseEnter += new System.EventHandler(this.finishLabel_MouseEnter);` describes my finishLabel, and there are no other 'this.finishLabel.MouseEnter' lines. …

Member Avatar
Member Avatar
+0 forum 3

Is there any way to change all of the text inside a label to another character? It would still be the same length, but all of the text within the label would be the new character.

Member Avatar
Member Avatar
+0 forum 7

Hello I am making a win form application on frame work 3.5 using C#. I am creating dynamic checkboxes depending on the numbers of records in access table. After this I am also able to get the name, text and other properties of dynamically created checkboxes and I am displaying the name of selected checkboexs in dynamically created labels on Form. My problem is if I uncheck the checkbox, then also name of that checkbox is coming on lable, I want to remove that dynamic label from the form for which checkbox is unchecked. Example of Form Design dCeck1 dCheck2 …

Member Avatar
Member Avatar
+0 forum 3

I’m making programs which will separate a two digit number from a textbox to two different labels. Later I want to take those two separate numbers and square them indiviudally and add them together. It would be great if someone can get me some help. This is what I have so far: Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Label1.Text = "First digit:" & TextBox1.Text.Substring(0, 1) Label2.Text = "Second digit:" & TextBox1.Text.Substring(1, 1) Label3.Text = (Label1.Text) ^ 2 End Sub End Class

Member Avatar
Member Avatar
+0 forum 2

I am using Visual Studio 2010, and I am trying to make a label that moves randomly in the form window, Like this: [Click Here](http://i.stack.imgur.com/IF3IA.gif) I just want a hint on how can I make the label move randomly? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 11

Its all in the title, i want to get 2 dates from user then view them in a data report text labels so we have idea what the report is displaying

Member Avatar
Member Avatar
+0 forum 1

A short code to show you how you can download and display an image from the internet on Python's Tkinter GUI toolkit.

Member Avatar
+3 forum 0

I want to display datatable result in a label. I have something like this : PLEASE TAKE ACTION FOR LINE **LABEL** But i want the result to be like this: PLEASE TAKE ACTION FOR LINE **Z3, Z5, Z8** I try to use loop but still cant get the result that I want. Here is my loop: If ds.Tables(0).Rows.Count <> 0 Then For i As Integer = 0 To dt.Rows.Count - 1 line += dt.Rows(i)("LINE").ToString() lblLine.Text = line Next End If Can someone help me please..

Member Avatar
Member Avatar
+0 forum 1

Hi! I'm writing little software just to get some practice in c#. I have listview in form 1 where program displays first name and last name form access database. When admin selects name/surname in listvioew and press show usercard(form2) I have a label in form2 and I want it to display name and surname in that label(as who's card is open). I'va tried different ways (all I could find using google) nothing worked for me (probably I was doing something wrong) I've managed to get that **almost** working at some point but label was showing name only on click.....I'm neewbe …

Member Avatar
Member Avatar
-1 forum 3

Hello, In a label, I am displaying the number of characters left in a textbox. Once the user goes into negative characters remaining, the label text turns red. If they try to submit the form, an alert message will popup letting them know they have exceeding the limit of characters. I am not sure how to store the state(text and color) of the label so that after the button click, when the page reloads, it will go back to what it was. Everytime it reloads, it goes back to "500 Characters Remaining" - which is the limit I am setting. …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am trying to incorporate Javascript with ASP. I want to display in the Label how many characters the client has remaining in the textbox. The Label is not changing at all - any ideas? <script type="text/javascript"> function CheckCharCount(textBox, maxLength) { var charCount = maxLength - texBox.value.length; document.getElementById("lblCharCount").innerText = "; if (charCount >= 0) { //within limit - display in black document.getElementById("lblCharCount").style.color = "black"; } else { //negative chars - display in red document.getElementById("lblCharCount").style.color = "red"; } } </script> <form runat="server"> <div> <asp:Label ID="lblCharCount" runat="server">500 Characters Remaining</asp:Label> <asp:TextBox ID="textBox" runat="server" Height="53px" TextMode="MultiLine" onkeyup="CheckCharCounter(this, 500)"/> </div> </form> Thanks, Brittany

Member Avatar
Member Avatar
+0 forum 1

I need some help here. I am writing a little desktop app that monitors my ToDo database and whilst it works great when run once, it kind of freaks out when I run it from a timer. As in all the labels start repeating. Below is the entire code. Imports System.IO Imports System.Runtime.InteropServices Imports System.Data Imports System.Data.SqlClient Public Class ToDoWatcher Dim WatchEnabled As Integer Dim drag As Boolean Dim mousex As Integer Dim mousey As Integer Const NL As String = vbCrLf 'simple hack to remember what the code for newline is :P Dim ServerName As String = "my server" …

Member Avatar
Member Avatar
+0 forum 5

Hi, I have created a label template in Word and written a macro to print all records (see code below printAllRecords() and attachments) from an Excel datasource. The problem is when I press F2 (defined function key to print all records in my macro), it prints the 1st page once and then print all records (i.e. 1st page is printed twice). Anyone knows why and how to fix it?? Thanks! Sub autoOpen() Dim actPath As String Dim strFileExcel As String actPath = ActiveDocument.Path strFileExcel = actPath + "\CCS Automation Template.xls" ' Get the source and update labels ActiveDocument.MailMerge.OpenDataSource Name:= _ …

Member Avatar
Member Avatar
+0 forum 1

I want to create a java application where you can build simple logic circuits (just started learning java recently and it was just a random project idea I got off the net) Ultimately I want the gates as icons on a pane that users can drag and drop onto a canvas but drag and drop is a bit too far ahead for now. So I was thinking of a list next to a large white area (a panel or a canvas) and clicking on the canvas or panel should create a new instance of whatever is selected on the list. …

Member Avatar
Member Avatar
+0 forum 11

I know how to create a window of a given size. How do I control the placement of items like labels and text boxes in that window?

Member Avatar
Member Avatar
+0 forum 5

The End.