Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #1K
~15.6K People Reached
Favorite Forums

60 Posted Topics

Member Avatar for mbouster

[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 …

Member Avatar for jon.kiparsky
0
232
Member Avatar for Coyboss

[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]

Member Avatar for Coyboss
0
235
Member Avatar for toko

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.

Member Avatar for jmosquera1987
0
1K
Member Avatar for thuyson

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]

Member Avatar for thuyson
0
200
Member Avatar for toko

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 …

Member Avatar for toko
0
94
Member Avatar for toko

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 …

Member Avatar for Geekitygeek
0
129
Member Avatar for nikolabob

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 ;)

Member Avatar for nikolabob
0
184
Member Avatar for toko

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 …

Member Avatar for toko
0
103
Member Avatar for toko

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?

Member Avatar for Teme64
0
121
Member Avatar for Cliffs0fdover

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.

Member Avatar for toko
0
143
Member Avatar for ravindransrm

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() …

Member Avatar for ravindransrm
0
109
Member Avatar for ravindransrm

Use substring() here is some more info: [url]http://vb.net-informations.com/string/vb.net_String_Substring.htm[/url]

Member Avatar for toko
0
97
Member Avatar for willrose84

take out: [CODE]Me.Txtuser.Text = username Me.Txtpass.Text = password[/CODE]

Member Avatar for willrose84
0
156
Member Avatar for toko

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 …

Member Avatar for waynespangler
0
143
Member Avatar for zahraj

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]

Member Avatar for toko
0
110
Member Avatar for asif786

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 …

Member Avatar for bcasp
0
952
Member Avatar for Trekker182

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()

Member Avatar for Trekker182
0
2K
Member Avatar for asif786

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() …

Member Avatar for toko
0
266
Member Avatar for toko

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 …

Member Avatar for toko
0
146
Member Avatar for pink bunny

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 …

Member Avatar for toko
0
270
Member Avatar for pete08

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"

Member Avatar for pete08
0
70
Member Avatar for smile4evr

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 …

Member Avatar for AUGXIS
0
176
Member Avatar for toko

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 = …

Member Avatar for toko
0
110
Member Avatar for Duki

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 …

Member Avatar for toko
0
125
Member Avatar for Alexpap

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 …

Member Avatar for Jx_Man
0
97
Member Avatar for SHAWTY721

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.

Member Avatar for toko
0
324
Member Avatar for asmit1987

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 …

Member Avatar for Jx_Man
0
2K
Member Avatar for toko

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 …

Member Avatar for Jx_Man
0
90
Member Avatar for melicaster

[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.

Member Avatar for toko
0
79
Member Avatar for Dell XPS

i have vb express 2008 and my desktop didnt have framework 3.5 so when i launched the program it installed framework automatically.

Member Avatar for Jx_Man
0
277
Member Avatar for Oxiegen

I don't really understand what you are trying to do but for more customization of tabcontrol goto TabControl1 > Tab Pages > Collection > and press "...".

Member Avatar for Oxiegen
0
365
Member Avatar for hermit08

[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 …

Member Avatar for hermit08
0
139
Member Avatar for leroi green

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.

Member Avatar for toko
0
460
Member Avatar for shivangiKul
Member Avatar for toko

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 …

Member Avatar for waynespangler
0
105
Member Avatar for kahaj

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' …

Member Avatar for toko
0
1K
Member Avatar for Mark@UKMB

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.

Member Avatar for Jx_Man
0
251
Member Avatar for toko

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 ;)

0
68
Member Avatar for toko

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 = …

Member Avatar for toko
0
75
Member Avatar for zeroground

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 …

Member Avatar for toko
0
106
Member Avatar for toko

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 = …

Member Avatar for Max_Payne
0
105
Member Avatar for toko

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 …

Member Avatar for yagiD
0
130
Member Avatar for toko

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 [] …

Member Avatar for toko
0
99
Member Avatar for toko

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 >> …

Member Avatar for toko
0
222
Member Avatar for toko

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??

Member Avatar for sagedavis
0
123
Member Avatar for toko

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 …

Member Avatar for Narue
0
71
Member Avatar for toko

i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root..

Member Avatar for toko
0
99
Member Avatar for toko

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(); …

Member Avatar for toko
0
308
Member Avatar for toko

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 ;-)

Member Avatar for zandiago
0
38
Member Avatar for toko

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 …

Member Avatar for toko
0
131

The End.