Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
12
Posts with Upvotes
9
Upvoting Members
9
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
5 Commented Posts
0 Endorsements
Ranked #1K
~10K People Reached
Favorite Tags
Member Avatar for krishnisilva

There's many ways to handle such a situation. Probably when a user log in you connect to the database to check his/her data. In that moment you can just add to the combobox his/her first name, last name and remember in variable his/her UserID (so the field which uniquely identify …

Member Avatar for curos
0
2K
Member Avatar for elizabeth mwash

Can you be a little bit more specific? What kind of system have you created? Where the database is located (f. ex. on a remote server or you simply have the file with the database)? etc.

Member Avatar for finito
0
441
Member Avatar for Szpilona

Hi, As most of you are IT profs probably some of you have access to ISO norms... I'm looking for one particular definition which should be contained in ISO 8000-102:2009 it is definition of data quality... As I need only that one info for my master thesis I'm not willing …

Member Avatar for Szpilona
0
253
Member Avatar for UNOWN

[QUOTE]Hey guys[/QUOTE] and girls... ;-P if you want to do that inside of your program the easiest way is probably to use DocumentText property... in that case you get the code of the current page (in string which is convenient in that case; to get html code use Document property) …

Member Avatar for UNOWN
0
2K
Member Avatar for breakid

as InterestedCompany is a class in the student class you have to create the instance of it... preferably create constructor for student class: [CODE] public Student() { this.x = new InterestedCompany(); } [/CODE] or create an instance like that: [CODE] InterestedCompany x = new InterestedCompany(); [/CODE] inside of Student class... …

Member Avatar for kvprajapati
0
84
Member Avatar for GAME

well... I've recently created a bot too but as I needed some fancy features I've created my own class and for proxy support used WebProxy class... there's also other classes to accomplish that (like GlobalProxySelection)... if it comes to webBrowser control as far as I know it does not nativaly …

Member Avatar for GAME
0
77
Member Avatar for thuyson

well... I'm not good in that but: 1. create query more or less like that: [CODE] string query = "update tableName set money=" + textbox1.Text.Trim() + "where id=2"; [/CODE] 2. construct connection string... if you do not know how to do that use wizard... to do that select from main …

Member Avatar for thuyson
0
777
Member Avatar for zilvis89

to copy the lines from richtextbox or textbox (with multiline set to true) you can use Lines property: [CODE] string[] lines = textBox1.Lines; foreach (string line in lines) { if (line.Contains("")) rtbResults.Text += line; } [/CODE] if you need some more sophisticated checks on lines probably you will have to …

Member Avatar for zilvis89
0
180
Member Avatar for krishnisilva

well... to find all the files you can use Directory class and GetFiles(), GetDirectories() method... below I've pasted the code snippet showing how it can be used... it seems to work but I did that in the hurry so you can find there some mistakes... btw I added the comboBox …

Member Avatar for Szpilona
0
248
Member Avatar for kizilelma

1. If you want to do any operations on array of values it does must have some values so fill array with values: [CODE] int[] value = new int[5] { 5, 1, 2, 4, 3 }; [/CODE] you can also give the user the possibility to specify the values: [CODE] …

Member Avatar for Szpilona
0
118
Member Avatar for krishnisilva

TextBox class has the property ReadOnly... set it to true... you can do that in the properties window or in the code...

Member Avatar for Szpilona
-1
145
Member Avatar for Cactusmania

I've got no time to give you more elaborate example but the following code should give you the idea what to do: [CODE] private void button1_Click(object sender, EventArgs e) { string[] textFromRTB1 = richTextBox1.Lines; string[] textFromRTB2 = richTextBox2.Lines; richTextBox1.Clear(); richTextBox2.Clear(); int linesCount = 0; if (textFromRTB1.Length != textFromRTB2.Length) { linesCount …

Member Avatar for Cactusmania
0
183
Member Avatar for Gl0mby

The exact solution (means an effective one) depends on what you want to do with the data. Sample code: [CODE] private void button4_Click(object sender, EventArgs e) { LinkedList<string> list = new LinkedList<string>(); // path to your file... in my example I placed the file in program directory string path = …

Member Avatar for Szpilona
0
958
Member Avatar for DaveTran

You do not know the proper definition of that operator. The syntax: [COLOR="Red"][I]boolean_expression ? expression1 : expression2[/I][/COLOR] Expression is any operation which returns a value. Void is not a value. Void specifies that no value is returned. If your get this message, at least one of your methods, must return …

Member Avatar for DaveTran
1
1K
Member Avatar for edgias

Please, give some more details... What kind of app have you created, how have you created the installer, some information about the machine on which you created the app and about the machines on which you try to run the installer... Also if some messages pop up, what is their …

Member Avatar for ddanbe
-1
81
Member Avatar for volgent

ListBox class does not support editing items in runtime (at least I do not know anything about it ;-P). So you have to handle yourself... As you want to give the user opportunity to change data after double clicking use DoubleClick event of the ListBox class and add in there …

Member Avatar for volgent
0
113
Member Avatar for c#n00b

Well I would do that in completely different way... probably using regular expressions... but here's the way to count spaces in the provided text: [CODE] static public int spaces(string text) { char[] delimiters = { ' ' }; text = text.Trim(); string[] words = text.Split(delimiters); return words.Length - 1; } …

Member Avatar for kvprajapati
0
231
Member Avatar for paul9998

Read() method reads the next (only 1 character) from the standard input so you get ASCII codes of the number... Try that instead: [CODE] nr1 = Convert.ToInt32(Console.ReadLine()); [/CODE] But put it into "try catch"... btw make the fields private... and move temp declaration to InternGhange() function... Sample code after little …

Member Avatar for paul9998
0
85
Member Avatar for lewashby

It may be a little bit vague but hope it will help you... Firstly you created an instance of the Elephant class: [CODE] Elephant lloyd = new Elephant() { Name = "Lloyd", EarSize = 40 }; [/CODE] so the variable lloyd is now containing the reference to that object. Then …

Member Avatar for Szpilona
0
114
Member Avatar for srikanth754

Well I don't know the class TSQLBeginTransactionBlock_Ext so I guess that's your own class. To make a deep copy of the Object in C# you should use Clone method from IClonable. You can also add a constructor to TSQLBeginTransactionBlock_Ext which takes as a parameter a variable of the same type …

Member Avatar for Diamonddrake
0
779
Member Avatar for techstu

Sample code: [CODE] StreamReader sr = null; FileStream file = null; string fileData = String.Empty; try { file = new FileStream("test.txt", FileMode.Open, FileAccess.Read); sr = new StreamReader(file, Encoding.UTF8); string outputData = String.Empty; while (true) { string temp = String.Empty; temp = sr.ReadLine(); if (temp != null) { temp = temp.Replace("the", …

Member Avatar for Szpilona
0
89
Member Avatar for Szpilona

Hi, I've created a lexer using flex. Now I want this lexer to be used in my C# application. I've tried to do this with code below: [CODE] private void btParse_Click(object sender, EventArgs e) { Process lex = new Process(); StreamWriter sIn = null; StreamReader sOut = null; StreamReader fileReader …

0
84
Member Avatar for Szpilona

Hi, I've got a lexer created with flex (under cygwin). Normally I compile it to an .exe file. For the newest project I need a lexer to use in a bigger C# program running on Windows XP. Of course I can execute a file using System.Diagnostics.Process. But it is not …

0
96