472 Posted Topics

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
550
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
340
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
123
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
193
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
174
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
110
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
88
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
65
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
145
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
115
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
340
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
221
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
544
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
213
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
131
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
217
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
95
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
313
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
429
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
410
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
135
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
498
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
388
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
903

The End.