- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
60 Posted Topics
[CODE=java]import java.util.ArrayList; public class list{ public static void main(String[] args) { ArrayList list = new ArrayList(); list.add("hi"); System.out.println(list.get(0)); } }[/CODE] Refer to: [URL="http://download.oracle.com/javase/1.4.2/docs/api/java/util/ArrayList.html"]http://download.oracle.com/javase/1.4.2/docs/api/java/util/ArrayList.html[/URL] Remeber, after using the .get(int index) to retrieve an item, you have to re-cast it to the type of object if whatever there is not a primitive …
[CODE=java]public class Loan { public static void main(String[] args) { double initialAmount= 200000.00; double MonthlyRate = initialAmount * ((0.0575 * Math.pow(1+0.0575,360)) / ( Math.pow(1+0.0575,360)-1)); System.out.println(monthlyRate); } }[/CODE] I got 11500.000020881538. I used the formula from [URL="http://en.wikipedia.org/wiki/Amortization_calculator"]http://en.wikipedia.org/wiki/Amortization_calculator[/URL]
I have found that using the Bring to front & Send to Back functions on controls created at runtime does not work. Does anyone know a way to solve this problem? any help would be appriciated.
Create a label and in the properties make the Visible property false. In the event handler of the Button type [CODE=c#]Label1.Visible = true; Label1.Location = new Point(any number,any number); Label1.Text = "Anything you want";[/CODE]
Okay, i have 2 objects in my form: a label with a picture and a picturebox with a picture. The background of my form has another picture. What i want to happen: 1.I press the label,the picture of the label is on top with the bakground of the picture in …
I have a label with a picture that i want to be visible to the user. However, i also have text in that label that i need for the program to work but is unnessesary to the user. I would use Color.Transparent; to hide the text however i have a …
There are two ways i know of: packing it and obfuscating it. Packer Examples: -Themida -UPX -Armadillo INFO: [url]http://www.woodmann.com/crackz/Packers.htm[/url] Obfuscator Examples: - [url]http://msdn.microsoft.com/en-us/vcsharp/aa336818.aspx[/url] - [url]http://www.remotesoft.com/salamander/obfuscator.html[/url] INFO:[url]http://ezinearticles.com/?Protect-C-Code-With-Obfuscation&id=1358079[/url] INFO:[url]http://www.vcskicks.com/obfuscator.php[/url] Hope that helps ;)
Okay, i have an 8X8 grid, i want to use control arrays to create labels instead of creating each manually so that it is less repetitive code and easier to control when i try to switch the colors of each label on the gird. [CODE=c#]namespace app1 { partial class Form1 …
Ok, I have one sub and I have it handleing different events of different objects. So my problem is I want to determine which event was triggered from which object. Can anyone help me out?
Try: [CODE=vb]Module1.fullname = txtFullName.text[/CODE] and every time you refer to something thats public in another form or module put the name of it before the variable.
I think this is what you want: [CODE=vb] Public Class Form1 Dim i As String Dim x As Object Dim phrase As String Dim num As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click i = TextBox1.Text For Each x In i num = x.ToString() …
Use substring() here is some more info: [url]http://vb.net-informations.com/string/vb.net_String_Substring.htm[/url]
take out: [CODE]Me.Txtuser.Text = username Me.Txtpass.Text = password[/CODE]
Right now i am using the method where i put the picture in a picbox, then save it as a .bmp then use SystemParametersInfo function to set the picture. I do not like this because of one main reason: it takes huge amount of ram for a simple program such …
Why don't yo just do: [CODE=vb]Dim arrayNumOne(20) as integer Dim arrayNumTwo(20) as integer Dim Counter as integer for counter = 0 to 20 arrayNumOne(counter) = arrayNumTwo(counter) next[/CODE]
k so you want: User -> selection -> confirmation message ->user says no -> back to selecttion -> confirmation message -> user says no -> back to selection -> no confirmation and just accepts? if so this is the rough outline of how you do it: while tries <= 2 …
Why are you conveting to string when you do the IsNumeric() check? As far as i know inputbox() returns a string even if the user only types in numbers. So instead of converting carpetarea into a string use Csng()
First, i would make a two arrays, one fore the name and one for the rating. Then i would use the for loop to get the names then get the rating for those names. Finaly i would display those inputs in a text box. Here it is: [CODE=vb] Dim favSoftDrink() …
I am trying to make a program that scans the pixels in the screen for certain colors and if it finds it sets the mouse location to that spot. Now i need your help to see if something like this is possible with vb and if it is possible point …
to do this >generate random numbers from 1 to 10 to simulate survey results >use this code [CODE=vb]dim array(10) as integer dim counter as integer for counter = 1 to 10 array(counter) = int(rnd * 10) + 1 Next counter[/CODE] >to display the frequencies as it is on the screenshot …
Doing what waynespangler said would work but it would change the total size of your picturebox. To keep the size of the picturebox the same but fit your picture into the picturebox do this, in the properties of your Picture box set "size mode" to "zoom"
You can just keep adding conditions in an if statement like so: [CODE= vb] if something = 2 then something ElseIf something = 2 then something ElseIf something - 2 then something[/CODE] ...and so on. im didnt rele understand ur questions because the and in your code already gives multiple …
k guys i have a text file that has a record of passwords, i am trying to read from that file if the guys username and passwords match access granted if not there denied. [CODE=vb] read = System.IO.File.OpenText("password records.txt") username = txtUsername.Text For a = 1 To 10 txtOutput.Text = …
The easiest way would be to put a set password and just compare the entered pass to a set string. [CODE= vb] dim pas as string = "hello" 'then in your button put event if textbox.text = pas then msgbox("congratz") form2.show me.close else msgbox("try again") end if[/CODE] the other way …
You can make a claculator and add stuff like converters for temperature, distance, weight and such... then add formulas for density, then you can go further in science like working with ohms and such. It will also be usefull in school. I dont think that will be hard but it …
you can just use shell function to open an .exe with one button; [code=vb] shell('.exe path')[/code] if that doesn't answer your question would you care to elaborate, because i don't understand what you are asking.
go to solution explorer > right click your project > click add (i dont have vb at school so not sure but i think its add or it might be add form) > then double click splash screen. i dont think that has a title bar or a fram border …
K i need to get the mouse click co-ordiantes outside of the form. i know how to get them inside the form; [CODE=vb] Private Sub mouse1_click() Handles me.MouseClick set1X = MousePosition.X set1Y = MousePosition.Y End Sub[/CODE] but i need to get cordinates from anywhere on the screen. and if it …
[CODE=VB] Private Sub <the name of the button>(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles <name of the button>.Click vbMainMenu.hide() vbEvent.show() End Sub[/CODE] just put that in your code and replace whatever is in <...> with the actual name of the button.
i have vb express 2008 and my desktop didnt have framework 3.5 so when i launched the program it installed framework automatically.
I don't really understand what you are trying to do but for more customization of tabcontrol goto TabControl1 > Tab Pages > Collection > and press "...".
[QUOTE]If makeoverRadioButton.Checked Then .MakeoverLabel.Text = MAKEOVER_Decimal.ToString() If HairStylingRadioButton.Checked Then .hairStylingLabel.Text = HAIR_STYLING_Decimal.ToString() If manicureRadioButton.Checked Then .manicureLabel.Text = MANICURE_Decimal.ToString() [/QUOTE] I don't see the point of the "." in front of every second line, it would be fine without it. Just thought i would clear that up since no one mentioned …
Like Oxiegen said, it should run perfectly but don't forget to finish the IF statement and fill the equal sign to do what it should ie. [CODE=VB]Me.xFulltimeLabel.Text = "Full-Time: True"[/code] Also you don't need to write "Me." infront because its already assumed that its like that.
Posting the code you have so far will help us find where your problem is.
I have two questions: 1. I have an if statment that if true does several things. This is where im having trouble: [CODE= vb]If something = true then something = 45 And something = 65 And something = 83[/CODE] My best guess was "And" to combine those three term but …
If your using visual basic 2008 express edition or even older versions i think, it can give you a login form template. [COLOR="Red"][I]Setting it Up[/I][/COLOR] 1. In the solution Explorer right click your project name > add > windows form > login form. 2. Go to Project > 'project name' …
Double click the button then in the code that apprears write: textbox1.text = "blah blah blah" Depends on what version of what software you use though. This works for visual basic 2008 express i don't know if it will work for others.
i have made a program which includes a webbrowser. here is the problem, whenever it has to load a java applet the program just freezes. im running vista sp1 with visual basic 2008 express. any help would be greately appriaciated ;)
Okay, im trying to write a simple calculator. Heres my code: [CODE=VB]Public Class Form1 Dim value1 As Double Dim value2 As Double Dim sign As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = " " Then TextBox1.Text = "1" Else TextBox1.Text = …
Okay the errors are as following: 1. [QUOTE]#include<stdio.h> #include<conio.h> [/QUOTE] There is no need to put this. However the include you need is [CODE=C++]#include <iostream>[/CODE] 2.[QUOTE]void main() { float a1,b1,a2,b2,; [B]double result[/B] cout << "\n Enter in order x1,x2,y1,y2: "; [/QUOTE] You need to end this line with [COLOR="blue"][B];[/B][/COLOR] 3.[QUOTE]cout …
I have been reading "Sams Teach Yourself C++ in 24 Hours". This is the code that has confused me: [CODE=c++] #include <iostream> class Cat { public: int GetAge(); void SetAge (int age); void Meow(); private: int itsAge; }; int Cat::GetAge() { return itsAge; } void Cat::SetAge(int age) { itsAge = …
i got a new laptop, and when i try to run dev-c++ nothing happens and i am forced to shut the .exe down using task manager. I've tried running it under administrator but nothing seems to help. It installs fine but when i try running it it crashes. If anyone …
i have made a program that gives a defenition of a short form e.g. ;-) = wink [CODE]#include <iostream> using namespace std; int main() { char input[20]; char correct1 [] = "CU"; char correct2 [] = ":-)"; char correct3 [] = ":-("; char correct4 [] = ";-)"; char correct5 [] …
okay i am trying to compare a char thats a constant with a char that a person has inputed however this is as far as i have gotten and its not working. [CODE] #include <iostream> using namespace std; int main() { char input[20]; char correct [] = "Rudolf"; cin >> …
Okay, i am very new to Visual C++ and i understand the design and stuff but what i don't get is where do you put the actual c++ code to tell each thing what to do? And by the way does anybody know a good visual c++ tutorial??
i would like to make a client choose with words rather than numbers. Instead of the conventional way of using numbers to retrive commands i need to make a client write words for example they type in "add" to get 2 numbesr to add and so on. any help is …
i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root..
Okay, i have written a code to figure out the area of all different shapes but i can't get it past hte pasrt where the client chooses what they want to find the area of. this is my code: [CODE]#include <iostream> #include <cmath> using namespace std; int getChoice(); int circle(); …
I need to make the computer to choose a number between 1 and 10 and i don't know how? Please give me any help you can. Thanks for any help u provided ;-)
Okay i am trying to make a lock this is my code: [CODE]#include <iostream> using namespace std; int main () { char key [10]="abcd"; char answer[10]; cout<< "password:"; cin >> answer; if( key == answer) cout << "correct"; else cout << "incorrect"; return main(); }[/CODE] when ever i try to …
The End.