Answer Questions
Janakiraman81 Using an Ada generated .Net dll in C#
Greetings, I'm currently using Ada as my main programming language. The only issue that I have with this language is that there is not any decent GUI builder designed for it, so I tried to build a test .net dll with the functions that I needed in Ada and then call it from a form built in C#. Here is an example of the code that C# executes when pressing the button of the test form: private void button1_Click( object sender, EventArgs e) & ...Show All
DevMatt Visual C# Look and Feel nice in XP, ordinary in 2000, why?
Hi, I downloaded and am running Visual C# Express on my Windows 2000 machine. At first, I was slightly taken aback by the clumsy, clunky look of some of the dialogs in the IDE itself. That is, some of the buttons were strangely large and the size of some dialogs just didn't come anywhere near the professional, smart look of say, Office 2000. For example the "Edit Rows and Columns..." dialog if you right-click on a TableLayout panel. I'm not ...Show All
Fluffy_ko How to write the code automaticly into the InitializeComponent?
I make some component and controls in the my toolbox when I drag them to the form, i hope VS can write the code into the InitializeComponent automaticlly,just like I drag a VS button in the form. How to archieve this pls give me some idea Thanks Maybe I misunderstood the question. But create a custom control and add for example the following code: private string test = "muh"; public string Test { get { return this.test; } ...Show All
Divider BackgroundWorker and SHGetFileInfo
The SHGetFileInfo function sometimes does not give the appropriate icon when called from by a BackgroundWorker. As far as I have been able to ascertain you get the correct Icon back as long as the Icon is static for a file type. That is, the Icons for .txt, .doc, etc. are the same no matter which file it is. But the Icon for files/shortcuts with the extension .url or .sln (if you have VS 2005 installed) will have Icons which depend on file and ...Show All
Dmitry Lysenko Wonder Cursor
(using vc# 2005 .net 2.0) I thought I was pretty good with cursors until now... I'm drawing a "reversed screen" cursor. I can create one at run-time up to 224 pixels wide (and seemingly any height). I did this by creating a class that inherits IO.Stream and has the internals of the Windows IP .Cur file format (so I called the class WindowsIPCur). I then pass an object of that to the Forms.Cursor(IO.Stream) constructor to create a ...Show All
Hamid Sirat Regarding inserting images in datagrid column
Hi I am using datagrid( .net 1.1) in .net 2.0. I am binding the datasource to the datagrid. I have one column which is state (varchar) i want to insert images in that column. Pls tell the above is possible if not pls tell the alternative as i have to take image column. I am not getting how to set column or cell type as image. Any body ASAP pls Thanks & Regards Bhargavi ...Show All
JeremyAtGosub How can I set Thumbnail view in OpenFileDialog control?
I want to set Tumbnail view as the default view of OpenFileDialog control. How can I achive this Should I create custom control See the following article on CodeProject: http://www.codeproject.com/cs/miscctrl/FileDialogExtender.asp Hi Kean, I am very happy to see ur answer. That's I want. Thanks for your quick response for me. Rgards, Vijay ...Show All
vinxter How to stop MDI parent background image being tile
Hi, Does any one knows how to set the MDI Parent form's background image to strech mode. Many thanks, -VJ I am also having the same problem but in Visual Basic NET. And I can't find a BackgroundImageLayout property value to change to Imagelayout.stretch!!!! Could you include a piece of example code or something Hi Vije, You must change Form.BackgroundImageLayout property to ImageLayout.Stret ...Show All
jumpingjahelziphat windows forms + popup +variable value
Looking for some help, if you have the time (anyone) it'd be great. Here's the deal. I've got a windows form...dropdown list of states. If Florida is selected, I want a pop-up window to ask for a $$ amount. Then that value in the pop-up has to be stored in a variable so I can do some math on it before displaying it in a summary box. Any idea how to do a windows pop-up, grab a value entered, and then display in a text box with something like ...Show All
BenoitM Launch from IStillImage freezes the app
Hi all. My C# app registers itself using the IStillImage interface, and the R egisterLaunchApplication method, such that when we connect a camera, our program is listed in the box that comes up, and from there we can run the software. Recently, it's become the case that launching the app this way causes it to freeze, although running it normally never does. There are no parameters passed through, nothing should run any different to if I double c ...Show All
chemosevilla What Pattern/approach suits my application requirements.
Hi all, I have an application scenario that is based on health and safety inspections. So basically, a set of questions and answers. I have a class, Inspections, that contain properties about itself, such as type of inspection, data and time etc, and also a questions and answers collection class to contain both the questions, and answers. Anyway, in my application I need to display these questions (displaying the relevant data controls based on ...Show All
HarrisTL I could really do with a pointer in the right direction
System.NullReferenceException: Object reference not set to an instance of an object. at _Default.Page_Load(Object sender, EventArgs e) in Default.aspx.cs:line 30 it is in the following code: using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Net; using ...Show All
Al Longobardi Immediate window: how to pass literal array
Here's a basic question: In the immediate window, I can call Main: for example if main is defined as static int Main() then I can do: Program.Main() in the immediate window and get the int returned. BUT: how do I pass a string array to Main (or any function) via the immediate window Program.Main({"a", "b"}) doesn't work. class Program { static int Main( string [] args) ...Show All
John Bower converting wIN32 dll to .net
Hi Guys! Is there any tool out there that can be used to convert a Win32 Assembly(dll) to .NET (dll or code). I would highly appriciate if some1 has an answer! ....Happy Programming.... o O o(`'·.,(`'·., ☆,.·''),.·'')o O o° ·'"` * *☆ t4ure4n ☆* * ·'"` °o O o(,.·''(,.·'' ☆`'·.,)`'·.,)o O o° Well, I don't know of one, but you can use Win32 DLLs via InteropService, take a look at DllImpo ...Show All
GregBowie LsaQueryInformationPolicy
Can anybody help with the declaration for using the LsaQueryInformationPolicy function available for use in C#, for example, to use the LsaClose API function after getting a handle to a policy you could use this: [DllImport("advapi32.dll")] private static extern long LsaClose(IntPtr ObjectHandle); A sample snippet where a policy value is retrieved would be perfect but not expected :-) I want to do this on a standalone b ...Show All
