4,439 Posted Topics

Member Avatar for xanawa

Do you also need some ideas about which partner you are going to choose to share your life with, or is that something you can do for yourself?

Member Avatar for xanawa
-2
237
Member Avatar for Baby G
Member Avatar for Mr.BunyRabit

ShowDialog shows the form as a modal dialog. I think you better use the Show method here.

Member Avatar for IdanS
0
101
Member Avatar for meensatwork
Member Avatar for ddanbe
0
246
Member Avatar for vedro-compota

Can't read your zip file, but perhaps a look at this snippet may help: [url]http://www.daniweb.com/code/snippet335171.html[/url]

Member Avatar for vedro-compota
0
142
Member Avatar for GAME

It is useless to ask such question. If you would have tried to do this conversion yourself and you got stuck somewhere in the middle, you could have a chance for an answer. Now it will be more like Bob Dylan singing: "The answer my friend is blowing in the …

Member Avatar for kvprajapati
-1
99
Member Avatar for nomadewolf

An array is in fact a constant pointer pointing to a block of memory. So char message [] = { 'H', 'e', 'l', 'l', 'o', '\0' }; char message [] = "Hello"; is valid : [B]initialisation[/B] message = { 'H', 'e', 'l', 'l', 'o', '\0' }; message = "Hello"; or …

Member Avatar for osirisgothra
0
149
Member Avatar for Singlem
Member Avatar for NewOrder

