Answer Questions
Christopher McGinnis Threading - ActiveX Events/Objects
Hi, I have a threading problem that drives me absolutely nuts and I don't know what to do: I'm using an ActiveX object and subscribe to one of its events. Whenever I execute the method that drives the event, a couple events are triggered. The event response holds an ActiveX object which I need to work with. What happens now is that whenever the event response returns it runs on a different thread. I want to store the event response activex ob ...Show All
Chong sql extract data
Hi i have a big file in DB like 300 MB i want to save the contents of that Table in a XML file.. problem is i get the exception System.OutOfMemory ... has anyone done that before suggestion how to do it is it possible to request a amount of data from the SQL server like.. the file HAs 300MB .. the server send 10MB then another 10MB.. and so one untill all data is sent Thanks!! If you have a 'record id' field in your data table then y ...Show All
Gurjot Singh How can I make Wizard?
I want to make wazard same as PropertySheet or programming install dialog that use next, prev button. I look for TabControl, but I don't fine method. Could you help me A good article also from Code Project can be found here , it got a full design time working wizard with a great article that explaines the logic of a wizard. Unfortunately WinForms doesn't include a standard wizard control as is (fo ...Show All
Kyriakos Anastasakis How to store list using Settings Designer (in 2.0)?
Using the Settings Designer I can easily store individual items (string, int, double, etc...), but how do I store a list of items. I used the Browse... selection to set the Type to ArrayList, but I couldn't figure out how to set the default value. So, in the constructor of my main form, I added the following code... Settings.Default.MyList = new ArrayList(); Settings.Default.MyList.Add( "abc"); Settings.Default.MyList. ...Show All
bertrand Win32 Heaps keeps on Growing
Hi Guys, We've written a Service Application for importing data into our system. It appears that we have a memory leak since the applications grows and grows and grows until it crashes ( OutOfMemoryException ). Using .NET Memory Profiler 2.6 I found that the Win32 heaps seems to be the culprit. Does any one have any Idea what could be causing this issue Michael Chroman, i don't agree with you ...Show All
SimplyConfuzed Dynamic creation of an instance by name
I am trying to do some reflection which includes creating an object via reflection. I know the name of the class, I just want to dynamically create the class via the name (and assembly if necessary.) I don't want to switch on the text name of the class and hard code the creation of the class, I just want to get a reference to a new object of some type that I specify via a string. Anyone done this I know you can do this i ...Show All
JawKnee When and how the instance of a singleton object will be disposed..?
using System namespace DesignPattern { class Connection { private static Connection instance; private Connection() { } public static Connection GetInstance() { if (instance == null ) { instance = new Connection(); return instance; } else return instance; } } } Now this is a singleton class .So every consumer of this class will get an single inst ...Show All
fivestar Does the event Collapse in Contextmenu work?
The contextmenu provide event Collapse, but it seems do not work. I can write the eventhandler for it, but the code respond to this event can not be executed no matter which operation is processed. Is it a bug { ..................... ContextMenu buttonMenu = new ContextMenu(menuItems); buttonMenu.Show(button1, new Point(0, button1 .Height ) ); buttonMenu.Collapse += new EventHandler(buttonMenu_Collapse) ...Show All
Kevinbe GridView
Hi I pass a querystring value on to a page that has a gridview, I want to use this querystring value and put the grid view into edit mode at the row that matches my qstring value Any ideas Hi After populating or Binding the GridView to the DataSource, extract the value from QueryString and set the EditIndex property value with that value extracted from QueryString. If you pass the index Value of the Row ...Show All
Dunk_SCO Event
Hi, I use the following code to trigger an Event: public abstract class MyClass : MyBaseClass { public delegate void ClickedEvent(Object sender); public event ClickedEvent Clicked; internal override void OnMouseReleased(MouseEventArgs e, bool outside) { if (!outside) { Clicked(this); } } } Unfortunately this doesn't work. I get the following exception, when Clicked(this); is ...Show All
Kevin Mullican WDS Query from VBScript or COM
I'm looking at integrating WDS functionality with an existing application and have been trying to call the ExecuteQuery from VB6 but am having problems. Does anyone else have some example code that they've managed to get working I've worked out that passing empty strings seems to case issues and am passing null references instead but am getting some errors raised ("Inv. Proc. Call"). This is for a small quick research project ...Show All
DeanHuff Forcing printer to print in landscape
I have a webbrowser control which is passed a url to display (which works fine) a Reporting Services 2000 report. I want to be able to print the report with just one button click but the report needs to be printed out in Landscape mode. If you go in manually and set the printer to Landscape it works fine but this wouldn't be acceptable. I have been using the webbrowser.print method. I have tried using the PrintDocument class (which ...Show All
LambrosKaralis Any Fixes for Roaming Profiles with WDS yet?
Hi all - looking to implement WDS in an environment using roaming profiles. I've heard there should be a hotfix (or something) becoming available but I don't know an approximate date. Can someone here comment on how it might be possible to get WDS working with Roaming profiles Walk me through the steps etc.. Thanks! Helo, I install this hot fix, but the problem persist. Anyone have a suggest Acco ...Show All
Dato0011 Adding ListView Groups through code
The following code doesn't add the group names to the listview control. Anyone have any suggestions This is coming straight out of the documentation too... private void Form1_Load( object sender, EventArgs e) { // Adds a new group that has a left-aligned header listView1.Groups.Add( new ListViewGroup ( "Group 01" , HorizontalAlignment .Left)); listView1.Groups.Add( new ListViewGroup ( "Group 02& ...Show All
Cesar GHALI Regarding combo box value property in .net 2.0
HI I am using combo box, if i manually add the combo box i am not gettin the valuemember of item.If i access the value it is giving object reference not set. I need the value property as i am storing id in that. can any body tell the solution for it. I need to add manually because i want to add extra items to the which i retrieved from database. Thanks & Regards Bhargavi Hi Its means tha ...Show All
