Answer Questions
raj_p_1981 DataBase Location
Ok. Basically, I would like by database to be accessed from my server. Can someone how to tell me how to put the database location property to my server address If you need more clerification please reply and say so. Thank you. Depends on your problem actually. I am not sure either if you are aware of the 3-tier architecture. I would recommend going through this article. It's not rated high but has decent info. http://www.codeproject.com/c ...Show All
nostra49 How I can detect hardware?
How I can detect a cd-rw or dvd-rw,etc. using Visual C# in .NET 2.0 you can use the System.IO namespace. In this, you can use the DriveInfo class and you can then go through the collection of drives returned and get its information you require. Example: System.IO.DriveInfo[] theDrives = System.IO.DriveInfo.GetDrives(); foreach (DriveInfo currentDrive in theDrives) { &nb ...Show All
Nick Hustak Deleting objects
I'm using a treeview and it points to a Employee class so I can display info about the employee selected. Here are some code snips. Classes: public interface AbstractEmployee public class Employee : AbstractEmployee class EmpNode : TreeNode { private AbstractEmployee _emp; public EmpNode( AbstractEmployee aemp) : base (emp.getName()) { ...Show All
Itai R PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match th ...Show All
aamir malik Internal Frame
Hi, Is there a way to work with internalframes with Csharp Any sample Thanks Ok, And how can I make to disable the minimize, maximize and close button, from the internal frame that appears in the mainmenu Thanks For Minimize/Maximize it should be easy: form.MinimizeBox = false; form.MaximizeBox = false; but I don't know an easy way to disable Close. But I'm wondering what an internal frame with no ...Show All
NOX Circular dependency + WinForms depency problem
Hello everyone. I have a question about an indirect circular dependency caused by some not-so-loose coupling, and I'm looking for options to solve it neatly. The operation is very simple - I wish to split my application into a library of core components and a bootstrapping EXE which contains all the WinForms stuff. This is in aid of writing a Linux GUI, and it is why some of the usual options are closed to me due to needing things in certa ...Show All
n_sateesh Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. ...Show All
sonali_ban Restricting Certain URL's
I would like to know how to design a code to be able to restrict URLS that are in a database. If someone could help me please. I got this code from a different question I asked, but it seemed like it is what you are after "There is a Navigating event which is fired just before the WebBrowser navigates to a new document. Realize this event fires anytime the location of the document displayed in the WebBrowser is changed, whether it be by ...Show All
ValidDisplayName drawing shape
Can we still drag and drop shape onto the form I want to draw 8 circles (names Circle) and each one is in an array (Circle #1 = Circle[0]). How can we do that Thank you hi, http://www.bobpowell.net/beginnersgdi.htm hope this helps ...Show All
Felipe Gaiotto how to edit a classic asp page using vs 2005 and pws
Hi. Fortunately vs 2005 have pws instead of iis, greatly increasing some security aspects (having a web server always on at our desktops is something that worries every CSO), but I'm having some problems to run even the simplest classic asp pages, a helloworld page returns... Server Error in '/WebSite1' Application. I don't think this is possible. ASP pages are handled by a very different engine (C:\WINDOWS\System32\inetsrv\asp.dll) than A ...Show All
Senefelder How To called Managed Code from Unmanaged Code ?
Hello, I want to know that is there any mechanism by which i can call my managed code(DLL which i developed using C#) into Unmanaged Code (Means my VC++ Application). Ur viewed Welcomed (prakash_paghdal@hotmail.com) Than ...Show All
Joe Jackson Graphical Counter help, Novice Probably easy
Hi there, I have a question. I want to use picture boxes along with numbered images I made (0-9) and want to have 6 numbers displayed. I'm trying to do it with switch but since I'm ProNovice the only way I can think of to do it will take up 270 lines of if's and else's. I'll post here a (small) chunk of the code... I'm sure there's a better way of doing this but, well, being new sucks! :) private void StupidCounter( string position ...Show All
Dirk Strikwerda Bitmap from Byte[]
Dear All, I have a bitmap image stored in a byte[] in GBR format. I want to point a bitmap to it so that i can easily display in a picture box. This is the code I am using and it’s definitely too slow (even reading from a file is much faster than this). I have looked at the “ class EffectBuffer” but it does not seem to relate directly to my problem now. Can anyone be of help DBack = new Bitmap (Img_Width, Img_Height); byt ...Show All
Christof using keywords
Hi everyone, I have some doubts about the usage necessity of using keywords. Instead of using this keyword, it is enough to only add the packages into our Assembly(DLL files), so inspite of this, why do some programmer do both of them(add the packages into Assembly and also use using keywords for these packages). Thanks, Mert *grin* I'm glad you understood him right away, I typed a long answer about using statements within C# code before ...Show All
Zelalem window service unable to launch process
dear all i need your help, i did a project setup for a window service in which i want to launch a batch file ... but the process isnt working ... anyone please help out.. here is my code System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; proc.StartInfo.FileName= ConfigurationSettings.AppSettings["exeName"]; proc.StartInfo.WorkingDirectory = "d:\\batchs"; proc.StartInfo.Arguments= e.FullPath; ...Show All
