- Strength to Increase Rep
- +12
- Strength to Decrease Rep
- -3
- Upvotes Received
- 113
- Posts with Upvotes
- 97
- Upvoting Members
- 45
- Downvotes Received
- 6
- Posts with Downvotes
- 6
- Downvoting Members
- 5
472 Posted Topics
Re: Maybe something useful in this information: [URL="http://msdn.microsoft.com/en-us/library/ms817849.aspx"]System.DirectoryServices Using Guide[/URL] | |
Re: Hey buddy, I tried to change the parameters (InputData form): Gravity(5) and Height(.5) and got an exception... I tried it with other parameters before that though and it's kind of cool! EDIT: P.S. I noticed this snippet this morning, but didn't have time to download and play with it. Anyway … | |
Demonstrates using .NET Remoting to broadcast to client subscribers. There are three parts: 1) Server.cs - for console app responsible for broadcasting messages (date/time stamp currently) 2) Client.cs - for console app that registers with server to subscribe to broadcasts 3) Agent.cs - class library that facilitates/eposes the interfaces for … | |
Re: [QUOTE=steven.culshaw;952514]I get the following message "Operation can only be performed on cells that belong to a DataGridView control" [/QUOTE] Compiling or at runtime? What line produces the error? | |
Re: Try Google'ing: [URL="http://www.google.com/search?hl=en&rlz=1C1CHMR_enUS325US325&q=example+of+exporting+database+table+to+Excel+using+C%23&aq=f&oq=&aqi="]Search Results[/URL] | |
Re: Out of curiosity, was this grid dragged from a Data Source? Also, though maybe not your preference, I believe you could prevent this from reoccurring if you transfer the form.designer.cs code to your form.cs. You can do this in increments as you are modifying the grid. This way, the designer … | |
Re: Post your code... Be sure to enclose in code tags. | |
Re: [QUOTE=jatin24;959600]I've tried using ConnectionInfo for the report and for the tables etc in the code but it doesn't work.. Please help!![/QUOTE] You are on the right track. Post the code you are using for your ConnectionInfo so we can see what's missing. | |
Re: Maybe I have read this code wrong, but it looks to me like you are looping and copying all of the files if one of them matches (> 3 days), and that you are doing it each time one of them matches, essentially redundant. Did you mean for both of … | |
Re: Hello ajijcobm, I am bored so I decided to look up this subject (cause I have never personally done it before). Anyway, here are some links I thought might get you started: [URL="http://www.xml.com/pub/a/2002/10/23/ado-net.html"]XML and Database Mapping in .NET[/URL] [URL="http://www.codeproject.com/KB/database/xmlschemaeditor.aspx"]An XML Database Schema And Data Editor[/URL] [URL="http://www.codeproject.com/KB/XML/CreateXMLDB.aspx"]Create Data Classes[/URL] Hope that … | |
Re: I've been catching up on this thread and I am only on page 34, but haven't seen this one yet and thought you might enjoy it. It's supposedly from an actual support conversation with Word Perfect years ago, which is when I ran into it too--man I feel old--LOL. Here … | |
Re: Hi glado24! Got here as fast as I could... Now, did you need the complete application with documention and help files attached or just the MySQL database-wrapper interface library?--just kidding--:D If you search the forum, you should find many examples of what you are asking for, and even some threads … | |
Re: Try this: [code=csharp] // TO USE: // 1) include COM reference to Microsoft Excel Object library // add namespace... // 2) using Excel = Microsoft.Office.Interop.Excel; private static void Excel_FromDataTable(DataTable dt) { // Create an Excel object and add workbook... Excel.ApplicationClass excel = new Excel.ApplicationClass(); Excel.Workbook workbook = excel.Application.Workbooks.Add(true); // true … | |
Re: Also take a gander at this similar discussion for other techniques for accomplishing your goal: [URL="http://www.daniweb.com/forums/thread241075.html"]http://www.daniweb.com/forums/thread241075.html[/URL] | |
Re: For lazy's eyes only: [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.getcurrentdirectory(VS.71).aspx"]get working directory[/URL] | |
Re: Does this label1.Text need to be updated after each key stroke in the TextBox, or can it be updated after user has finished editing? | |
Re: "Careful Jim": [URL="http://kaisar-haque.blogspot.com/2008/07/c-accessing-virtual-table.html"]http://kaisar-haque.blogspot.com/2008/07/c-accessing-virtual-table.html[/URL] | |
Re: [QUOTE=Diamonddrake;981945]when you need a messagebox, you just call a static method to show it. ex. [code] System.Windows.Forms.MessageBox.Show("some message"); [/code][/QUOTE] I know this is solved, but I just wanted to add that I often use static methods to test out a class I have written: eg. [icode]public static void Test()[/icode], then … | |
Re: [QUOTE=swatkat;154689]Hi, This Microsoft Technet page has some cool information to do just about anything in Windows XP. Take a look here:- [url]http://www.microsoft.com/technet/itsolutions/howto/winxphow.mspx[/url][/QUOTE] This link appears to no longer be valid. | |
Re: [QUOTE=ddanbe;985912]Don't know what "print them in CM " is. Take into account that dpi(dots per inch) on the screen almost always differs from the dpi on a printer.[/QUOTE] I think he/she is referring to centimeters, but I suppose it could mean color monitor. AcronymFinder.com didn't have either of those for … | |
Re: It's not working when I check myself--always enters [icode]if (isonval == "00")[/icode]. My profile is not hidden. Is there another setting I need to check? | |
Re: When does this error happen? Are you catching the MySqlException? [code=csharp] private static string BuildConnectionStr(string server, string db, string user, string pwd) { return string.Format(connParams, server, db, user, pwd); } const string connParams = "Data Source={0};;database={1};username={2};password={3}"; public static MySqlConnection MySqlConnectionExample() { string server = "LOCALHOST";// if local machine... string database … | |
Re: You could store all the numeric semantics in a dictionary and then recursively call a translator method (as needed) that whittles it down from most significant to least signicant digits... For example: [code=csharp] Dictionary<uint, string> lookupWord = new Dictionary<uint, string>(); public void Init() { lookupWord.Add(0, "siro"); lookupWord.Add(1, "uno"); lookupWord.Add(2, "dos"); … | |
Re: Here is a link to fairly good article on creating a custom UserControl for a ProgressBar: [URL="http://support.microsoft.com/kb/323116"]http://support.microsoft.com/kb/323116[/URL] It's straightforward and I like the way the introduction gives a clear depiction of the usage as well as the step-by-step approach to creating it in VS. | |
Re: Hi emclomdon, For your "Input string was not in a correct format" error, consider using [icode]double.TryParse(...)[/icode], which will allow you to catch null/invalid values and assign them accordingly as zero. Also consider assigning default values and filtering the input if you have not already. For your DateTimePicker, the [icode]MinDate[/icode] and … | |
Re: When posting to Daniweb, try to be more specific with your question(s). Your post is very vague and doesn't really ask a question. If you have began coding and cannot get something specific to work, post (use CODE tags) the portion of code in question and indicate the error you … | |
Re: [QUOTE=getkiran1;980622]See.. i dnt need the path of my C# application.... i need the full path of the other running processess... suppose if i opened a text file or a word file then since my C# application is working in background , this pgm must get the path of the opened … | |
Re: [QUOTE=VibhorG;1000473]I want to ask one thing ....... that i want to set a feature in my application such that after a particular period of time my application should automatically block.....And my application once installed, than should not be installed on other computer........? Just tell me how to do this? Do … | |
Re: See if this is helpful: [url]http://www.codeproject.com/KB/IP/devangpro.aspx[/url] | |
Re: > Hello > > I have seen the following method syntax and I am trying to understand how this works/or doesn't: public class MyClass { public MyClass(); public MyClass(string param); } > There is no implementation of the methods (constructors) and class is not declared virtual either... > Is this … | |
Re: [QUOTE=binteron;273611]I figured out my problem. I had included the database file in the project. Therefore it was overwritten each time I compiled the project, making it look like the database wasn't being updated. I created an external database and it works flawlessly now. Thanks for the responses.[/QUOTE] [QUOTE=facadie;999246]hi how did … | |
Re: Here is an example of a feed from the command line. I tested with "app.exe ..\..\" from the command line and it worked: [code] DirectoryInfo currentDir = new DirectoryInfo(args[0]);// (Environment.CurrentDirectory); [/code] | |
Re: Here is an interesting article that allows you to code your own using mixed-language: [URL="http://www.blackwasp.co.uk/NumberToWords.aspx"]http://www.blackwasp.co.uk/NumberToWords.aspx[/URL] | |
Re: [QUOTE=fafi_ali;944368][code] FileStream fStream = newFileStream (strPath,FileMode.Append); fStream.Close(); StreamWriter sWriter = newStreamWriter(strPath); sWriter.Write(strBuilder); sWriter.Close(); [/code][/QUOTE] [code] FileStream fStream = newFileStream (strPath,FileMode.Append); //fStream.Close(); //StreamWriter sWriter = newStreamWriter(strPath); StreamWriter = new StreamWriter(fStream); sWriter.Write(strBuilder); sWriter.Flush(); sWriter.Close(); [/code] The changes should fix your append at least. Not sure if you are even getting it to … | |
Re: Be sure to use code tags because it makes it easier to read the code. You are not passing in any parameters to the report in the code you gave. What are the names of the parameters defined in the report and what are their types? | |
Re: As sknake pointed out, you would probably need to count the 872 lines by reading them in, but if you have lines that are fixed length, you could calculate the position within the stream ([icode]lineLength * 872[/icode]) and then use the [URL="http://msdn.microsoft.com/en-us/library/system.io.stream.seek.aspx"]Stream.Seek method[/URL] to position the file pointer to the … | |
Re: Since the [icode]SetAttribute[/icode] method sets the value of the name, you wouldn't want the value for "checked" to be "unchecked" because it expects a state flag value for a checkbox's state. Have you tried: [icode]SetAttribute("checked", "false")[/icode]? | |
Re: You can move the caret position in a textbox using [icode]TextBox.Select(...)[/icode]. Just set the [icode]start[/icode] parameter to the desired location of the caret and set [icode]length[/icode] param to 0 or 1 (can't remember exactly if length needs to be 1). See: [URL="http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.select.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.select.aspx[/URL] | |
Re: I'm not sure if there is a typo in your format example because that seems rather large, but have you looked into controlling the [icode]NumberFormat[/icode] property? See: [URL="http://msdn.microsoft.com/en-us/library/aa224873(office.11).aspx"]http://msdn.microsoft.com/en-us/library/aa224873(office.11).aspx[/URL] It is supposed to allow you the same flexibility as the number properties formatter in Excel. | |
Re: Here is a rough example that attempts to do what you have asked for. I expect it will not meet all of your needs, but hopefully it will serve as a good starting example of how you can translate your logic to manipulate the read in data and achieve the … | |
Re: Are you getting a deadlock condition? Try adding [icode]proc.WaitForExit()[/icode] following your call to [icode]reader.ReadToEnd()[/icode]. More information at: [URL="http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardoutput.aspx"]http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.redirectstandardoutput.aspx[/URL] | |
Re: Hi ernst1234, Here are some more tips for you to get moving on this assignment: * You will want to measure the size of the string in the label and resize the width of the label control to ensure the text does not exceed the window region: [URL="http://msdn.microsoft.com/en-us/library/6xe5hazb.aspx"]Graphics.MeasureString[/URL] * Then, … | |
Re: Here is a link that shows you how to execute an update command on the table: [URL="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx"]http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx[/URL] | |
Re: I'm going to break protocol here somewhat, perhaps (since the question has already been begged), and ask what kind of scenario you are wanting to manipulate with a timer in microseconds? My teeny-macro mind cannot fathom what it could be...:icon_redface: Any real-world explanation would suffice for me if you cannot … | |
Hello friends! I've been playing around with the MS Chart class type (System.Windows.Forms.DataVisualization.Charting) and have a situation where I would like to know how to code a query of my data using LINQ. The data I'm playing with is the PowerBall drawings data that is updated each drawing: [URL="http://www.powerball.com/powerball/winnums-text.txt"]http://www.powerball.com/powerball/winnums-text.txt[/URL] I'm … | |
Re: Please refer to this example, which demonstrates (*.txt), but you can modify according to your needs: [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx[/URL] | |
Re: [QUOTE=phoenix_dwarf;1002490]Sorry i thought it worked but i see now that i still can't have a autonumber column in my database...? the bulk insert works from the first column onwards and i need to have the autonumber column...Any further suggestions?[/QUOTE] Seems to me you could add/insert an autonumber column after the … | |
Re: Sent you sent me a PM, I took a quick search: [URL="http://en.wikipedia.org/wiki/Law_of_cosines"]http://en.wikipedia.org/wiki/Law_of_cosines[/URL] I was then going to suggest that ddanbe is your man for this question, but I see he is already on top of it.;) | |
Re: I am unaware of any .NET framework support for formatting your SD card, but you could call the [URL="http://msdn.microsoft.com/en-us/library/bb762169(VS.85).aspx"]SHFormatDrive Function[/URL] from your app, which will invoke the Shell's Format dialog, presumably as a child window because it requires a valid HWND. As far as reading and writing, unless you intend … |
The End.