Answer Questions
StevenD007 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 Then use bound column (or column type other than hyperlink column)where clicking of a cell will result in nothing. This was never answered, I need to know the answer as well. It would be nice the indivi ...Show All
Yves Hanoulle (CreateObject)VB -> C#
Please tell me how to tranfer this code to C# Set xlApp = CreateObject("Excel.Application") Set xlWb = xlApp.Workbooks.Add Set xlWs = xlWb.Worksheets("Sheet1") Thanks a lot ! Hi, Try the Activator class. Activator.CreateInstance("Excel.Application") Im not quite sure if this works in CO ...Show All
Bryan_Andes What the design pattern name for this ?
I had only understand one design pattern, singleton. :( I had read a couple of other design pattern but i didn't found the one suitable regarding my question. (simple to say, i didn't understand) :( Maybe you can help me out : I had a main form (MDI parent) called FrmMain and it has a menu to call other forms. There will be only one instance of an MDI child (i use singleton for this). So, suppose i have a MDI child called FrmLogin, ther ...Show All
Jana Carter mciSendString and CD volume
i am using mciSendString(sCommand, null , 0, IntPtr.Zero) and MCI class to play .cda files, which audio cd. i can play files and control them. i want control the volume as well. i tried different methods, but didnt work. Any help wold be good. thanks in advance ...Show All
intrepid Signing an assembly with a key container
The AssemblyKeyName attribute I've been using to sign my assemblies with a key from a container is now deprecated in VS 2005 (I'm using the Standard released version). I get this warning message: AssemblyInfo.cs(59,12): warning CS1699: Use command line option '/keycontainer' or appropriate project settings instead of 'AssemblyKeyName' But as far as I can tell, there's no way to specify a key container in the project settings, only a key file. I ...Show All
Steve-x Apps for Non-framework users
Hi. I'm been thinking of making a couple of small applikations using C# and dotnet mostly cause i want to and the language seems interesting But i have a question i'd like to have awnsered. The machines the apps ar going to be used on don't have the space for the framework but i can squeeze in one or two simple apps. So is there a way to make an application so that the needed dll files and whatNot are all gathered together and ready to ...Show All
sieler Code generation from DLLs
Hi I have accidentally deleted some sources in my project and want to know if there is a way by which I can extract my code from the dll Shantanu Hi, The tool you have given me is pretty good and can come in useful for small amts of source code. Two things I havent figured out to solve are - local variables were renamed to something generated by the tool and there is no automation to generate the . ...Show All
TheMilkMan Transferring data from listview to Word
Hi, I have a listview with (addresses + email address) and the selected address needs to be transferred onto a Word document . Is this possible with c# . This word document needs to be sent to the selected email address.I have looked into the word document email options.There seems to be no options for sending it to the selected person(this comes from a table and not from default outlook folder). Is this option possibl ...Show All
rajitha Dependant ComboBox based on databinding.
hello, I have a two comboboxes. For example, First one has a name of carbrand based on which second combobox needs to have different options. The problem is I have two data base. First one has index brandshortform Brandname and Secondone has index brandsshortform model type engine etc....... Both of them have brandshortform as a common parametter. so bascially I want to display the Brandname in first combobox ...Show All
solomonk Best C# book
Hi! I'm looking for the best C# book. I already know C++. Which is the best according to you Thanks. Luca Also "Programming C#" suggested by Blair Allen Stark seems very good..."A programmer's introduction to C# 2.0" vs "Programming C#": which one "Essential .NET, Volume 1" by Don Box and Chris Sells is excellent if you want to know the inner workings of ...Show All
Ivan_B Get public static members of class instantiated
Ok, I have a base and a derived class. Each have static members. Why is it that if I call a static method defined in the derived class, all the static members of the base class and derived class are instantiated, but if I call a static method defined in the base class only the base class members are instantiated (even if I am doing the call by referencing the derived class) Is there a way to explicitly cause a class to instantiate all of its st ...Show All
Hemant Kanoujiya_29 How to convert Multipart/Atlernative image in bytes
Hi all from last 1 month I am seeking about the solution, how we will convert online Multipart/Alternative image in forms of bytes in c#. I am unable to read image from online url. this statement :chould read files from local disk but not from online image url FileStream s=File.OpenRead(filename); I have used this code but it does not work. and unable to check the existance of fileneme. ======================================== ...Show All
Lars Koewing escape \t
hi, I've been using c# for a short time and there is a little thing a don't understand: if I write this line (where outputLabel is a label in a form) outputLabel.Text = "hi\teveryone"; the tab is not displayed correctly (there is not blank space, I see a strange character) if I use \t in a messageBox as in: MessageBox.Show("hi\teveryone"); everything is OK and I see: hi everyone why I use visual C ...Show All
jif01 Specifyng "Font" With Trace File and Resource File Messages
Hello ... I was wondering if there is any documentation on writing resource file strings to a trace file, and using a specific font. As a supplement/alternative ... is there any way to embed control characters for things like TABs in resource file strings to that you can clean up the output of a printed list of rows so they will start in the same location. For example: Phone1: 301 555-1212 // Tab between the colon and the first digit ...Show All
Tolis Carpenter Difference between out and [Out]
Hi Does anybody know what is the difference between out and [Out] For example if I'm passing byte[] to unmanaged c++ and I use fun(out byte[] bArray); // this doesn't work fun(ref byte[] bArray); // doesn't work too fun([Out] byte[] bArray); // this work perfectly C++ fun(*byte); Thanks for you answer, But tell me if I you [Out] - it does mean that c++ will be using copy of my data - I don't think so couse I can change ...Show All
