472 Posted Topics
Re: Is this SOLVED? If so, please mark as SOLVED, otherwise please restate the current problem. Thanks. | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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? | |
Re: 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? | |
Re: 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] | |
Re: Sounds like you are trying to create a keyboard sniffer program? | |
Re: 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 … | |
Re: 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; … | |
Re: 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 … | |
Re: If you don't mind that the thread will halt for 2 seconds, you can use Thread.Sleep(2000). | |
Re: 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)? | |
Re: [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, … | |
Re: 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... | |
Re: [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] | |
Re: 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. | |
Re: 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. | |
Re: 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] | |
Re: [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 … | |
Re: 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... | |
Re: Interesting question...why? Here are a few more I've seen: Logon, Enter/Enter Credentials with Continue or Submit or Enter button... | |
Re: [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 … | |
Re: 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... | |
Re: 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 … | |
Re: 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); … | |
Re: 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 … | |
Re: 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 … | |
| |
Re: 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... | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: Yea, your post was pinged by one of the best.... Now mark as solved and give sknake some +rep for his work. | |
Re: 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? | |
Re: [URL="http://msdn.microsoft.com/en-us/library/ms171548(VS.80).aspx"]How to: Simulate Mouse and Keyboard Events in Code[/URL] | |
Re: 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] | |
Re: 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 … | |
Re: [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] | |
Re: [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! ;) | |
Re: 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 … | |
Re: 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 … | |
Re: No consequences for making wrong guesses--kind of like how you posted this thread 3 consecutive times? | |
Re: You are in the wrong forum... There is an ASP.NET forum under the Web Development tab. | |
Re: 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 … | |
Re: 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 … | |
Re: [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) { … | |
Re: Please see this and mark as solved if it answers your question: [URL="http://www.daniweb.com/code/snippet227615.html"].NET Remoting Examples...[/URL] | |
Re: Fun stuff man! I don't know if it is illusion or what, but does the center (pivot point) move as it rotates? |
The End.