Depends, here you may use it freely or not.The word refers to the Pawn object. It is sometimes needed to avoid name conflicts with other equily named variables. But best is to use a property here: [CODE=c#]class Pawn : Pieces { string name; public Pawn(string piece) { this.name = piece; …

Member Avatar for ddanbe
0
103
Member Avatar for riiseuk

Call the Grade function as proposed by Singlem in your while loop. Declare it as [B]public static void Grade(int mark)[/B] etc. Succes!

Member Avatar for riiseuk
0
127
Member Avatar for CHOCHOCHO
Member Avatar for get2afzal

Hi get2afzal, welcome here! An application is anything that lets a "microprocessor" and other hardware, do things. This might be a traffic light control system, a game on a console etc. Because such microprocessor systems only understand the meaning of 0 and 1 (on and off) it is hard for …

Member Avatar for shajis001
-1
81
Member Avatar for S.Santosh

Please don't post threads twice! Use the sender object, perhaps like this: [CODE=c#]public void Manage_Another_Account_frm_MouseHover(object sender, EventArgs e) { //pnl_new_[count].BackColor = Color.Green; Panel hoveredoverPnl = sender as Panel; //you know it is a Panel right? hoveredoverPnl.BackColor = Color.Green; }[/CODE]

Member Avatar for kvprajapati
0
87
Member Avatar for chintan_1671

You need to swap bytes. You can find info on that here: [url]http://msdn.microsoft.com/en-us/library/aa288465(v=vs.71).aspx[/url]

Member Avatar for ddanbe
0
239
Member Avatar for JOSheaIV

IMO you better use properties, something like: [CODE= C#]public bool active{ get; set; }[/CODE] instead of [CODE=C#]public void inActive (bool input) //if they are active or on leave { active = input; }[/CODE]in your constructor this would give: [CODE=C#]public Employee (bool active, string ID, string name, string DOB, int age, …

Member Avatar for ddanbe
0
154
Member Avatar for steven8579

Perhaps this thread? [url]http://www.daniweb.com/forums/thread211352.html[/url] You could have found it yourself ;)

Member Avatar for kvprajapati
0
211
Member Avatar for er.sajal
Member Avatar for Dekea

Use the Compare method: [url]http://msdn.microsoft.com/en-us/library/84787k22.aspx[/url]

Member Avatar for Dekea
0
204
Member Avatar for Nivass

If I interpret your question right, I think this causes your confusion: The upper left coordinates of a form are (0,0) If you have a PictureBox in it at say (50,50), and you draw in the PictureBox, the upper left coordinates of the PictureBox are (0,0).

Member Avatar for Nivass
0
107
Member Avatar for virusisfound

This gave me the output you wanted: [CODE=C#]class Program { static void Main(string[] args) { //Console.WriteLine("Input start date:"); DateTime st = new DateTime(2011,1,1); //st = Convert.ToDateTime(Console.ReadLine()); Console.WriteLine("Input number of months:"); int nm = Convert.ToInt32(Console.ReadLine()); // Hey, no error checking here! You normally should. for (int i = 0; i < …

Member Avatar for virusisfound
0
77
Member Avatar for james6754

You could do things like this: [CODE=C#]class Program { static void Main() { Class1 type = new Class1("HELLO",17) ; // here do things like Console.WriteLine(type.message); Console.WriteLine(type.age); // or if its birthday: type.age = 18; //etc } }[/CODE]

Member Avatar for ddanbe
0
103
Member Avatar for please1234

Hi please12345, welcome here! You may know what the heck a [B]sansa clip [/B]is. There is at least one person(me) who has not even the faintest idea of what it could be? Please don't ask questions like:[COLOR="Green"] I have problems with [B]woof [/B]I tried [B]spif [/B]but it gave me [B]zork[/B]. …

Member Avatar for ddanbe
0
62
Member Avatar for MasterGberry

A C# program needs a function called [B]Main[/B], for C++ this is [B]main[/B]. The syntax for arguments of Main is [B]string[] args[/B], I believe for main this is string args[]. Your function on line 1 is called [B]Go[/B]?

Member Avatar for MasterGberry
0
92
Member Avatar for ABSOR

You could read this recent thread [url]http://www.daniweb.com/forums/thread336019.html[/url] It might perhaps provide some hints.

Member Avatar for kvprajapati
0
2K
Member Avatar for macaela

This is obviously a homework assignment, but the OP has done some effort to refrase it in the proper way.:sad:

Member Avatar for ddanbe
0
171
Member Avatar for ddanbe

Hi you all, I have the following code to put a CSV file into a DataTable. [CODE=C#]// read CSV file private DataTable BuildDataTable(string fileFullPath, char seperator) { const int EOF = -1; DataTable myTable = new DataTable("MyTable"); DataRow myRow; try { StreamReader myReader = new StreamReader(fileFullPath); } catch (Exception ex) …

Member Avatar for Mitja Bonca
0
572
Member Avatar for noamo48

Hi noamo48 welcome here! Did you find [url=http://www.andzelika.co.uk/TCPsockets.pdf]this book[/url] on your search on the web?

Member Avatar for kvprajapati
0
160
Member Avatar for Ramy Mahrous

I consider Arabic caligraphy one of the most beautiful in the world. I even can distinguish some letters in it, although I do not understand Arab, exept for some words like "salaam" etc. I think you are helping lots of people with your snippet.

Member Avatar for Rajesha N
2
2K
Member Avatar for ddanbe

Hello, Would it be a good idea to let any member manage his own collection of favorite threads? Greetings, Danny

Member Avatar for ddanbe
2
59
Member Avatar for ninikobb

Hi ninikobb, welcome here! Use the GetUpperBound method. Read this:[url]http://msdn.microsoft.com/en-us/library/system.array.getupperbound.aspx[/url]

Member Avatar for ddanbe
0
120
Member Avatar for rikiroxs

Why is it so urgent? Is your house on fire? [COLOR="Red"]Don't post a message here in red.[/COLOR] IT HAS THE SAME EFFECT AS SHOUTING!!! Look in the code snippet section and you will certainly find what you where looking for. If not, come back here.

Member Avatar for rikiroxs
-1
130
Member Avatar for coroll

Do it like this: [CODE=c#]if (sts == true) { MessageBox.Show("OK"); } else { MessageBox.Show("Your Username or password is incorrect"); }[/CODE]

Member Avatar for Munnazz
0
106
Member Avatar for steven8579

Lokk for a possible answeer at the end of this thread [url]http://www.daniweb.com/forums/thread334851.html[/url]

Member Avatar for steven8579
0
285
Member Avatar for roxin_phoenix

Learn ADO.NET first. You could start [url=http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson01.aspx]here.[/url] This is the complete book I guess. ADO.NET does not care to what DB it is connected, as long as the connection is set up right. You will learn that in this book, or from other sources. Learn Access seperately.

Member Avatar for roxin_phoenix
0
459
Member Avatar for el_jk
Member Avatar for kvprajapati
0
153
Member Avatar for steven8579

Happy Newyear to you all! My first approach (perhaps not the best one) would be: Put your two listboxes in a Dictionary, something like this: [CODE=c#]Dictionary<string, int> d = new Dictionary<string, int>(); d.Add("cat", 2); d.Add("dog", 1); d.Add("llama", 0); d.Add("iguana", -1);[/CODE] Now sort your first listbox. Walk through it item by …

Member Avatar for ddanbe
0
275
Member Avatar for jck6288
Member Avatar for NeilA

I always found [url=http://www.csharpkey.com/csharp/index.htm]this site[/url] very usefull. It is updated for VS 2010 and C# 4.

Member Avatar for jonsca
0
180
Member Avatar for fsuco

Hi fsuco, welcome! :) Perhaps [url=http://www.amazon.co.uk/USB-Complete-Developer-27s-Guide-Guides/dp/1931448086/ref=wl_it_dp_o?ie=UTF8&coliid=IJ1XOZFCTUQGY&colid=IT79H49ZWGO1]this book[/url] may help. It's about USB. They also have [url=http://www.amazon.co.uk/Serial-Port-Complete-2nd-Editon/dp/193144806X/ref=wl_it_dp_o?ie=UTF8&coliid=IA8KGUK9Q5K1V&colid=IT79H49ZWGO1]this one[/url] about serial ports. You could also read an article like [url]http://www.developerfusion.com/article/84338/making-usb-c-friendly/[/url] Succes!

Member Avatar for ddanbe
0
431
Member Avatar for judithSampathwa
Member Avatar for tom_289

He man what's the hurry? Over here it is sunday, so relax. My guess is you have to do some calculations, based on the textboxes that are enabled for a parttimer. See what you can come up with. Succes! :)

Member Avatar for tom_289
0
161
Member Avatar for james6754

Try [url=http://www.csharpkey.com/csharp/Lesson09.htm]this[/url] for learning about constructors. Read [url=http://www.csharpkey.com/csharp/Lesson12.htm]this[/url] for learning about static.

Member Avatar for james6754
0
82
Member Avatar for RichMayor

Hi, RichMayor, welcome here. So you want a free tutor to teach you C#? I am affraid that is too much to ask. ( At least for me that is too much asking :D ) Try to start with for example this: [url]http://www.csharpkey.com/csharp/index.htm[/url] Other sites as this one exist. Or …

Member Avatar for ddanbe
0
110
Member Avatar for Farhad.idrees

Obviously you want something like a "shopping basket" or am I wrong? Look at how differt "shopping" sites handle this and try to implement it that way. Happy programming :)

Member Avatar for Munnazz
0
119
Member Avatar for UsSy

You can use a default constructor to give the fields of your class initial values. This avoids the use of an extra Initialisation method. You can also overload constructors, if you want some fields to be initialised with other then the default values.

Member Avatar for Momerath
0
88
Member Avatar for lelejau

Read about [B]static[/B] You could do something like this: [CODE=c#]class Vars { public static int var1 = 1; public static double var2 = 3.42; //etc. }[/CODE] Then use your variables like this: [CODE=c#] int i; double d = Vars.var2; i = Vars.var1;[/CODE]

Member Avatar for ddanbe
0
98
Member Avatar for RossR

Hi welcome! Use MDI (Multiple Document Interface) You could start [url=http://msdn.microsoft.com/en-us/library/ms632591(v=vs.85).aspx]here[/url] for more info. Or look at this [url]http://msdn.microsoft.com/en-us/library/aa645520(v=vs.71).aspx[/url]

Member Avatar for williamrojas78
0
135
Member Avatar for thegrovesy

Your custom control seems to be a good idea to me. I made something similar for the table of Mendeleev(chemical elements). >[COLOR="Green"]Will I need to create a custom version of the Panel (or similar) to get a better "smooth" scroll?[/COLOR] There is already a custom version in the form of …

Member Avatar for amol.narkhede
0
141
Member Avatar for stevanity

[QUOTE]Which one is the better one[/QUOTE] There is no better one. Even in spoken languages. Which is better? French, English, Chinese? But I agree that I have a (personal) preference for C# over VB and some other languages. But I still do some programming in VB for the moment!

Member Avatar for UsSy
-1
213
Member Avatar for nilofer

I know it is Xmass, I shall be generous. Seek and thou shalt find!

Member Avatar for ShahanDev
0
80

The End.