472 Posted Topics
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] |
The End.