472 Posted Topics

Member Avatar for Mitja Bonca

Is this SOLVED? If so, please mark as SOLVED, otherwise please restate the current problem. Thanks.

Member Avatar for DdoubleD
0
102
Member Avatar for arunkumars

Hi, I spent a good deal of time researching the subject this morning, and this is what I have learned... There are only three ways to do this that I could find: - DDE - Command Line Parameters - Plug-In (Purchased or Licensed by Adobe) **Plug-In** There are third-party plug-in's …

Member Avatar for DdoubleD
0
2K
Member Avatar for Sachin_coder

In your particular code example, you could eliminate the else clause and simply move the [icode]return false;[/icode] to just before the end of your method block: [code=csharp] private bool OpenDbConnection(SqlConnection sql_con_obj) { try { //SqlConnection.ClearPool(sql_con_obj); //SqlConnection.ClearAllPools(); if (sql_con_obj.State == ConnectionState.Closed || sql_con_obj.State == ConnectionState.Broken) { sql_con_obj.ConnectionString = "Data Source=.;Initial Catalog=Practice;User …

Member Avatar for ddanbe
0
137
Member Avatar for numan_num
Member Avatar for SanmGuy

It sounds like you want to merge a "CSV" file with an existing db table. See if this information will help you: [URL="http://msdn.microsoft.com/en-us/library/system.data.datatable.merge.aspx"]DataTable.Merge[/URL]

Member Avatar for SanmGuy
0
180
Member Avatar for sanch01r

I don't have a LDAP server to play around with the code, but that date looks suspiciously like a minimum system date (1/1/1601) with 90 days added to it. Is it possible the user has never logged in and the PwdLastSet is therefore set to zero?

Member Avatar for DdoubleD
0
1K
Member Avatar for mejohnm

Your unsortedarray is two dimensions, but you are comparing it as though it were only one. Look at line 31 and see how you accessing areacode, then look at your if statement at line 49--see the difference?

Member Avatar for mejohnm
0
167
Member Avatar for NatalyC

Try this: [code=csharp] public static int DeleteRecord(string bookID) { const string query = "DELETE FROM Books WHERE l_bookID = @l_bookID"; using (SqlConnection conn = new SqlConnection(connStr)) { conn.Open(); using (SqlCommand cmd = new SqlCommand(query, conn)) { cmd.Parameters.Add(new SqlParameter("@l_bookID", SqlDbType.VarChar)).Value = bookID; return cmd.ExecuteNonQuery(); } } } [/code]

Member Avatar for NatalyC
0
2K
Member Avatar for hnp2500
Member Avatar for hnp2500
-4
104
Member Avatar for dima shawahneh

I found the question interesting, so I decided to look around the internet a little. It's an interesting topic--what are you using it for? Anyway, I did run into this link containing what looks like some well-written shape analytics. Although I have not looked into it deep enough to determine …

Member Avatar for dima shawahneh
0
236
Member Avatar for sanch01r

I took the bulk of this code from an MSDN example. I have used TreeView a few times, but not Active Directory objects. To use, create a form and drag a TreeView control and a DirectoryEntry component onto the form, and wire the Load event... [code=csharp] using System; using System.Collections.Generic; …

Member Avatar for DdoubleD
0
1K
Member Avatar for SAINTJAB

If you have positively verified that the file you can see is named exactly the same as the file you are attempting to load... Is it possible the file is still locked by a prior call to Image.FromFile? The MSDN documentation does not say what kind of lock is placed …

Member Avatar for sknake
0
553
Member Avatar for ddanbe

If you don't mind that the thread will halt for 2 seconds, you can use Thread.Sleep(2000).

Member Avatar for ddanbe
0
2K
Member Avatar for venkates.99

I would like to clarify what you want because your title and last statement conflict a little I think. Are you wanting to have the client/server application send data directly to another client/server application, bypassing writing/reading to an excel spreadsheet (perhaps as it currently is doing)?

Member Avatar for venkates.99
0
113
Member Avatar for s_mostafa_h

[QUOTE=s_mostafa_h;1021356]thanks , I Upload the file in this [URL="http://www.mediafire.com/?sharekey=34d4930e29eb17fdd9d5c56d04dfa8b0e04e75f6e8ebb871"]Link[/URL] When I want to Load App. , I want to insert a Suitable Value to the Rows of Column1 .[/QUOTE] I played around with this a little bit and it has taken me a little time to figure out some things, …

Member Avatar for sknake
0
343
Member Avatar for neutralfox

Begin your search in this forum, where you will find all kinds of examples. Here's a hint for your search: author = sknake As far as your 2005 Express question, I really don't know, but I would think that you just need to use a compatible connection string...

Member Avatar for DdoubleD
0
126
Member Avatar for DanyLdon

[code=csharp] // Stop the annoying BEEP when user presses ENTER or ESCAPE... protected override void OnKeyPress(KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter || e.KeyChar == (char)Keys.Escape) { e.Handled = true; // stop annoying beep } // call base handler... base.OnKeyPress(e); } [/code]

Member Avatar for DdoubleD
0
1K
Member Avatar for ankur1188

Assuming that your IP address and port are correct, have you ensured that the server is not blocking remote connections through that IP/port? Check firewall and configuration settings on the server.

Member Avatar for sknake
-1
1K
Member Avatar for kazit

I believe you can convert the image using the [icode]Image.Save[/icode] method. So, instead of using FileStream: [code=csharp] Image img = Image.FromFile(srcFile); // load tiff img.Save(i + ".jpeg", ImageFormat.Jpeg); // save as jpeg [/code] I think will work, but I'm not 100% sure.

Member Avatar for rajishms
0
196
Member Avatar for Traicey

Here is an example of searching a DataGrid: [URL="http://support.microsoft.com/default.aspx/kb/815680"]How to implement a searchable DataGrid...[/URL] To select the row, of course: [icode]dataGrid1.Select(int rowId);[/icode]

Member Avatar for Traicey
0
176
Member Avatar for bludeath

[QUOTE=bludeath;1021206]So does a hundred views but no comments mean I should elaborate on my code more or show more? Maybe I left some key parts out? I'm kinda new at this and didn't want to give too much overhead that was unnecessary since the code is starting to grow. Or …

Member Avatar for Geekitygeek
0
111
Member Avatar for itslucky

1) Right click on the report, select Insert=>Summary... 2) Select the field you want to sum from the "Choose the field to summarize" combobox and indicate "Sum" in the "Caculate this summary" combobox...

