- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 7
- Posts with Downvotes
- 4
- Downvoting Members
- 5
51 Posted Topics
I've been looking tutorials and examples of setting the value field of a input tag. I'm trying to enter two IP addresses into the text fields on [this](https://www.ipaddressguide.com/cidr) website, under IP Range To CIDR. But my code won't enter anything. There's no ID tag, so I can't use the getElementById … | |
I'm working in Excel to extract content of a table from a web page and populate Excel sheet cells with it. I'm trying to extract data from a table that gets loaded to a web page after show results method gets called. I have an error that says "Run-time error … | |
I'm trying to replicate the ray-looking design, just like in the first image. Here's my code: When the user clicks on the button: private class drawInnerShape implements ActionListener{ public void actionPerformed( ActionEvent e){ paintInnerDesign = true; repaint(); } } The following code executes: class DrawArtwork extends JPanel { @Override public … | |
My goal is to make manipulations to an image by adding shapes on top of the image using JavaScript. For example, adding rectangular shapes to an image of a refregirator, as shown below:  <!DOCTYPE html> <html> <head> <style> #avaliableSpace { border-radius: 25px; background: #00B050; padding: 20px; width: 125px; … | |
I'm trying to show a user JOptionPane where they enter x and y coordinates each in their own textfield, but I don't know how to store user input as ints. So I need to do something like: int xCorFromUser = xCor; int yCorFromUser = yCor; I have this code so … | |
I have this code: If e.Delta <> 0 Then If e.Delta <= 0 Then If PictureBox1.Width < 500 Then Exit Sub 'minimum 500? Else If PictureBox1.Width > 2000 Then Exit Sub 'maximum 2000? End If PictureBox1.Size = New System.Drawing.Size(PictureBox1.Width + e.Delta / 1, PictureBox1.Height + e.Delta / 1) PictureBox1.Location = … | |
I want a set of not the same numbers to be added to a listbox, if there are any numbers that are the same, then they won't be added. I tried: If (Number1 = Number2) Or (Number1 = Number3) Or (Number1 = Number4) Or (Number1 = Number5) = False Then … | |
Is there a way to catch whether a certain message has popped out. I tried: If MsgBox("Well done!", MsgBoxStyle.OkOnly, "Amazing") = Visible = True Then Me.WindowState = FormWindowState.Maximized End If | |
I've made a timer and six labels. Then a number is being generated for each label seperately. After testing how it works, I found out that sometimes two same numbers are being generated at the same time. In the picture attachment you can see how two numbers were generated at … | |
Re: What do you mean by: > filter gridview in form 1 based on comboboxPlease help.. Is the combobox in the first form or the second? And how exactly do you want to filter the items in the gridview? | |
I have a listbox which contains items in it. After you click on the selected item, the listbox will be populated with different items relevant to the item which you clicked on. What I want to make, is instead of having to click on the selected item, I want to … | |
What I have is a listbox with items imported from the database. From the Data Sources (Shift+Alt+D) I've dragged a table in the form of Details, instead of DataGridView. What I'm trying to figure out, is how to make the information to be displayed in the Details when an item … | |
I have linklabel which has spaces at the end, I want to copy the label's content without the spaces. This copies the linklbl with spaces at the end: Clipboard.SetText(E_mailLinkLabel.Text) But couldn't figure out how to trim the linklabel before copying it. | |
I've trying to figure out how to do this, but errors didn't stop flooding me. The following code works fine: For i = 1 To 50 Me.Controls("CheckBox" & i).Visible = True Next i But when I modify it to: For i = 1 To 50 Me.Controls("CheckBox" & i).Checked = False … | |
I have a database with items which I want to populate to a listbox. The first image shows how its right now, and the second shows how I want the final result to look like.   | |
I'm trying to create a program which will work in the background and can be brought back to the topmost upon a keyboard shortcut. I got stuck when creating the multiple keypress statement, and not sure how to make the shortcut work when the form is not in focus. Here's … | |
I'm trying to zoom in on a Picturebox when scrolling the mousewheel, the code below zooms in on the image only to the center of the image, not at the current cursor position. How would I fix this? PictureBox1.Size = New System.Drawing.Size(PictureBox1.Width + e.Delta / 1, PictureBox1.Height + e.Delta / … | |
Re: What is your problem? Give me the code with which you have problems and I'll try to help you. | |
I’m trying to create a textbox, where the user enters a number, and the output shows a word representing each digit, each word is in an individual label created by the code, regardless of how many digits are entered. So if the user enters 153, the output will be: one … | |
Re: This video helped me: [Click Here](http://www.youtube.com/watch?v=6Z3E2mHVo24) If you already created the database and have added items to it, then skip the video to 6:45. Hope this will help you. | |
Re: You can create a keydown event for the exit button, and insert the code below, but in order to press on the escape button and exit the form, the exit button needs to be in focus. Private Sub ButtonExit_KeyDown(sender As Object, e As KeyEventArgs) Handles ButtonExit.KeyDown Select Case e.KeyCode Case … | |
Re: OK. All it takes to get a program is a little research and modification of the program to suit your needs. I found a program on the web and modified it for user's input. Here's the program, hope it helps. PS: I am also new to Java, one year, but … | |
I have a radio button and a listbox. After clicking on the radiobutton, a collection of items will be added into the listbox. I'm trying to go back to the collection I've started working on to edit a System.Collections.Specialized.StringCollection, but after running the program, the list of items has not … | |
I want to make and If statement which will work when a double "credits" is between 1 and 9. But I'm not sure how to. Will If (1 <= credits => 9) Then Work? | |
I have a list box, with an item "Math". When I click on the Math item, I want a new collection of items to be added to the listbox after removing the current Math item, and make a back button to appear to return Math item back in case I … | |
I'm trying to select items from the listbox when pressing Enter on the selected item. Here is what I have tried so far: Private Sub ListBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyDown Select Case e.KeyCode Case Keys.Enter ListBox1.SelectedItem = ListBox1.PerformMouseClick() End Select End Sub | |
When creating a new project, I have a list of Frameworks to chose from. I need a Framework which will allow my program from Bin -> Debug -> Program.exe to work on various computers, such as Vista, Windows 7 & 8, and perhaps any others of the Windows family. I … | |
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, … | |
I need to make one statement to select either of the items in listbox and show the same label, regardless of which item is selected. I've tried someting like If Me.ListBox1.SelectedItem = "R115" Or "Bay, Charles" Then Label1.Text = "Address Information Avaliable" End If But it doesn't work. The code … | |
I'm trying to create a database. After creating the Table [Design], I've went to the Table [Data] to add items to the database, ran the program to check if the database items show up, they do. Then I stopped debugging, went back to the table to add more information to … | |
Re: I was able to research how to enable/disable autorun through registry. This is how to navigate and to disable the Autorun in VB through registry: Imports Microsoft.Win32 Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim regVersion As RegistryKey regVersion = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", True) If regVersion … | |
I'm trying to create a program, where a user can use the textbox to search for information, and as soon the user begins to type, any matching results will show autofill. I was able to do that, but I also want to make partial word match: words are found that … | |
Good time of day! I'm working on creating an Eulers Method Calculator program. The problem I got stuck on is I don't know how to convert the user's string into a Differential Equation (dy/dx). This is what I have so far: import static java.lang.System.*; import java.util.Scanner; class EulersMethod { public … | |
How to give user the ability to set the decimal format rounding to whichever s/he prefers. I know that the users input can be gained by the code double decimalRoundTo; Scanner input = new Scanner(System.in); out.print(" Enter the number of decimal places you want to round to "); decimalRoundTo = … | |
I have the folowing code, but there is a compiling error of: MathProblemRevised.java:25: error: cannot find symbol if (inputCharacter.equals("Y")) { ^ symbol: variable inputCharacter location: class MathProblemRevised 1 error With the code: import static java.lang.System.*; import java.util.Scanner; class MathProblemRevised { public static void main(String args[]) { Scanner keybardInput = new … | |
I'm trying to have the following output of the program: 01/01/2010 But when I run the program I get : 01/01/10 How would I format the date to be like I want? This is the code I have: import java.util.Calendar; import java.util.GregorianCalendar; public class HelloWorld{ public static void main(String []args){ … | |
I was thinking if it would be possible to create a JFrame, and make the title of it to change, such as make the title work as a counter that will display some text like: The window was opened for 1 second. The window was opened for 2 second. The … | |
I want to create a map, with image of a floor plan. As the user zooms in or out, or moves the image around the form and clicks on a room to see more information about it, it will be possible. I'm thinking of creating labels or buttons with opasity … | |
Hello everybody! I’m trying to create a program in which the user has the ability to move the image with mouse click and ability to zoom in and out by scrolling the mouse wheel. If the user wants to return to the original image size and position, it will be … | |
Re: Is it possible to make the pannel aling to grid? | |
I've wrote a game. But when I compile, and run the main method, there is an error, saying: No main methods found or something like that. I have one class called Game.java, which is supposed to be the main one, and gameLoop.java. For unknown reasons, gameLoop doesnt want to compile. … | |
Hello. I'm quite new to Java, but I've worked on Graphics before. I have a couple of questions which are: I want to make a night sky in Java with stars which randomly switch to big stars from small and back, repeating for a set time. I also want the … | |
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 … | |
I would like to make a program in which the user selects a time frame, for example if he selects from a DateTimePicker1 the time 7 (July), 17th, 2012 through DateTimePicker2 7 (July), 20th, 2012, and presses the button, a text will show up in a textbox from which he … | |
I want to create a method that is meant to protect against entering a wrong value for gender. The method **fineGender** below, will return true if the correct gender is entered and false otherwise. // postcondition: fineGender returns true if argument g equals M, m, F or f // and … | |
I want this code to run in the background but still be active: Private Sub frmMain_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress lblTest.Text &= e.KeyChar End Sub | |
I want to create an integer generating program where the user enters any number in TextBox1 and TextBox2 and presses the Generate button and in another textbox the integers shows up. REFER TO THE LINK to see what I mean. [Click Here](http://picturepush.com/public/11671143) | |
I’m making a program that will be like a search engine, similar to a map program. There will be a text box for the user to search for a location. The thing I don’t know is that the user has 4 different combinations that they may enter. For example: **N229** … | |
Color custom cursor appears to be black when I run the program. The color custom cursor is imported from desktop by using Resources in vb.net. When I run the program the cursor turns out to be black. HOW DO I FIX IT? [CODE]Dim ms As New System.IO.MemoryStream(My.Resources.Cursor1) Button1.Cursor = New … | |
Hello everyone! I need to make a simple yet cool program for my professor. The program is this: To get the program to work, the user first presses a button on the form. Then, when the user presses an up arrow on the keyboard, the cursor will change to a … |
The End.