Answer Questions
SohanKamat dropDownList question
i want to get the index of the item that was selectes in the dropdownList so i tried to use the property selectedIndex but im getting 0 all the time.. how can i get the index of the selected item in the dropdownList thanks in advanced You first need to define the values in the drop down list property page. the two values are tesxt feild and value feild. Test feild will be visible to the ...Show All
husyn build action - copy file to the root of my project.
Ok, Here's what I what to do. I'm running a project (solution) in a shared drive (network drive) and in the ouput path, I have select a local drive c:\test. I have included a file called captions.config in my solution and what I want to do, it's when i'm compiling, the captions.config that is under my shared drive, I want that file to be copied over my local drive so when I will run the project, they will find my caption.config file. I tho ...Show All
Chibos api text viewer
Hi Can anyone send a link to api text viewer so i can download it.. i realy need it to view some decalrations please.. someone o looked for it o the net for like 3 weeks PLEASE!! ...Show All
John Lagonikas Cursor problem
I have a project with two namespaces, and all I want to do is load a cursor resource in one of them. Sounds simple doesn't it The cursor has it's Build Action property set to Embedded Resource. I use the following code to load it: Cursor = new Cursor(GetType(), "Rectangle.cur"); This works fine in one namespace, but fails in the other. I receive an unhandled exception of type 'System.NullReferenceException'. Additional info ...Show All
Kunaal Deleting a row in excel sheet using C#
Hi, I am working on an C# Winforms application. My question is how do I programmatically delete a particular row in excel sheet... Thanks in advance...! livehed reference the Microsoft Excel 10.0 Object Library in your project. set the following using statement: using Excel = Microsoft.Office.Interop.Excel; In your class, declare the following variables: private Excel.Ap ...Show All
foxjazz2 datagrid prevnt click
Hi How can I prevent all click in any cell in a datagrid rows. I do want to keep the columns active. If I disable the datagrid - I can't resize columns at execution. Thanks Abhijit This was never answered, I need to know the answer as well. It would be nice the individual cells of the datagridview could have a disabled property. How else do you go about disabling the individiual cells Then use bound co ...Show All
Feng2000 DOS window doesn't close after process started?
Hi, I'm trying to run a process from a Windows application. Example: if (Regex.IsMatch(textDomain.Text, "( =^.{1,254}$)(^( :( !d+.)[a-zA-Z0-9_-]{1,63}. )+( :[a-zA-Z]{2,})$)") && Regex.IsMatch(textRecord.Text, "^( :( :25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d \\d)( ( =\\. \\d)\\.)){4}$")) { Process testProcess = new Process(); testProcess.StartInfo.CreateNoWindow = true; Process.Start("cmd.exe", "/c ipconfi ...Show All
LFWanennburg Deployment doubt
I have created the deployment package to install my webapplication using Setup wizard. 1. Using dialog box i have installed the application in any drive and create the virtual directory. 2.Next screens in i have asked the servername , username, password to connect the server and next screen i have asked database name to create the database in the server. Using this connection i am running the "sql.txt" file which has sqlscripts. I am usi ...Show All
tfcarlos multidimensional array trouble
Why is this not working It should return a two dimensional array, but I get trouble with the two dimensional array. OutofMemory exception outofrange exception nullreference exeption In a class I have this method. public string[][] vulListbox(String query) { SQLiteDataReader reader = null; //if I don't want to initialize here; I have to initialise resultaat also in the catch block// normal what ...Show All
WesleyNM ADO.NET Handling of a Pending Transaction
Hi, I am working on a part of my app which is working in distributed environment and I am trying to use the Transaction functionality provided by ADO.NET. I understand that transactions remain in Pending mode until Abort() or Commit() is explicitly called. What does this mean What if I am updating two tables and I have completed the update on the first table, when something goes wrong and let's say the application server crashes. Now I ...Show All
Gary RUsh is it possible to make a grid similar to an excel spreadsheet
is it possible to make a grid similar to an excel spreadsheet using visual C# that i can use with a database and program say for payroll purposes,if so suggestions please using visual studio 2005 Thanks for that much appreciated Yes it is posible, but a lot of developers have allready some this. Take a look at the Grid Control section at The Code Project, here . ...Show All
Syed Hasnain Ali find item at index using list <T>
how would i find the item in a list<int> if i know the index of the item i am looking for. I tried list<int>.items[4] but that won't compile even though the item property exists in documentation. Try this List<int> l=new List<int>(); l.Add(1); l.Add(2); l.Add(3); l.Add(4); l.Add(5); MessageBox.Show(l[2].ToString()); >> ...Show All
ChaosOrdeal C# Immediate window problem
The immediate window in Vs.NET is giving me problems when i use it with C#. Simple example is I have the following line of code in a function String MyString = "abc.doc"; Then I put a breakpoint on it, when i debug the application and it goes into that break, I goto immediate window and type MyString it shows abc.doc but when I want to test for something else like MyString.ToUpper() or MyString.ToUpper() it gives error error: managed ...Show All
Oridel Usage of DataView in my custom DataBase Class
I make one database class, in which there is a dataView method. In the aspx file, this method was invoked with the purpose to display the data in database. But here the aspx file failed to display the data, not even the error message in the catch block. Can anybody tell me why cs file: using System; using System.Data; using System.Data.SqlClient; namespace database { public class DBClass { private SqlConnection conn; ...Show All
tomDarth Why updating datarow cause myComboBox_Selected
I have a ComboBox binded to a field of a DataTable which have one row only. The ComboBox has it SelectedIndexChanged() event handler. When I update another field of the row, it raise the SelectedIndexChanged event, why Thanks. It sounds like you're trying to avoid executing some code you have in your selIndexChanged event... So... Since I would assume the call to SelIndexChanges is due to the Combo doing a refresh to ensu ...Show All
