|
Testing now... I have been searching for days for a resolution to this. I will feel mighty coo-coo if this is all it was. It has just the right ring to it I think it might just work. I will let you know in 1 hour when it complete's the transfer to the other site.
|
|
|
|
|
That was it thanks a million
|
|
|
|
|
You're welcome!
|
|
|
|
|
Help Help Help If you Live in East Bay around S.F. CA. I need a C# Master to Come work with me and Instruct and help me with a Progrom developer's dream. A strat up and I need to learn C I just can't get it out of the books. It's grahic and engineering, so if this sound like something you want to do send me an email. I like vb but it just dosen't work.
|
|
|
|
|
rodbiser wrote: I like vb but it just dosen't work.
C# can't do anything that VB can't do.
This forum is for C# programmers to ask for specific help. It's not really a place to ask for a private tutor. You should advertise in the job board.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: C# can't do anything that VB can't do.
It can express itself concisely; VB is verbose, though not as bad as COBOL.
And C# developers get more chicks.
|
|
|
|
|
When does that start
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Wow it's getting worse nowadays, from "Urgentz send me codez" to this. What next? "Come do my job for me"?
|
|
|
|
|
|
I have learn C# myself and just want to talk face to face with people that know what there are doing and wanted to share my project. so! I think if some of the people on this form have to much time and?
|
|
|
|
|
Few of us here are paid tutors. We donate some of our time to answer questions online. If you wish to hire someone, there are plenty of people you can hire and resources you can purchase. I pointed you to some at Microsoft.com, which has an excellent education program (especially for novices.)
I also pointed out that you don't have to learn C# yourself. My local University has very good C# .NET classes and a continuing education program so people in the community can sign up for night and summer classes.
Now, if you want to pay me $1200 a day plus expenses, I'll fly to where you're at and teach you what I know.
|
|
|
|
|
Hello. How will I show the other data that came from the other text file after I sort and search a different text file?
For example, I searched for the name which is saved from another text file, how will i show the corresponding data which are saved from different text files for the name i searched?
For example, for searching:
Search: Lopez
Last Name First Name Age Gender
Lopez John 18 Male
for sorting:
before:
Sorting by Last Name:
Lopez John
Belasco Kelly
Santiago Kristine
Feroia Peter
after:
Belasco Kelly
Feroia Peter
Lopez John
Santiago Kristine
How will i be able to do that?
|
|
|
|
|
that is exactly why I said you could create a class MyType that holds all info, then sort the collection of MyType objects; doing so keeps the items intact.
|
|
|
|
|
I have 5 text files and inside every file there are 30 predefined data. Is it possible for me to add those data in the class MyType as one? Besides that I have a function that lets the user add more data, which is easier to add in the class MyType as one.
|
|
|
|
|
gamer1127 wrote: Is it possible for me to ...
if you can explain it properly, then you can program it.
|
|
|
|
|
how can I get list of all available printers on my machine using C# then display the properties for every printer?
|
|
|
|
|
|
Hello
Please help me to show thousand seperator in textbox like: 25000000>25,000,000
I found a formul like below at textchanged event:
string myStr = textBox1.Text;<br />
TextBox1.Text = myStr.FormatString("#,###");
But it causes error at :
Int a = Convert.ToInt16(TextBox1.Text);
I want to seperate numbers in textbox anyway. I couldn't use "MaskedTextBox"
Please help me.
Regards
|
|
|
|
|
You could remove the "," before parsing (btw why aren't you using short.Parse?)
|
|
|
|
|
You can replace FormatString with ToString("N0"). And there are at least two problems with your parsing code. First of all, you convert TextBox1.Text to a 16-bit integer, then store it as a 32-bit integer. This constrains it to the value 65,535. That's far too small for the value you want.
Additionally, you're using Convert.ToInt16. Use the method int.Parse() instead.
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Hi,
you can tell Parse and TryParse what it is you want to allow, e.g.:
int val;
bool OK=int.TryParse("12,345", NumberStyles.AllowThousands, null, out val);
|
|
|
|
|
Hello
Tanks for your help. I used your code like below :
Int64 val;<br />
bool ok;<br />
ok = Int64.TryParse(TextBox1.Text, NumberStyles.AllowThousands, null, out val);<br />
TextBox1.Text = Convert.ToInt64(val.ToString()).ToString("#,###");<br />
The problem accures after typing more than 4 numbers. Because cursor qoes to the left side of numbers, For example i want to type 12345, after typing 4 in typing 5 it TextBox shows : 51,234
Can you help me on this?
Regards
|
|
|
|
|
use this code:
by this code,your problem is ok
private void textBox1_TextChanged(object sender, EventArgs e)
{
try
{
string ss = textBox1.Text.Replace(",", "");
int d = int.Parse(ss);
string gg = String.Format("{0:###,###,###}", d);
textBox1.Text = gg;
textBox1.SelectionStart = textBox1.Text.Length;
}
catch
{
}
}
try
{
string ss = textBox1.Text.Replace(",", "");
int d = int.Parse(ss);
string gg = String.Format("{0:###,###,###}", d);
textBox1.Text = gg;
textBox1.SelectionStart = textBox1.Text.Length;
}
catch
{
}
|
|
|
|
|
Hi again
I solved it by below code:
TextBox1.Select(TextBox1.Text.Length, 0);
Bye
|
|
|
|
|
How can i read the MAC address of a computer?
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|