Answer Questions
malignate the installer
So I've completed an application, it debugs fine, publishes fine, etc. But I want to know how to make the setup.exe file include all the files for installation instead of it requiring a folder with all the real files in it. You can check into creating a setup and deployment project. There are plenty of resources on the web on how to create such a project. ...Show All
BillyBee Method Description
Hi i was wondering how to create a method on my class so when u call it u can see a brief description of what that method do. for example when u call System.Console.WriteLine u can see that it say "Writes the representation of the array objects........................" and after that also say what expcetions could be thrown by calling this method,, and i was wondering how to add this description and alos how to add the exception list.. i allready tried the System.ComponentModel.Description and put it right before the method, but no results.. mig16 yea im on vs 2005.... and thanks,,, ill keep looking whats the problem. mig16 mmm, thanks again, so it loks that s ...Show All
Michael Ruminer How Do I Show User Accounts on the Computer in a Combo Box?
I need help detecting User Accounts on the Computer that the program is being run on and showing them in a ComboBox. Anybody have any ideas Thank you very much. I changed a few things. My formatted code is below. The only problem is that it only shows the user that is logged in, if possible I need it to show all of the users on the computer. private void Main_Load( object sender, EventArgs e) { string a; a = System.Security.Principal. WindowsIdentity .GetCurrent().Name.ToString(); //MessageBox.Show(a.ToString()); comboBox1.Text = a.ToString(); } sorry its taking this long, I was actually thinking about this on how to respond a couple of minutes ago. I'm still on the case! I asume you are ...Show All
waywar405368 Problem sending Multiple Fax Document to Remote Server
I am using FAXCOMEXLIB for sending my faxes using C# , I have to send multiple faxes in one go, But 2nd time it generates Error (application become hang) . I am Using Crystal report. Tell me If i can send my fax only using crystal report (Api or anything). Please help me out ...Show All
robin l video component
I am doing a windows form application in C# and I am searching for a FREE component in which you can play, pause, stop the video AND manipulate the video input, and produce a video output. I want to be able to control/change any pixel in each frame of the video. Can you tell me where to search for such a component or point me to one The video is already in raw YUV format, but it would be nice if you the component can convert the video format (this is not primary). To understand better, I need something like the System.Drawing.Graphics class, in which you can manipulate the pixels, but I need it for each frame in a video. Maybe an alternative is to use the Graphics class and just to convert each frame in a video to a Graphics obj ...Show All
Ekta why?comboBox1.DropDownStyle will conflict with combobox.SelectionStart property ?
when i want to get the combobox.selectionStart or combobox.selectionLength value , the project will throw an exception after run this code: this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownlist; when i change the code like this : this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDown; i can get the value of the combobox.selectionStart or combobox.selectionLength ; why The exception is like this : combobox.selectionStart = -1448642680 in other's computer will not throw the exception ! my operate system is english-xp , and .net is 2005 for c# thank for your reply . ! Thread split to C# General. Looked like forum software going ...Show All
StargatePwns Why do my continual webrequests for images from an IP camera eventually end in "out of memory" exception?
I am continually calling a method to make a webrequest to an IP camera for a JPEG image. I get the image and it is used by the main program. I do these calls continually as fast as possible. Eventually, the webrequest fails with the exception of "out of memory". Where am I not cleaning up I listed example code below. (Also, because of application restrictions, I am making a separate call for each image rather than reading streaming video) using System; using System.Drawing; using System.Drawing.Imaging; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Runtime.InteropServices; using System.Text; using System.IO; ...Show All
Jehan Badshah Guide on Cross Threading
Anyone have a good guide on cross threading Essentially, I'm trying to access a Windows form control outside of the thread it was created in. Any help would be greatly appreciated. thanks, can you please briefly explain the theroy behind this invokerequired I would really appreciate it. :-) have you followed the example in the link supplied in order to access a UI control from another thread, you need to invoke that control, an example on how to do this is given in the link so in your case you may wish to do this. //main form public delegate void MyTextBoxDelegate(bool enable); .. .. public void DoEnableTextBox(bool enable) { if ...Show All
JocularJoe Associate C# app with image files?
Hello, I have written a program that preview images, first how to associate my program with image files like .jpg and .gif I mean i want when the user double click the image my program launches and preview the image. 2nd how to programatically associate the image files with the program, without the user right click and open with... I hope i have a quick reply, Thanks and regards Create an installer for you application, Right Click Setup Project in Solution Explorer, a menu will open Go to View -> File Types, IN the left side a new pan will open right click on File Types on Target Machine, add a new item, Select the newly creating file type and in property window set a property for its extenssion..... Compile an ...Show All
Manash Set it equal to the value, not the address
Ok so I have two objects of the same type: //C# myObject Ob1 = new myObject(); myObject Ob2 = new myObject(); And when I do this: Ob1 = Ob2; It makes Ob1 point to what Ob2 points to, but I don't want that, I want to copy the value of what Ob2 points to into what Ob1 points to, basically I want to do this: //C++ //I want this: *Ob1 = *Ob2; //not this: Ob1 = &*Ob2; //or this: Ob1 = &Ob2; I would appreciate it if some one could help me out. Well, imagine that you have an object that contains references to another object, as well as, say, an integer value. If you copy the object so that the integer and the reference is copied, it is a shal ...Show All
Mirai How to Insert Only the newest row added to the dataset
I have a dataset that contains some 3 rows....when i add a new row and I want to insert that new row it inserts all three rows again so i end up with seven rows the 3 that were there already, a copy of the 3 that was there and then 1 for the new row.....when i just want it to insert the newest row that i added to the dataset...Is there anyway to get this done foreach (System.Data.DataRow currentRow in _dsContacts.Tables[0].Rows) { currentRow["CustomerID"] = this ._CustomerID; currentRow["TypeOfContact"] = this ._ContactType; string sql = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]; using (SqlConnection connect = new SqlConnection(sql)) { using (SqlC ...Show All
clint 2 Disabling Text boxes
Hi I have 50 Text boxes on a panel. The names for these Text Boxes will be of like T1,T2,T3...T50. Now I have a number which comes dynamically in to the code. Based on this number for Ex: 12, all the Text boxes after T12 should be disabled.Now i was not able to match the pattern of name of the Textboxes on the panel with the number.Any code snippets to do this are much appreciated. Like if (obtained_no like '%Textboxname%') { Then for(temp = obtained_no+1; temp <51; temp++) { disable(Texboxes_temp) } } Thanks! This is what you can do As you said your textboxes start with (T and then the number) and you have 50 textboxes say input was 12, do it in string // you can even do the check here ...Show All
arro239 How to create System.UInt32
I understand the SystemUInt32 is a built in struct in .NET, but was wondering how to make it. Specifically how to implement an implicit conversion that allows code like: UInt32 num = 5; How would this datatype be defined if I wanted to make something similar under a different name Thanks, wilf That solves my problem, but for some reason it is bugging me that I don't know how the Int32 (or the others) is made. Microsoft says it is a struct, but is it possible to build a struct with implicit conversion and not have to use a "." to access it's fields like MyInt32.Int32 Maybe it is just such an intrinsic datatype to C# it is special Ahhhhhhh... What'll rea ...Show All
rnellis2002 How can I right align a progress bar placed on a status bar?
Hello, I'm using .NET 2.0. As you know it's possible to add progress bar to the status bar. I'm wondering how it's possible to make the progress bar aligned to the right of the status bar, just like FireFox progress bar. Please advise. Thank you. ... and set StatusStrip's LayoutStyle to HorizontalStackWithOverflow. Andrej I'm trying to do something similar to this - but instead I have two labels in the Status Strip - I would like the first one aligned on the left and the second one on the right - is this possible I've tried what you suggested and they are both still left-aligned. Thanks. maguidhir, add three labels to the status strip. Select the middle one and set its Spring proper ...Show All
M. Nicholas Capture Key Presses in Windows
Hello, I would like to build an app that acts similar to ALT+TAB (a key combination causes a form to pop up, hide the form when the keys arent held down anymore) and I'm just wondering what I would need to do to capture keys in Windows Will I need to access the Windows API directly to accomplish this Are there any examples that somebody could point me to that show how to do something in C# based on a KeyDown in Windows Thanks! It's not recommended that system-wide hooks, shared extensions, or system-wide extensions be written in a managed language like C# or VB.NET. For details see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=125283&SiteID=1 and http://blogs.msdn.com/oldnewthing/archive/2 ...Show All
