Answer Questions
rajuraju DEBUG constant in effect for Release configuration
folks, i have a web project where the Release configuration shows DEBUG constant defined in various #if DEBUG statements. this is not only visually in IDE but in the actual generated assembly as well. of course, i made sure the "Define DEBUG constant" box is un-checked for Release. has anyone run into this thanks... g Can you please check the following I only have VS2005 inst ...Show All
Spencer Harris How to import a dll made in C++ Win 32
Hello Everyone, I have a dll which is made in Win 32, as it is not an assembly neither COM can't be used as a refrence, so I have to Import it.... Can someone tell me how to do it...As when i do it asks for the entry point and secondly how to call the functions from that dll.....A brief example will be highly appreciATED... Thanks, Harsimrat public static extern function1(string t); public static e ...Show All
Ian Hopkins How to Set columns width in a Win. Form Datagrid at runtime?
Thanks for the help. I figured out how to make certain columns to be readonly. But I had to do this to the DataTable before its even binded to the dataGrid. Is there a better way to do this Also is there a way to set the width of each column I looked at the code above. But I think were using differnt types of datasource. Im a newby with C# so excuse me if my questions seem kinda stupid...... Im not sure how to make the code you posted above ...Show All
Quammy Transfer the value of a text box from one form to another.
I want to be able to have the value of the text box in one form populate a text box in a second form when it opens. Can anyone help me with this. Thank you very much. I made the text box in both forms public and then used the following code in the first form and it did the job. private void menuItem4_Click(object sender, System.EventArgs e) { &nbs ...Show All
nebbioli How To Register Web Part & How Deploy the Web Part To SharedPoint Portal Server 2003
hi I am Using VS.NET 2003 & Working On WebPart Library Project Problem to me is i am able to create web part using ASP.NET User Control and also .dwp file also i am able to update After you make the changes to trust the Web Part, My web.config file will look similar to the following code: <SafeControls> <SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken ...Show All
rsdata Pass paramters to applications when executing?
Hi, How do you pass a parameter to an application when executing an application E.g. "MyApp.exe -parameter". Thanks, Weiran. Commandline parameters are passed into the string array of the main-method: static void Main(string[] args) where you can access them just like you would do with any other array. Create a shortcut to the exe and add t ...Show All
NateLucy Visual C# 2003 how to send variables in a class to other forms?
Hello 1) I have 2 forms and in the first form "form1" I have som textboxes and then I will put the data fra form1 textboxes into some variables in a class and then take the whole class and variables in the class to form2, so I can take out the data from form1 and use in form2 2) In another programering langauge you have to delete a class instans, but do I do that in Visual C# 2003, and is it neccesary or not Hope to hear from ...Show All
Jason Mongue How to Raise an event using the EventInfo class object??
Hi all, I am loading three Assemblies dynamically using Assembly .LoadFrom () e g -: Assembly *** = Assembly .LoadFrom(“Test.dll”); First assembly contains just an event inside the class. Eg-: public delegate int Maths ( int a, int b); public event Maths mathsEvent; Other two dlls contain classes with functions which will return int and will take two integer type parameters. After loading the assembl ...Show All
Jayakumar A Developing web apps using VC# Express?
Hi. Is it possible to develop web applications using Visual C# Express Edition, or will I need the full Visual Studio 2005 product for this If not, is it possible to code the project as a windows forms project in VC# Express, and then copy the project to a Visual Studio 2005 machine and compile it as a web application Thanks! /Anders (newbie) Thanks! I'll have a go at it and see how it turns out. /Anders ...Show All
BenK95781 C# compiler...
I am working through a C# Tutorial and it tells me to type: csc DrawingObject.cs Shapes.cs ect... however everytime I type csc it returns in cmd that csc is an invalid internal or external command. I have download and installed the .Net SDK, for I was under the understanding that this will allow a user to compile code in the command prompt. How can I get the SDK to compile or is there a free compiler out there that I can use for C# I would d ...Show All
Freeweight Raise event from IE hosted windows user control and catch it in the Web Form that’s hosting the control
Hi. I have a web app that uses a IE hosted windows user control. I would like that, somehow, lounch an external event from that hosted control that I could catch in my web form’s code behind. If possible, please send me a small sample project ( bozesan_mihai82@yahoo.com ). But, of course, I would appreciate any suggestions! Thanks in advance! If you need to access button from script - add id attribute to it and i ...Show All
Dr_Barnowl c# testing for nullable type then setting property
Vikram, Thank you. The Convert.ToInt32 is an improvement. Do you have any idea, when using the nullable types in c#2.0, how to test whether a property is indeed nullable other than the method I used in my original post This still seems wrong somehow.. Regards, Martin ...Show All
Tomaszek intercepting onclik
Strange request... I have a program written in asp.net and vb. I want to try to intercept a click on a button with my program. Is it possible I explain better: i want my application (console/win/web) does click of the other program (winform).. thx Sorry, it's difficult to explain... Thx for patience I have a winform application written by another programmer with a form that contains a button that shows an image A. I ...Show All
Haddibhai Is it generally more efficient to pass by ref?
Just a random thought, but, since passing by value means a creating a copy of the variable, I'm assuming that passing by reference is more efficient in processor terms. Hence should one always pass by ref when given the choice (eg. when the method being passed the parameter doesn't modify it), or is the performance benefit (presumably pitifully insignificant for most simple variables) negated by the reduced readability ("why have they used ...Show All
bchoi Run an .exe from the build events
I want to run an executable from the "build events" (in the properties) of a c# project. I tried to write the command as if I would write it in DOS - I tried with or without quotes like the following: "C:\path\exename.exe -U param1" or C:\path\exename.exe -U param1 When I compile my project I get the following error: Error 80 The command "C:\path\exename.exe -U param1" exited with code 9009. TryOnH ...Show All
