Posts
 
Reputation
Joined
Last Seen
Ranked #135
Strength to Increase Rep
+12
Strength to Decrease Rep
-3
93% Quality Score
Upvotes Received
113
Posts with Upvotes
97
Upvoting Members
45
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
5
55 Commented Posts
~254.87K People Reached
Favorite Tags
c# x 193
c++ x 56
mysql x 13

472 Posted Topics

Member Avatar for Shaitan00

Maybe something useful in this information: [URL="http://msdn.microsoft.com/en-us/library/ms817849.aspx"]System.DirectoryServices Using Guide[/URL]

Member Avatar for Pooja_20
0
6K
Member Avatar for ddanbe

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 …

Member Avatar for JamesCherrill
1
2K
Member Avatar for DdoubleD

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 …

Member Avatar for HarishKJ
2
3K
Member Avatar for steven.culshaw

[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?

Member Avatar for Edik
0
989
Member Avatar for darkocean

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]

Member Avatar for du_1
0
3K
Member Avatar for jatin24

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 …

Member Avatar for sebbu
0
2K
Member Avatar for itslucky
Member Avatar for jatin24

[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.

Member Avatar for johnsonjeven
0
3K
Member Avatar for stevetaylor15

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 …

Member Avatar for ddanbe
0
220
Member Avatar for ajijacobm

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 …

Member Avatar for JobPencil
0
1K
Member Avatar for The Dude

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 …

Member Avatar for Ene Uran
9
4K
Member Avatar for glad024

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 …

Member Avatar for ChrisHunter
0
396
Member Avatar for darkocean

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 …

Member Avatar for deepanbecse
0
2K
Member Avatar for Indianblues

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]

Member Avatar for Michael27
0
517
Member Avatar for echo off

For lazy's eyes only: [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.getcurrentdirectory(VS.71).aspx"]get working directory[/URL]

Member Avatar for gabrielko
0
261
Member Avatar for maybach_hp

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?

Member Avatar for gopaltiwari2012
0
6K
Member Avatar for vivekarora

"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]

Member Avatar for AliceJohn123
0
3K
Member Avatar for Diamonddrake
Member Avatar for sam63

[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 …

Member Avatar for MuhammadSaad
0
4K
Member Avatar for swatkat

[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.

Member Avatar for Azam Butt
1
312
Member Avatar for z_zendegi

[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 …

Member Avatar for jz_gook
0
711
Member Avatar for Diamonddrake

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?

Member Avatar for miladar91
0
379
Member Avatar for jas2010

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 …

Member Avatar for shahnawaz1992
0
243
Member Avatar for kool.net

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"); …

Member Avatar for kumarvarshadr
0
503
Member Avatar for itslucky

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.

Member Avatar for bhagawatshinde
0
3K
Member Avatar for emclondon

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 …

Member Avatar for mndn
0
203
Member Avatar for sivananda2009

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 …

Member Avatar for ahamed.suhail
0
117
Member Avatar for getkiran1

[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 …

Member Avatar for Ionesta
0
2K
Member Avatar for VibhorG

[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 …

Member Avatar for dnlangela
0
2K
Member Avatar for Mitja Bonca

See if this is helpful: [url]http://www.codeproject.com/KB/IP/devangpro.aspx[/url]

Member Avatar for cottom
0
294
Member Avatar for serban

> 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 …

Member Avatar for soopahman
0
589
Member Avatar for SeekAnswers

[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 …

Member Avatar for kei1412
0
543
Member Avatar for agent154

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]

Member Avatar for Matt Gudmundson
0
301
Member Avatar for avirag

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]

Member Avatar for Geekitygeek
-1
3K
Member Avatar for fafi_ali

[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 …

Member Avatar for fafi_ali
0
1K
Member Avatar for fafi_ali

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?

Member Avatar for xianhatesyou
0
3K
Member Avatar for jeeter19

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 …

Member Avatar for kvprajapati
0
1K
Member Avatar for jeeter19

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]?

Member Avatar for kvprajapati
0
746
Member Avatar for tchiloh

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]

Member Avatar for tchiloh
0
134
Member Avatar for irmak1771

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.

Member Avatar for DdoubleD
0
166
Member Avatar for StrangeArray

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 …

Member Avatar for Geekitygeek
0
185
Member Avatar for venkat arun

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]

Member Avatar for venkat arun
0
301
Member Avatar for ernst1234

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, …

Member Avatar for Geekitygeek
0
157
Member Avatar for jonnod123

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]

Member Avatar for kvprajapati
0
184
Member Avatar for mnf

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 …

Member Avatar for Diamonddrake
0
3K
Member Avatar for DdoubleD

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 …

Member Avatar for apegram
0
185
Member Avatar for MxDev

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]

Member Avatar for Kiran.dks
0
185
Member Avatar for phoenix_dwarf

[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 …

Member Avatar for vuyiswamb
0
2K
Member Avatar for ayeshawzd

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.;)

Member Avatar for ayeshawzd
0
484
Member Avatar for george_82

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 …

Member Avatar for george_82
0
163

The End.