Answer Questions
fatboy401 How to build an editor like DataSourceListEditor?
How do I make an editor like the DataSourceListEditor in VS.NET 2005 That editor really handy. Instead of showing a dialog, just click to drop down and close up, so good huh Yes, that's it. I've used Reflector and see lots of interesting thing. I've found some links: The ColorPicker WinForms Control - http://www.vbinfozine.com/a_colorpicker.shtml http://www.classdotnet.com/pages/Design.IWindowsFormsEditorService.html http://www.devx.com/D ...Show All
TriedEverything help neeed in creating triggers
i want to creat a application in C# .net which changes data in the database. When ever the data get modified in the databse, it should automatically display the data. Can i use trigger for this If so how to implement that one in C# thanks in advance. by singam yes one the trigger is in the db ,as soon as the data gets updated it is automatically fired. thanks neha, Suppose i have wriiten some triggers w ...Show All
Erik Sharp Code organization
Hey all! I was wondering if there were any recomended plugins or macros for VS2005 that would help me sort and reorganize a C# code file Time after time I'm tired of creating a set of objects using the Class Diagram tool and having each field and property being written one after the other. I'd like to have all my fields grouped up in one region, Properties grouped up in a region, constructors together in a region, events, etc... Any g ...Show All
Jeroen Mostert Datagridview from 2 tables ; one filling up combobox
Hi, I'm having a situation like this. I am using a datagridview which fills up Item details from a table, say Items. I am also adding a Datagridcomboboxcolumn to this datagrid whose datasource is table 'Category' from where it should show various category names in combo box for user to select one. I can see the datagridview being filled up with data from Items table.I can also see the combo box column being generated for each row.How ...Show All
douner001 FileSystemWatcher hell... stops watching after event
I created a FileSystemWatcher object to watch for newly created files. Once a file is created, the FileCreated() method is called through the FileWatcher event handler. Problem is, after this happens, FileWatcher doesnt seem to listen anymore. I have to create a new FileWatcher every time the event is fired and the method completes. Below is my code. This is a seperate class from the Main class. From the Main, I call this class to set up and cre ...Show All
mornevr Icon
Ok. I have no problem setting the icon I want for my program. But when I install the program on my machine, it has that box with a play button on it, as its icon. I do I change this I suspect the problem may be that you need to set two icons, a 32x32 and a 16x16. set them where how exactly would I do that Hello, Did you set the icon in the project properties (applications - resources) A single Icon can contain different sizes ...Show All
roy_wang passing string variable from form1 to form2
How can i pass a string that i got in form1 to form2. Thanks.. hi i think u can pass the string as a parameter in the contsructor of form2 class Form2 { public Form2(string myString) { } } or u can make a refernce for the Form1 parameters like this class Form1 { public string myString; Form2 frm=new Form2(this); frm.Show(); } class Form2 { string getString; Form2(Form1 c) { getString=c.myString; } } salamo 3lakoem ...Show All
bjpohl SSE/SSE2 usage
Is it possible to use SSE/SSE2 instructions in C# without creating wrapper functions in MC++ Not directly - but the JIT *may* generate SSE/SSE2 instructions for you anyway (I don't know). Jon ...Show All
Aaron076 Setting the position of a MessageBox
I need to set the position of a MessageBox in an MDI application. I have multiple forms positioned using tile horizontal and vertical and I want the message box to show up centered on its parent form not centered on the computers monitor. How can I set this so that the MessageBox is always opened centered ontop of its parent form It may be, but I have a total of about 16 hours of c# experience so it still isn' ...Show All
Cilim Drop down list does not display any items
I have about six drop down lists and would like to use a common custom method. When I run the first set of code below in each drop down list’s init the dropdownlist is populated as expected. When I run the code as shown in the second set of code below (calling the custom module), it executes but the dropdownlist data does not display on the form. When I run in debug the list stays populated until the page load fires and then the dro ...Show All
phatrice I think this is for an expert!!.. coz` no one knowes it..
I think this is for an expert!!.. coz` no one knowes it.. Can anyone tell how to insert a new line in a file Example: test.txt line 1 line 2 line 3 line 4 line 6 line 7 line 8 after the insertion of the line... line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 i tryed to use the seek() method.. it works but he overides the other lines.. Anyone know how to do that You will have to rewrite the fil ...Show All
frozennose Serial Port Problem
Hi, I'm trying to read bytes from the serial port using interrupts and the .net framework functions, and came across a strange behaviour. If I have constant data coming into the serial port, there is no problem. But if there is only three bytes coming into the port, I can't read those three bytes !!! Has anyone had this problem How can I fix it !! Thanks, Bruce I found the problem which's interesting. ...Show All
Findekano Missing console template
Hi I'm rather new to programming and have just recently downloaded Visual C# Express. However, i cant seem to find the console template in the usual template list. Is it missing in the express version Maybe the templates were not installed or some problem occured. Try this in a command prompt, where vcsexpress exists. VCSExpress /installvstemplates ...Show All
ebi_faratar C# Forms help for newb.
Hi, I'm a little lost... fallen at the first hurdle: I have 2 forms... Login & Menu: Login: using System; using System.Drawing; using System.Collections; using System.Windows.Forms; using System.Data; namespace Week7Demo { public class Login : System.Windows.Forms.Form { private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBo ...Show All
yixia75 HELP: Not working like it should
I'm working through the "SAMS Teach Yourself C# in 24 hours" book using the free download Microsoft Visual C# 2005 Express Beta. I don't know if a lot's changed between the book being written in 2002 and the release of the beta but a few things don't seem to work exactly the same as in the book. Hence, some sections of code won't compile without giving errors. I've gone over the code meticulously and can confirm that I've entered it correctly. ...Show All
