August 14th, 2011 09:14 AM
you could do something like this:
Dim s As String = "a_b_c_d"
Dim result = s.Split("_")(2)
Console.WriteLine(result)
January 16th, 2010 01:55 PM
You have to declare score outside a methode. Because if you declare it within a methode, the variable will be destroid when you leave the methode and be created each time you enter the methode.....
January 16th, 2010 01:38 PM
On top of your class declare a variable that will hold the score
like
private int score=0;
then you simply do this:
if ((textBox1.Text == c.ToString()))
{
...
December 26th, 2009 02:24 AM
Make sure your item had 5 subitems!
December 17th, 2009 05:05 AM
I went to a seminar on silverlight and if you make a app in silverlight you can right click it and click a option wich enables you to run it locally(it'll copy it to the harddrive and make a link on...
December 17th, 2009 03:05 AM
I Would just use
<%="Hy There This is a Test"%>
Or
<% Response.Write("testing 1 2 3"); %>
December 16th, 2009 05:14 AM
XNA isn't that fast..:) Its only used for smaller games for a reason..
Not using try catches is just a huge fail in my eyes it has nothing to do with being conservative.. it's just good coding!
December 16th, 2009 05:00 AM
Here you go:
public statements only work outside functions.
public in [,,] test;
private void main()
{
test = new int[100,100,3];
}
December 15th, 2009 09:41 AM
just make a getter for result in afmresult
December 15th, 2009 03:15 AM
Instead of clicking the link try to extract the link and call this methode..
public void DownloadFile(String sFileUrl, String destination, String sFileName)
{
...
December 14th, 2009 12:55 PM
December 14th, 2009 10:35 AM
You're welcome :D here is how you can achive what you want to do:
lets say you have a class car like this one:
class car
{
public string Name { get; set; }
public...
December 14th, 2009 04:56 AM
You should use an arrayList.. you can fill the listbox like this(i think you can do the same with linklists but i would use an arraylist):
List<string> list = new List<string>();
...
December 14th, 2009 04:36 AM
Gladd I could help :)
greetz kristof
December 13th, 2009 11:18 AM
try
SqlCommand filterAccounts = new SqlCommand
("SELECT * FROM Accounts WHERE Surname = '"+ criteria +"', connectionLine);
also.. is your connection open before you...
December 13th, 2009 04:34 AM
Actually a string is an array of chars so you can just do this ;)
String s ="Hello";
then s[0] will be 'H' and s[1] will be 'e' and so on...
for the index you can use this:
String s="Hello";...
December 12th, 2009 11:58 AM
Do you use asp or asp.net
if you use ASP.NET
you make a <asp:label ID="label1" runat="server"/> tag in your aspx page
and
label.text = frmOffice
fills in the text into that label
if you...
December 12th, 2009 11:29 AM
I made a solution in your other thread :)
http://www.codeguru.com/forum/showthread.php?t=489660
kristof
December 12th, 2009 10:57 AM
Strange..,
could you upload your project and db so I can take a look at it for you?
December 12th, 2009 10:02 AM
It's just formatting.. it makes no difference
dovobet I see the problem..
you have more fields then you have values.. you have type 2times!
try
string SQLstr = @"INSERT INTO...
December 12th, 2009 09:54 AM
Here you go..
I used 2 textBoxes just replace it with richttextbox.text and your set :) tested and works ;)
private List<string> Chains = new List<string>();
private...
December 12th, 2009 08:58 AM
I would use Pannels make 4 pannels for example.. and when you click a button just hide all panels and unhide the one you want to show
December 12th, 2009 08:55 AM
Windows Communication Foundation
Here you go:
http://msdn.microsoft.com/en-us/library/ms735119.aspx
December 12th, 2009 08:49 AM
I agree with sotoasty, you should always use a try_catch block..
If the messagebox with text "2" shows up it doesn't mean the code above it is ok.
For example your input query, you're just making...
December 12th, 2009 08:42 AM
It checks if you have a item selected if so it removes it.
It keeps doing this for al selected items