4,439 Posted Topics

Member Avatar for virusisfound

I always found [url=http://www.daniweb.com/code/snippet217193.html]this code snippet [/url] a very good one, about this subject. Can I remind everyone who likes to know, that this site has a [B]search [/B]function?

Member Avatar for ddanbe
0
77
Member Avatar for Pokenerd

Use the forms Invalidate or Refresh methods in your Button Click handler. These methods will somehow call your Form1_Paint method.

Member Avatar for ddanbe
0
348
Member Avatar for BonaDrag

If [B]date[/B] is of type DateTime you can do: [CODE=c#]CalendarMyMeetings.SelectedDate = date;[/CODE] If your date has another format, convert it to year, month and day and use: [CODE=c#]DateTime mydate = new DateTime(year, month, day); CalendarMyMeetings.SelectedDate = mydate;[/CODE]

Member Avatar for BonaDrag
0
86
Member Avatar for Merlin33069

Google [B]3D matrix in C#[/B] You will find things like this: [url]http://www.vcskicks.com/3d_gdiplus_drawing.php[/url] Succes!

Member Avatar for adams161
0
267
Member Avatar for shazzy99

Say L is the last character in your filename.(Same as Fname.Length-1) Then Fname.Substring(L-3,L); should do the trick.

Member Avatar for kia_mls
0
204
Member Avatar for mahmud2008
Member Avatar for MONabas

Graduation project? >>[I]I'm new to the c# world as I only have c/c++ programming skills ... [/I] Use the skills you have, if you have to do it in C#: START LEARNING IT!!! As a matter of fact you are a graduate student, right? Or am I just a moron …

Member Avatar for MONabas
0
118
Member Avatar for chandruswami

Perhaps you could have a look at this snippet: [url]http://www.daniweb.com/code/snippet217420.html[/url]

Member Avatar for ddanbe
0
70
Member Avatar for Dimansu

Perhaps you could also have a look at this snippet: [url]http://www.daniweb.com/code/snippet217420.html[/url]

Member Avatar for ddanbe
0
84
Member Avatar for octavia
Member Avatar for Kami3

Hi Kami3, welcome on DaniWeb! Look on this site for info, use the search function. I found this: [url]http://www.daniweb.com/forums/thread245701.html[/url], there is more. Perhaps [url=http://www.andzelika.co.uk/TCPsockets.pdf] this site[/url] can also help.

Member Avatar for chan_lemo
0
268
Member Avatar for madhan

Like andrewll2 is saying, the code: [B]int[] myarray1 = myArray; [/B] Makes myarray1 and myArray point to the same memory location. So, if you change one array element it will also be changed in the other array.

Member Avatar for madhan
0
107
Member Avatar for leejiaen1212

GDI (G raphics D evice I nterface) or any other STROUMPF interface for that matter, whether it is slower or faster, is not at hand here! I suggest to the OP to show some code of what he has already done.

Member Avatar for Ketsuekiame
0
293
Member Avatar for mugabbo

Prime numbers have been done so many times before, that if you do a search on this site, you will find what you need.

Member Avatar for kvprajapati
-1
81
Member Avatar for balla4eva33
Member Avatar for kvprajapati
0
258
Member Avatar for xGrimReaperx

To make a Graphic dissapear you could first draw one. Wait 3 secs or watever. Draw the same grhaphic again but with the Brush in the backgroundcolor of the form. Wait 3 secs or whatever. Draw the graphic again with a Brush in the color you had before.

Member Avatar for nick.crane
0
1K
Member Avatar for nickguletskii

Every recursive operation has to have some kind of stopping condition. If not, you can create a stack overflow or some other error. Look at the classic example of the factorial calculation: [CODE=C#]uint factorial(unint n) { if (n <= 1) { return 1; // stopping condition } else { return …

Member Avatar for nickguletskii
0
91
Member Avatar for powerbox

Perhaps you could change this struct, so that it fits your 3 byte scheme: [CODE=C#]struct IntBits { private int _bits; public IntBits(int InitialBitValue) { _bits = InitialBitValue; } //declare indexer public bool this[int index] { get { return (_bits & (1 << index)) != 0; } set { if (value) …

Member Avatar for powerbox
0
114
Member Avatar for virendra_sharma

In Console.WriteLine, {0} acts as a placholder for a value to be put in a string. So [B]Console.WriteLine("Enter Value p[{0}]:", i);[/B] (Let i in the for loop be 3) would print out: [COLOR="Green"]Enter Value p[ 3 ]: [/COLOR] I would prefer to change this to [B]Console.WriteLine("Enter Value Number {0} :", …

Member Avatar for ddanbe
0
117
Member Avatar for qingpete4

[QUOTE]However i want to move onto java. i want to learn oop[/QUOTE] Strange, you say you are very good with C++. That you want to learn Java, I can understand, but C++ has among other things, multiple inheritance... Did you missed the oop part of the C++ language?

Member Avatar for ddanbe
0
99
Member Avatar for onlinessp
Member Avatar for onlinessp
1
301
Member Avatar for onlinessp
Member Avatar for pabloh007
1
220
Member Avatar for zismad

Use SuspendLayout. Make all your checkboxes. Use ResumeLayout. On a side note, this snippet might interest you: [url]http://www.daniweb.com/code/snippet217338.html[/url]

Member Avatar for zismad
0
182
Member Avatar for MrBlack

You should check that the divisor (in your case variable [B]b[/B]) is not zero. You cannot divide by zero. you cannot do that in math, so why do you think a computer, which consists mainly of silicon(from sand), copper and plastic, is able to do that? If you use [B]void …

Member Avatar for MrBlack
0
142
Member Avatar for GAME

You could use textbox.Text.Lenght. If you have a multiline textbox, use the Lines property wich return an array of strings.

Member Avatar for ereruh
0
123
Member Avatar for sdhawan

IMHO you should not use two buttons, but to radiobuttons in a groupbox control. When you click on label 'a' show the contents of the dictionary according to the setting in the radiobox group.

Member Avatar for sdhawan
0
219
Member Avatar for sfener06

Don't know anything about Matlab, but from the looks of your error message it seeems like you are using a 2D array instead of a 1D array. Hope it helps a bit.

Member Avatar for ddanbe
0
41
Member Avatar for reza.adinata

Or use a boolean flag. If it is true show picture and set the flag to false. If it is false, hide picture and set the flag to true.

Member Avatar for ddanbe
0
106
Member Avatar for sdhawan

In the snippets section you can find this snippet : [url]http://www.daniweb.com/code/snippet217193.html[/url]

Member Avatar for sdhawan
0
65
Member Avatar for MrBlack

Hi finito, I think the OP meant more something like [url=http://www.codeproject.com/KB/cs/nested_csclasses.aspx]this[/url]

Member Avatar for MrBlack
0
141
Member Avatar for Nfurman

Start a new forms app and fill in the code below. Hope it helps you out. [CODE=c#]namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); int numberOfDays = 30; int Xpos = 10; int Ypos = 0; for (int i = 0; i <= numberOfDays; …

Member Avatar for jbisono
0
73
Member Avatar for tacoman
Member Avatar for renevdkooij
0
839
Member Avatar for dilansankalpa

Does it have to be MSchart? If not, have a look at [url=http://www.daniweb.com/code/snippet217204.html]this snippet.[/url]

Member Avatar for ddanbe
0
84
Member Avatar for Veneficae

Use something like this: [CODE=c#] while (true) { //do your thing }[/CODE] Use a [B]continue;[/B] statement to stay in the infinite loop or leave it with a [B]break;[/B] statement.

Member Avatar for Veneficae
0
527
Member Avatar for s_sridhar

I had some good times, I had some bad times. Like everybody else I guess. So if you cannot put here at least 1000 memorable moments of your life, you better start thinking of throwing yourself under a train. I am not going to do either of those! The good …

Member Avatar for iamthwee
-1
254
Member Avatar for winrawr

If you feel confortable with VB and mostly write things for yourself, why even ask? Just carry on! But. As all things evolve, so do computers and programming languages. I programmed (as a pro)in a language called Modula-2. Liked it very much. I can still program in that language if …

Member Avatar for winrawr
0
263
Member Avatar for geoNeo_

This should work: Start a new forms app, drop a button on it and implement its click event. Next fill in the timer code you see below: [CODE=c#]namespace WindowsFormsApplication1 { public partial class Form1 : Form { Timer T = new Timer(); public Form1() { InitializeComponent(); T.Interval = 1000; //Tick …

Member Avatar for edgareatis
0
2K
Member Avatar for Rashakil Fol
Member Avatar for tiger188

I find [url=http://www.amazon.co.uk/Programming-Windows-Three-Dimensional-Presentation-Foundation/dp/0735623945/ref=sr_1_1?ie=UTF8&s=books&qid=1273843972&sr=1-1]this[/url] a very good book. And BTW all the books by Charles Petzold are good! (That is my personal opinion)

Member Avatar for ddanbe
0
597
Member Avatar for lishannx

What also works, strange as it may be: [CODE=c#]for( ; ; ) //loop forever { //code here }[/CODE]

Member Avatar for lishannx
0
150
Member Avatar for andrew2325

He, my refrigerator does not work, tell me how to solve it! This is the same sort of question you are posing. Please tell us EXACTLY what is not working whit your code and we'll be glad to help you out.:)

Member Avatar for andrew2325
0
81
Member Avatar for krishnisilva
Member Avatar for Ionelul
0
90
Member Avatar for serkan sendur

As I already said in earlier threads, I don't care so much about all those points and stars etc. They are a nice thing to have though (it's a sort of "stimulus" to carry on), but they are not essential. More important is that I can help people(especially the newbies) …

Member Avatar for jephthah
1
366
Member Avatar for Florinmoc

Hi Florinmoc, welcome here! I always have had an interest in computers. As a laboratory worker I had the opportunity to work on a data sharing project on the compagny I work for. It was mainly a task of programming in Modula-2.(Some sort of Pascal and some 20 years ago) …

Member Avatar for ddanbe
0
74
Member Avatar for krishnisilva

You could use the arrow keys to scroll in your text or use the ScrollBars property of the TextBox to the setting you want.

Member Avatar for ddanbe
0
124
Member Avatar for clownContagion

Hi clownContagion, welcome here! If you posted some code, this would really help. What would you do, if I asked you to repair my bike, but I would not show it to you? EDIT: please use code tags if you post code.

Member Avatar for clownContagion
0
92
Member Avatar for nemoo

I could add to the suggestions Diamonddrake has given you, that a [B]Pen [/B]object has a [B]StartCap [/B]and [B]EndCap [/B]property, which are of a [B]LineCap [/B]enumeration type. If you choose the value ArrowAnchor for one of those properties, you can draw an arrow by just doing a [B]DrawLine[/B].

Member Avatar for nemoo
0
415
Member Avatar for loliana

In lines 9 and 15 of your code, you are just writing the text of the radiobutton to a file. If your radiobutton1 text was "Mickey Mouse" and if it was checked, your file would contain the text "Mickey Mouse".

Member Avatar for loliana
0
100
Member Avatar for George_Williams

Hi George_Williams, welcome here. Let me remind you that C# has no functions, we call them [B]methods [/B]in C# parlance. Further Visual Studio has a marvel called Intellisence, so I don't mind typing a '(' or ')' from time to time.

Member Avatar for ddanbe
0
93
Member Avatar for Jimingle10

Perhaps do it this way: Make a standard forms application and fill in this code: [CODE=C#]namespace WindowsFormsApplication1 { public partial class Form1 : Form { public const int MaxLen = 10; public const int ButtonSide = 40; // Declare empty 2D button array of 100 buttons private Button[,] MyButtons = …

Member Avatar for newenglandguy
0
854

The End.