203 Posted Topics

Member Avatar for Klaurac

Hello. Please describe what your program should do (the basic algorythm/-s). Just thing, I would like to notice is that the Program.cs usually contains code for application running, finishing: [url=http://stackoverflow.com/questions/1667764/what-common-routines-do-you-put-in-your-program-cs-for-c]What common routines do you put in your Program.cs for C#[/url]. And in the Form.cs - you have the code, supporting …

Member Avatar for Antenka
0
80
Member Avatar for addie20

Hello, I might help if you would follow these forum rules, as "We'll help you get started and exchange algorithm ideas, but only if you [U]show that you're willing to put in effort[/U] as well." So, tell me, please what you've already tried, what you can't understand or what troubles …

Member Avatar for Lusiphur
-1
124
Member Avatar for jaron1611

Hello, you might be interested in reading these articles: [url=http://msdn.microsoft.com/en-us/library/ykdxa0bc.aspx]Walkthrough: Validating Data in the Windows Forms DataGridView Control[/url] [url=http://social.msdn.microsoft.com/Forums/en/winformsdatacontrols/thread/a92df8b2-56ce-4658-a9ae-600ef82e4852]Datagridview cell specific custom mask[/url] [url=http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/cd12d1aa-f54b-43f7-a157-a25323fed255]Applying access mask to DataGridView in c#[/url] [url=http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/090807ac-f61b-4afe-963b-29c28804176e]How i mask datagridview column[/url]

Member Avatar for Antenka
0
117
Member Avatar for love_dude1984

Hello, Have you tried to play around [icode]IsMDIContainer[/icode] property for parent container and [icode]MDIParent[/icode] for a child one? Unfortunatelly I have no tools to test it right now, but I suppose that it should work like a charm :P Cheers.

Member Avatar for love_dude1984
0
90
Member Avatar for reza.adinata

Ok, let's start from the beggining ... The task is make a WPF application. What we usually expect from server - is performance. From client we usually expect usability, attractiveness, etc. (also performance, but less than from server). So it would be logical to make a server part of an …

Member Avatar for reza.adinata
0
467
Member Avatar for g2gayan

Hello, to extract the value of your [icode]d[/icode] variable into given string, you should: [LIST=1] [*]Close declaration of string with double quotes [*]Concatenate the value of your variable with the rest of your string [/LIST] Here's what I'm talking about: [code=c#] "/c \"format " + d + " /fs:ntfs" [/code]

Member Avatar for g2gayan
0
145
Member Avatar for trashbat

Hello, you have interesting problem ... let's see: [QUOTE=trashbat]Does this make the slightest bit of sense?[/QUOTE] Well, that depends on from which view to look at this: [LIST=1] [*]It sounds logical, when you declare in base class, that it or it's children would implement DataComparable. But since the base class …

Member Avatar for Antenka
0
137
Member Avatar for jellybeannn

Hello, just want to add my 2 cents :) As farooqaaa said, you should test if your events are fired. If they're fired, but display still won't update, try to call [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.application.doevents.aspx]Application.DoEvents Method[/url] to force events processing. One more way achieve that functionality can be using of [icode]DataBinding[/icode].

Member Avatar for finito
0
149
Member Avatar for DaveTran

Hello, since interfaces doesn't have a GetType method, you can use something like this: [code=c#] if (input.GetType() == typeof(Bar)) [/code] Just a thought in a loud .. are you sure that it's really needed. Maybe there's a better approach for your problem?

Member Avatar for Antenka
0
79
Member Avatar for DrueY

Hello, I hope I understood you correctly .. If you've started to talk about custom controls .. why not create a custom tab? Especially if you'll have an identical - looking tabs, I guess it would be a better way to create a sort of template. Here's an example to …

Member Avatar for kvprajapati
0
2K
Member Avatar for icgc

I think this discussion can put some light on your problem: [url=http://stackoverflow.com/questions/72275/when-should-the-volatile-keyword-be-used-in-c]When should the volatile keyword be used in C#?[/url]

Member Avatar for icgc
0
98
Member Avatar for Turismosan

Hello, your way is technically correct. I just want to know .. are you new to c# or to programming at all? Just there is a better way to store data, e.g. using List<T> and structures or classes .. P.S. Please, next time put your code in code tags :)

Member Avatar for PierlucSS
0
147
Member Avatar for slider212

Hello, I just want to share some thoughts to consider on your problem. About suggested ways to go: [quote=slider212 ]1. Leave it as it is it works but is inefficient[/quote] I think this solution has it rights to exist for the case when your collection has small size. But it …

Member Avatar for Antenka
0
194
Member Avatar for Nerathas

Hello. Not sure if I've got the point .. but I'll take a shot :) What about using [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectedindexchanged.aspx]ComboBox..::.SelectedIndexChanged Event[/url]? If I'm wrong, please give more details on what troubles are you facing .. e.g. you don't know, how to get value from ComboBox .. or something else.

Member Avatar for Nerathas
0
125
Member Avatar for Antenka

Hello, everybody. I had a problem while connecting to Oracle. Got messages: [QUOTE=Error]ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified[/QUOTE] And found solution for this - setting the default locale in java code: [code=java] Locale.setDefault(Locale.US); [/code] This works just fine …

Member Avatar for Antenka
0
144
Member Avatar for cabosun

Hello. The compiler tells you that it doesn't understand what is [b]Tree[/]. To fix the problem you should either add import for [icode]Tree[/icode] data type, or declare this data type in your makeup1 class.

Member Avatar for mellowmike
0
130
Member Avatar for suhasinishinde

Hello, to generate Controls in runtime see the the threads, which were discussed not really much time ago here, on Daniweb: [url=http://www.daniweb.com/forums/thread204678.html]C# Preforming Caluclations With Controls Created In Runtime [/url] [url=http://www.daniweb.com/forums/thread204631.html]C# Cannot Read Dynamic Textbox [/url] For using stored procedures: [url=http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson07.aspx]The C# Station ADO.NET Tutorial: Using Stored Procedures[/url]

Member Avatar for Geekitygeek
0
384
Member Avatar for Geekitygeek

Hello, Ryshad :) Ok, let's go .. I'll give a few comments on your suggestions and then give you an example. [quote=Ryshad] a) include a flag in the bay to show that it is in another step [/quote] No, you shouldn't. Because the Bay class shouldn't be aware of what's …

Member Avatar for Geekitygeek
0
173
Member Avatar for Alicito

Hello. The troubles are starting here: [code=c#] carry = 1; [/code] You carry can be more than 1 .. so you should take the integer part of your holder: [code=c#] carry = holder / 10; [/code] Now, after summing all the numbers - you can still have something in your …

Member Avatar for Antenka
0
184
Member Avatar for skylancer

Hello. That's weird .. works fine for me when I use this: [code=c#] using RestaurantSoftClassLib.Karyawan; [/code] and then [code=c#] Karyawan karyawan; [/code] Try to remove one [icode]Karyawan[/icode] .. what's happening if you use only one?

Member Avatar for ddanbe
0
131
Member Avatar for kool.net

Hello. I'm not sure if this is what you're looking for, but to get array of child forms, you can use the [icode]MdiChildren[/icode] property, e.g.: [code=c#] this.MdiChildren[0].BackColor = Color.Black; //and in same manner for sub - sub child forms this.MdiChildren[0].MdiChildren[1].BackColor = Color.Black; [/code]

Member Avatar for kool.net
0
130
Member Avatar for bk_bhupendra

Hello, there's a suggestion in error message: [quote=Error] Some errors can be fixed by rebuilding your project, while others may require code changes. [/quote] Have you tried rebuilding? One more thing: [quote=Error] The type 'System.Windows.Forms.OpenFileDialog' has no field named 'file'. [/quote] Do you have such one? If no - remove …

Member Avatar for Antenka
0
279
Member Avatar for tobibabs

Hello, tobibabs. [url=http://www.daniweb.com/forums/announcement61-2.html][COLOR="Red"][U][B]Here[/B][/U][/COLOR][/url] is what you need.

Member Avatar for Antenka
0
119
Member Avatar for eddy_boy

Hello. If I understood you correctly - this may be helpful for you: [url=http://msdn.microsoft.com/en-us/library/ms998558.aspx]Implementing Singleton in C#[/url]

Member Avatar for sknake
0
1K
Member Avatar for dima shawahneh

Hello. Dunno if it will suit your problem, but as an option - you could remove the header of the window. That's gonna help you to set the size to whatever you want.

Member Avatar for sharensla
0
131
Member Avatar for sawiyan
Re: C#

Hello, just to make sure .. you have WinForms Project or Web-vased?

Member Avatar for babbu
0
105
Member Avatar for sembawyo

[url=http://www.google.com/#hl=en&source=hp&q=c%23+working+with+registry&btnG=Google+Search&aq=f&aqi=&oq=c%23+working+with+registry&fp=8ec9ea851cee2c5b]This guy[/url] has a lot of ideas/suggestions, regarding your question :P

Member Avatar for sembawyo
0
121
Member Avatar for abc16

Hello. I have a doubt about if there a custom class or something similar for that purpose in .Net Framework (for Windows Form). But that's doesn't stop you from implementing it by yourself. Steps could be something like this: 1. Define the data structure, that will store the history of …

Member Avatar for Antenka
1
935
Member Avatar for xyz12

Hello. Interesting question .. I couldn't find any property or method for this case, but here's some workaround. You can process the BeforeSelect event and cancel it if the selection made e.g. not using mouse: [code=c#] private void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e) { if (e.Action != TreeViewAction.ByMouse) { e.Cancel = …

Member Avatar for sknake
0
212
Member Avatar for venkates.99

Hello. Let's investigate your code: 1. You declare an array (for some reason [B][i]readonly[/i][/B]). And say, that it would contain 1024 elements. [code=c#] private readonly byte[] _buffer = new byte[1024]; [/code] NOTE: [B]The array is still empty[/B] 2. On the next step you're trying to convert your empty (well, not …

Member Avatar for Antenka
0
206

The End.