- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 64
- Posts with Upvotes
- 57
- Upvoting Members
- 36
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
- Interests
- music (guitar,piano)
203 Posted Topics
Re: Hello, ddanbe. I hope this will help to solve your problem: [url=http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.windowsforms.controls/2007-04/msg00018.html]Remove current record triangle from DataGridView RowHeader??[/url] :) | |
Re: This thread never gonna die! :D | |
Re: Hi, seems like it's the right time for recursion. There plenty of examples with it everywhere, so find it, take a shot to make something in your direction .. I'm here to help if you'll meet any dificulties :) | |
Re: Hello, I can't see the problem yet, but I got one thing to say - you don't close neither the connection to your client, nor the [icode]NetworkStream[/icode], that you're working with. This thingy can bring some troubles :) Let me know if it solves the problem .. if not - … | |
Re: Hi there! I'm still under inspiration of reading one more book about good coding practices, so ... I just can't passy by quietly :) I'd like to give a few notes about this thread: # First. # Programming is all about complexity management. So, if you have a task to … | |
Re: I just would like to add something about using methods. You can easily break up your code into methods by simple describing what it does. E.g. "Method takes user input and makes a roll and builds a histogram ...". The activities, separated by "and" word may be easily moved into … | |
Re: Hi, hwoarang69. I'm not able to test your code right now, but I'll take a shot to guess, where's the problem sits. It can be in this method: public void actionPerformed(ActionEvent e) { //all collsion stuff go in here repaint(); } just check, how many times it been called every … | |
Re: Let's start from the beggining ... The main points in your assignment are: 1. "inherits from Game". From those, we have that the base class would be Game. 2. "game is a team or individual game". Look closer at the wording. Game **is Team Game**. And game **is Individual game**. … | |
Re: Well, I'm not too good in knowing JMF, but in pieces, maybe we could gather all the info from different solutions provided in both threads into 1 working prog. As a starting point, I'd like to provide one more link: [Code Samples and Apps](http://www.oracle.com/technetwork/java/javase/index-141145.html). The interesting sample is **SimplePlayerApplet.java**. It's … | |
Re: Ahem .. [url=http://www.daniweb.com/forums/announcement61-2.html][COLOR="Red"][B][U]We only give homework help to those who show effort[/U][/B][/COLOR][/url] | |
Re: Hello, I haven't faced such problem before .. maybe this might help you: [url=http://forums.sun.com/thread.jspa?threadID=228168&messageID=1028281]Java Programming [Archive] - Clear screen?[/url] | |
![]() | Re: Hello, unfortunatelly I have no tools to test your code right now .. but I want share some thoughts about that. I suppose that, that might be a problem with boxing of a ref-type variable when passing it in parameters list (by the way, have you tried passing it as … |
Re: You're comparing your number with largest to obtain the largest one ... What are the positive numbers - the numbers, which are bigger than 0 .. | |
Re: Hello, your code seems to be ok. But, one thing that I suspect .. what is the value of "ctrl.Controls.Count" when you get the [QUOTE=nickg21]error that @chkText either has already been set[/QUOTE]? Try to debug .. what conditions are, when your prog is trying to add this parameter more than … | |
Re: Hello, you can iterate through selected items in your ListBox using [url=http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.selecteditems.aspx]ListBox.SelectedItems Property[/url] | |
Re: Hello, ZER09. Public property is enough to get this working. I've tried, and it displayed all I wanted. Can't say why yours is acting wrong. Can you provide a code, where you add a child form to a parent MDI container? | |
Re: You can take a look at the progs, that you usually use: different viewers, chat clients, Music/Video players, file managers, hardware utilities etc. etc. .. and make your own. With the functionality, that it's missing (well, actually about any prog you can say "It's a good one, but if it … | |
Re: Hello, zachattack05. Can you provide a code, which is used to save your data? So I can analyze what's happening wrong there. I don't see the advantages from breaking all this into 2 steps (you still need to update both tables). Maybe I misunderstood something :-/ | |
Re: I guess, one of the easiest things is Bubble Sort. It shall do this trick ;) | |
Re: Hello, rexdon. Are you looking for something like this: [URL="http://stackoverflow.com/questions/3337981/c-sharp-hex-mask-for-maskedtextbox-input"]C# Hex Mask for maskedtextbox input[/URL]? ;) | |
Re: If your function can be shared between few forms, why don't take it off the specific form and put it in a separate class? It even can be a static method, accessible from outside. So you just call it in your forms. | |
Re: Hi, GonzR. Here's a few points that may be helpful: 1. [URL="http://msdn.microsoft.com/en-us/library/yyxz6h5w.aspx"]Char.IsLetter Method (Char)[/URL]. 2. [URL="http://msdn.microsoft.com/en-us/library/7f0ddtxh.aspx"]Char.IsDigit Method (Char)[/URL] 3. In C#, strings are char arrays, so there's no need to convert them. You can just iterate through string using any loop. 4. Also, there's an option to check your string, … | |
Re: Hello, jboy1803. Here we go .. [CODE=c#]this.laptop_InformationTableAdapter.Fill(this.laptopsDataSet.Laptop_Information);[/CODE] Here, you make your adapter to obtain the data from your DataBase and put it in the specified table. You can treat adapter as a communication channel between your DataBase and the DataSet/DataTable in your App. [CODE=c#] List<string> manufactures = new List<string>(); for … | |
Re: Hello, Enrique. I'm just wondering, why are you trying to access the method through [ICODE]form1Instance[/ICODE] instance? Why then you're creating a [ICODE]writerDelegateInstance[/ICODE] delegate to store the reference to this method? Also, to escape circular references, you can specify the full qualified name of a class (including it's namespace): [ICODE]SameSpace.Form1[/ICODE]. | |
Re: Is it a requirement to use an array (rather than a collection)? | |
Re: Hello, Justin. I don't know the ColdFusion, so I'll try to guess what you want :) The closest solution I came up with is: [CODE=ASP.NET] <% string[] list = { "red", "blue", "yellow", "green" }; for (int i = 0; i < list.Length; i++) { Response.Write(list[i] + "<br />"); }%> … | |
Re: Hello, [URL="http://www.csharp-examples.net/local-ip/"]Check Local IP Address [C#][/URL]. | |
Re: Hello, farshadak2004. Take a look at this: [URL="http://www.codeproject.com/KB/cs/GetIdleTimeWithCS.aspx"]Getting the user idle time with C#[/URL] | |
Re: I suppose, you already got your answers on CodeProject ;) [URL="http://www.codeproject.com/Questions/290736/Can-i-track-WM_ENTERMENULOOP-WM_INITMENU-WM_EXITME"]Can i track WM_ENTERMENULOOP / WM_INITMENU & WM_EXITMENULOOP messages of any application?[/URL] | |
Re: Hello, Jazerix. Take a look at: [URL="http://www.c-sharpcorner.com/UploadFile/mahesh/printerslisting06072007092859AM/printerslisting.aspx"]How to get printers listing in C#[/URL] and [URL="http://www.dotnetcurry.com/ShowArticle.aspx?ID=148"]Retrieve a List of Installed Printers on the Network Using WMI, C# and VB.NET[/URL] | |
Re: Hello, this example works without any errors: [CODE=c#] double a = 1.2; int c = 2; double res = Math.Round((a * 100) / c);[/CODE] Maybe you want somehow extend the problem definition ;) | |
Re: Hello, lianpiau. What if you find 2 duplicates (with a different content) for single column? Say, Column1 Column2 r1 text text1 r2 text text2 r3 text3 text4 r4 text3 text5 What rows should be highlighted? Also, here's a post with a similar question: [URL="http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/d4ef2cfd-99e0-43e8-a274-d7bf2568d494/"]How to check duplicate data in datagridview[/URL] … | |
Re: Hello, walid86. Firstly, try it out by yourself: 1. Find your local folder called "My Documents". 2. Right-click on it and go to tab "Location". 3. See what's in there ;) Next, it would be great if you posted exception message (so I don't need to recreate all the behavior … | |
Re: Hello, the only approach I see is calculating the position by yourself, like here: [URL="http://www.vcskicks.com/align-user-interface.php"]C# Align User Interface[/URL]. Don't know, if there any better way to achieve that. | |
Re: As far as I know, the code in VB may be replaced with a similar code in C#. But, I doubt if playing with font size is a handy idea. Dunno about others, but I, personally, look cautious at web elements, who are living with their own life =) E.g. … | |
Re: Hello, dieucay555. Well,this is what MSDN says: [QUOTE=MSDN] Generic Static Method C# allows you to define static methods that use generic type parameters. However, when invoking such a static method, you need to provide the concrete type for the containing class at the call site, such as in this example: … | |
Re: Hello, lemunk. Take a look at this: [URL="http://msdn.microsoft.com/en-US/library/d7125bke%28v=VS.80%29.aspx"]How to: Execute a Stored Procedure that Returns Rows [/URL]. And at [URL="http://msdn.microsoft.com/en-us/library/905keexk.aspx"]DbDataAdapter.Fill Method (DataTable)[/URL]. The DataAdapter uses SelectCommand property to retrieve a data from DataBase. Which is not specified in your code. P.S. bumping, at least, is not appreciated ;) | |
Re: Hello. How about using something like: [CODE=c#]this.Controls[i].Enabled = !this.Controls[i].Enabled;[/CODE] To change the state in both ways. | |
Re: Hello, drugoholic. The first fast idea that came to me is: 1. Create a DataSource in your project and bind a grid to it (I'm not considering here custom cell renders, so we can focus on the approach). 2. Modify the DataSource (Including it's TableAdapter and DataSet) to return the … | |
Re: Is this is that you're looking for: [URL="http://msdn.microsoft.com/en-us/library/ms670169"]Microsoft HTML Help 1.4 SDK[/URL]? :) | |
Re: Try this: [URL="http://stackoverflow.com/questions/1604024/maximizing-child-mdi-in-limited-area"]Maximizing child mdi in limited area[/URL] | |
Re: Hello, kavi4u. The first solution that came up to me is playing a bit with a row background color and a Timer. But I would suggest you better just highlight the row, rather than changing color. Cause blinking is pretty annoying (and imagine that in some cases the whole grid … | |
Re: Hello, wcroome. I've created a Test Application, and when I add Items to [ICODE]lBFirmware[/ICODE], rather than [ICODE]lBoxTest1[/ICODE], I'm able to obtain the selected Index in the specified handler: [CODE=c#] private void lBFirmware_SelectedIndexChanged(object sender, EventArgs e) { ListBox lb = sender as ListBox; int selectedIndex = lb.SelectedIndex; //all ok here ;) … | |
Re: Hello, bbman. What have you done so far? What's not working or what's giving you unexpected/undesired results? | |
Re: Hello, lxXTaCoXxl. Maybe this would help: [URL="http://stackoverflow.com/questions/7253833/c-sharp-get-user-picture-avatar"]C# Get user picture (Avatar)[/URL] | |
Re: Hi, MORFIOUS. As for a beginner, I would suggest you to take an easier project to learn from. The given project has variety things, that may be too complex and too confusing for a newbie. Start from "Hello world" and then build up things to it bit by bit .. … | |
Re: Hi, Johnrocks. Take a look at this this project, maybe it would give you an idea on how to implement this functionality in WPF: [URL="http://www.codeproject.com/KB/cs/propertyeditor.aspx"]Creating Custom Controls-Providing Design Time Support[/URL] | |
Re: Hi, adobe71. C# uses the backslash to escape characters, so [ICODE]"\\"[/ICODE] is equal to [ICODE]\[/ICODE] literal, and [ICODE]"\"[/ICODE] results in error, because you trying to escape the second quote and your string literal remains "unclosed". You have 2 ways to go: 1. As you can see, double backslash results in … | |
Re: Beforehand, sorry for my english... Method classinprac2() declared as static, so to work with him you shouldn't create object of class classinprac1. This is right: ov8prac1.classinprac1.classinprac2( ); | |
![]() |
The End.