Member Avatar for itslucky
0
90
Member Avatar for procopio

Interesting question...why? Here are a few more I've seen: Logon, Enter/Enter Credentials with Continue or Submit or Enter button...

Member Avatar for procopio
0
68
Member Avatar for beginerC#

[QUOTE=beginerC#;1018705]Hi! I am a beginer in C# and I have 2 forms in a project. The first one contains a [U]dataGridview[/U] with 3 columns: nr,date and obs and a [U]button[/U]. when i select a row and click on a button i want to copy the current nr,date and obs in …

Member Avatar for beginerC#
0
147
Member Avatar for sivananda2009

the error is very clear... assign a value to your [icode]course[/icode] variable eg. [icode]string course = "some text";[/icode] EIDT: I assume you have no checkbox selections, but by modifying/initializing the course declaration this error should go away...

Member Avatar for sknake
0
116
Member Avatar for RunTimeError

Given that you already understand that static methods are "class" methods and non-static methods are "instance" methods, when to use them is a matter of preference more than a need to... Usually, you will define instance type methods within your class implementation because you intend to operate on an instance …

Member Avatar for DdoubleD
0
349
Member Avatar for kool.net

It wasn't clear to me whether your question was for obtaining the state, as you have already been directed, or you are wanting to set the state, which I will throw out some additional direction below. [code=csharp] // ListBox method to select an item... public void SetSelected(int index, bool value); …

Member Avatar for avirag
0
224
Member Avatar for PyroPaul2

I don't exactly know what you are doing with all this code, but it occurs to me that you save the bitmap to a stream, assign your [icode]BitmapBytes[/icode] byte array from the stream array ([icode]byte[] BitmapBytes = stream.ToArray();[/icode]), then you are trying to copy the bigger (resized) image into the …

Member Avatar for DdoubleD
-1
548
Member Avatar for pymatio

This is the second time I've seen this project, which I cannot do anything with because I don't have your 3rd party libraries or data. I've noticed you made a few modifications since the previous thread. Anyway, these lines look a little suspicious, and "blah" is probably not the best …

Member Avatar for DdoubleD
0
215
Member Avatar for PyroPaul2
Member Avatar for shilpa88

You can add any file type you want to a project in VS as far as I know. When you say "import", what do you mean by that? Your questions might be better suited for the Web Development/ASP.NET forum, but won't know until you explain a little better...

Member Avatar for avirag
0
134
Member Avatar for ayeshawzd

You don't need to use a try/catch block to do this. Capture the [icode]TextBox.KeyPress[/icode] event for each textbox (username/password) to prevent a space character from being entered: [CODE=CSHARP] // This event occurs after the KeyDown event and can be used to prevent // characters from entering the control. // Use …

Member Avatar for ayeshawzd
0
219
Member Avatar for ShailaMohite

Maybe my answer is a little too obvious, but if you place the mdb on a machine having a folder that is shared on the LAN, then you only need to have your application browse to the location of the mdb and connect to it there.

Member Avatar for DdoubleD
0
98
Member Avatar for PyroPaul2

That's great you got it solved. Why not post the finished code (using CODE TAGS) so that when others are searching for an answer to their problem they can find and benefit from your solution?

Member Avatar for DdoubleD
0
316
Member Avatar for zorrinn

Yea, your post was pinged by one of the best.... Now mark as solved and give sknake some +rep for his work.

Member Avatar for sknake
-1
431
Member Avatar for DustinS

What is a row header? Aren't the values you are showing as being incorrect really just incorrect cell values in the first column without a column heading?

Member Avatar for DustinS
0
413
Member Avatar for crazyboy

[URL="http://msdn.microsoft.com/en-us/library/ms171548(VS.80).aspx"]How to: Simulate Mouse and Keyboard Events in Code[/URL]

Member Avatar for DdoubleD
0
138
Member Avatar for sireesha.c

This download demonstrates how to read/write wave file headers: [URL="http://69.10.233.10/KB/audio-video/Concatenation_Wave_Files.aspx"]Wave File Headers...[/URL]

Member Avatar for DdoubleD
0
499
Member Avatar for toraj58

Cool... I hadn't seen this class used before! I noticed when I tried to delete a subfolder I got a system error... I have not checked the MSDN doc on this yet so maybe that is a given... I would like to suggest that unless you are going to use …

Member Avatar for nenadnikolic
1
389
Member Avatar for avirag

[QUOTE=avirag;1003138]Ya well , it can works for all keys, i just want for space key.....[/QUOTE] Add a KeyDown event: [code=csharp] private void textBox_KeyDown(object sender, KeyEventArgs e) { if (Control.ModifierKeys == Keys.Space) ;//spacebar was pressed } [/code]

Member Avatar for avirag
0
907
Member Avatar for 666kennedy

[QUOTE=sknake;920851]Half of the code I have already :) I have miles and miles of code for applications i've done over the years.[/QUOTE] Let me know when you publish your stuff man... I want an autographed copy too it that can be arranged! ;)

Member Avatar for DdoubleD
0
141
Member Avatar for avirag

If you have not already, take a look at this thread, which quite a bit of work went into related to your question: [URL="http://www.daniweb.com/forums/thread226540.html"]http://www.daniweb.com/forums/thread226540.html[/URL] Then, if you have tried implementing this and cannot get it to work the way you want, post the relevant code with question (project too to …

Member Avatar for DdoubleD
0
112
Member Avatar for VidyaYadav

Ryshad, that code looks good to me, but for some reason when I execute it (have only tried with one PictureBox added in the panel) the [icode]Remove(pic2remove)[/icode] method in the [icode]picture_click()[/icode] event doesn't seem to remove the control from the panel. I don't see why this wouldn't work and it …

Member Avatar for Geekitygeek
-1
2K
Member Avatar for ramsdellcp

No consequences for making wrong guesses--kind of like how you posted this thread 3 consecutive times?

Member Avatar for DdoubleD
0
111
Member Avatar for anetbegin

You are in the wrong forum... There is an ASP.NET forum under the Web Development tab.

Member Avatar for DdoubleD
0
60
Member Avatar for ShailaMohite

Here is some code to show you what you asked: [code=csharp] // 2nd param false if not searching child controls of control... Control[] ctrls = flowLayoutPanel1.Controls.Find("searchkey", false); // Note: only one can be selected (made active), so if Find returns more than one, // the last one in array will …

Member Avatar for Geekitygeek
0
6K
Member Avatar for vizardo

The window has to be active. Look at the documentation for the SendKeys class: [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx"]SendKeys Class[/URL] [code=csharp] [DllImport("User32.dll")] public static extern bool SetForegroundWindow(IntPtr hWnd); public static void SendKeysToNotePad() { try { // Start notepad... Process myProcess = Process.Start(@"notepad.exe"); // Make the window active... SetForegroundWindow(myProcess.Handle); // Check to see it process …

Member Avatar for DdoubleD
0
214
Member Avatar for procomp65

[QUOTE=procomp65;1005073]the logic on how to do it, evades me. And I think I must check for IsNumbers and then "/004" "/005" [code] PortData = "1 2 3 4 5 6 7 8 9 0 /004 /005 /234 234 @ %"; int index = PortData.IndexOf("1","2","3","4","5","6","7", "8","9","0","/004","/005"); if (index > -1) { …

Member Avatar for Geekitygeek
0
2K
Member Avatar for farsen

Please see this and mark as solved if it answers your question: [URL="http://www.daniweb.com/code/snippet227615.html"].NET Remoting Examples...[/URL]

Member Avatar for farsen
-1
176
Member Avatar for ddanbe

Fun stuff man! I don't know if it is illusion or what, but does the center (pivot point) move as it rotates?

Member Avatar for Diamonddrake
2
1K

The End.