Visual Studio
Question #1:
Ok, I'm taking a class in college on Visual Basic Studio 2008. We're making a mock website where the user inputs whether they want DSL or DialUp and some other options. I made it so that the DSL and DialUp buttons are radio buttons with the DSL radio button being already checked upon page load. The problem I am having is when it runs, the math is all fine, but when you click the DialUp button, both radio buttons become selected. I even tried putting this:
If Me.radDSL.checked = True Then
Me.radDialUp.checked = False
End If
If Me.radDialUp.checked = True Then
Me.radDSL.checked = False
End If
But this did not work, and when you click the DialUp button, both radio buttons stay selected. I even put them in a panel object.
Also note that this is NOT a windows application, it is a web application. We made a PDA application that used three radio buttons inside a panel object, and I did the EXACT same thing to it (Only without the piece of code I put above).
Here's another snippet that does the calculations for the DSL radio button:
If Me.radDSL.checked Then
initialcost += _decDSLCost
monthlycost += _decDSLCost
Also, the decimal value _decDSLCost is 29.99 (Code for that is, Dim _decDSLCost As Decimal = 29.99D)
Question #2:
I had forgotten installing IIS before VS2010..I am running windows 7..Do i need to completely uninstall VS 2010 before installing IIS??
Question #3:
I am taking a Visual C# class, and I've had a bit of a difficult time understanding some of the concepts. If you can help me with the following, I would greatly appreciate it. I am using Visual Studio 2008 Professional with .NET 3.5 SP 1.
"Create a class named Friend. Its fields include a Friend’s name, phone number, and three integer fields that together represent the Friend’s birthday—month, day, and year. Write a program that declares an array of eight Friend objects and prompts the user to enter data about eight friends. Display the Friend objects in alphabetical order by first name. Save the program as FriendList.cs."
I have the following code, but after running it in VS, the program stops because it cannot Compare two strings. I'm not sure if I've coded something incorrectly for the Sort portion. If you can point me to where I'm going wrong, I would greatly appreciate it.
I changed the friends array to 2 instead of 8 for simplicity.
------------------------------------------------------------------
using System;
public class CreateFriendList
{
public static void Main()
{
Friend[] friend = new Friend[2];
int x;
string name;
string phone;
int month;
int day;
int year;
for (x = 0; x < friend.Length; ++x)
{
GetData(out name, out phone, out month, out day, out year);
friend[x] = new Friend(name, phone, month, day, year);
}
Array.Sort(friend);
Console.WriteLine("Sorted List:");
for (x = 0; x < friend.Length; ++x)
Display(friend[x]);
Console.ReadLine();
}
public static void GetData(out string name, out string phone, out int month, out int day, out int year)
{
string inString;
Console.Write("Please enter your friend's name: ");
inString = Console.ReadLine();
name = Convert.ToString(inString);
Console.Write("Please enter your friend's number: ");
inString = Console.ReadLine();
phone = Convert.ToString(inString);
Console.Write("Please enter your friend's birth MONTH: ");
inString = Console.ReadLine();
month = Convert.ToInt32(inString);
Console.Write("Please enter your friend's birth DAY: ");
inString = Console.ReadLine();
day = Convert.ToInt32(inString);
Console.Write("Please enter your friend's birth YEAR: ");
inString = Console.ReadLine();
year = Convert.ToInt32(inString);
}
public static void Display(Friend fri)
{
Console.WriteLine("0,5}{1,-10}{2,6}{3,6}{4,6}",
fri.Name, fri.Phone, fri.Month, fri.Day, fri.Year);
}
}
public class Friend //: IComparable
{
private string name;
private string phone;
private int month;
private int day;
private int year;
public string Name { get; set; }
public string Phone { get; set; }
public int Month { get; set; }
public int Day { get; set; }
public int Year { get; set; }
public Friend(string friendName, string friendNumber, int friendMonth, int friendDay, int friendYear)
{
Name = friendName;
Phone = friendNumber;
Month = friendMonth;
Day = friendDay;
Year = friendYear;
}
/*int IComparable.CompareTo(object o)
{
int returnVal;
Friend temp = (Friend)o;
if (this.Name > temp.Name)
returnVal = 1;
else
if (this.Name < temp.Name)
returnVal = -1;
else
returnVal = 0;
return returnVal;
}*/
}
Question #4:
Hi.
I want to create a countdown timer that will show the 30 seconds decreasing one by one in a label when i click the button.
Then when the countdown timer hits zero, button1.enabled = true.
But I can't figure out how to display the decreasing seconds in a label.
I am, however, able to get the button to be enabled AFTER the 30 seconds.
My codes:
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = true;
button1.Enabled = false;
}
private void timer1_Tick(object sender, EventArgs e)
{
button1.Enabled = true;
}
Question #5:
i have this code to make it random spots
( Im am using forms)
Button2.Location = New Point(0, 24)>
see but that only moves it once i want it to move each time i move my mouse over to it.
or i could do this>
Dim rnd As New Random
Dim intX As Integer = rnd.Next(minValue:=0, maxValue:=Me.Size.Width - Button2.Size.Width)
Dim intY As Integer = rnd.Next(minValue:=0, maxValue:=Me.Size.Height - Button2.Size.Height)
Button2.Location = New Point(intX, intY)
but i need a code to make it curtain spots on the page not just random so how would i do that
Question #6:
Question #7:
Hi, I wanted everyone's opinion on these line of Microsoft IDE's the express versions. I want to eventually develop programs and and possible video games although I'm far from that, but I've been told I can't use the express edition of visual studios to create products that I sell. I want to copy right any of the software I make with visual studios, but I'm afraid that I could run into problems later on. I'm not a professional developer so I don't know if that matters, but please give me any information you have on this it would be very helpful. Thanks to all answers.
Question #8:
Click Here
When I compile this, which is an unfinished linked list... I get...
c:\users\chase\documents\visual studio 2010\projects\pointer counter\pointer counter\pointer counter.cpp(23): warning C4700: uninitialized local variable 'enter1' used
Question #9:
Well i am trying to get a button in visual studio to move when the mouse gets close to it.
what is the code to get the button to move?
Question #10:
Hi Guys
I'm currently using visual studio c# and am having some problems when debugging. My program debugs ok but the command prompt that says "programming is fun" (my noob program) flashes for a microsecond than disappears. Is there anyway I can get the program to stay up longer?
I have tried opening in command prompt using "csc" but it says "csc not recognized as an internal or external command, operable program or batch file."
Many thanks for your help
Question #11:
Whenever I open Visual Studio 2008, it directly opens vcc, but i want to open vb. How do i do it? There is no separate option to open them separately, as it was in it's earlier versions.
Help.
Question #12:
Question #13:
My computer all of a sudden has this pop up called Just-in-time debugging that is annoyin me and i think it is a virus type cuz i didn't install anything on my computer. I looked on how to remove it but all it says it like its the cause of visual studios, well i don't think i even have that program at all and i can't find it so im wondering how can i remove the J.I.T. debugging thing
please need help!!!! please!!!
Question #14:
Dear friends i am making an online e book store as my project in asp.net Visual studio 2008. I have downloaded few web templates from internet i want to know how can i use web template in my project.
Pls. guide
thanks in advance.
Question #15:
i wann to retrieve the data from the database but the data i wann it to display in the text box control, i am using visual studio 2008, i noe tat in my aspx i need a sql source but wad bout the code to display the data from the database......pz help miie with the code
Question #16:
I cannot uninstall visual studio 2008 from my windows vista. This message appears: "a problem has been encountered while loading the setup components. canceling setup." Help pls.
Question #17:
Hi,
How do I set up a source control on my website for Visual Studio to hook up to it? I see that you can select your server etc but not sure how to do it.
Question #18:
im using visual studio 2010 and im trying to make a random number generator that would generate a random number between 1-10, 1-100, and -500 - 500 based on level 1, level2, and level 3 respectively.
so pretty much this is a guessing game and the user is supposed to guess the number based on the level with 1 being the easiest and 3 the hardest. this part has got me stumped and i have no idea how to do it. any help would be greatly needed and appreciated! thanks
Question #19:
Hey I am purchasing a laptop..But i am confused which graphics card should i go for
1. ATI Mobility Radeon 5470 1GB
2. NVIDIA GeForce 9400 GT 1GB
My main purpose is gaming (like burnout, gta, pes 2010 etc) and graphics programming....like photoshop CS4, dreamveawer CS4, Fireworks, Visual studio 2008.
My other confg. are very high.
Please help me which one is better.
Question #20:
okay so i donwloaded the xna framework 3.1 and everything so my question is if that is only for personal use or comercial use and if its not wich one is the one for comercial use casue i have visual studio 2010 and i want to make games for windows and sell them im kid off confused or can i just use direct x and not xna to make windows games
** Powered by Yahoo Answers