daxu1's Q&A profile
Visual C# scoped inheritance of a base class
Is it possible to scope my inheritance in C# For example, if I have public members in a base class and I don't want them to be public in the derived class, then how can I accomplish this The following code causes a syntax error... is there another way public class ClassB : protected ClassA Also have a look at this thread , where this subject was discussed earlier. ...Show All
Visual Studio Express Editions menu for Win32 native deployment
So what I've found out, mfc cannot be used in Express Beta 2. Windows Forms Designer makes a wonderful app., but is only .NET Can any of the other Express Beta products allow me to make a simple menu that can be deployed natively without the .NET framework I read somewhere else that Visual Express Beta 2 cannot do anything except .NET Is this true or can I make my menu with that MichaelChesapeake wrote: Here is more specifically what I am trying to make: A rather simple windows Menu, that will essentially be a gui with buttons to call up other applications, and various other message ...Show All
Visual Studio using Builtin C# editor
I'm creating my own designer for standard .cs files I've checked the XMLDesigner example, wich does exactly the same thing I want. Only deh xmldesigner works with XML files, i wanne use CS files. I tried to change some things in the XMLDesigner to get it to work with CS files but ... - if I change the extension from 'addin' to 'etc' (my extension) the 'View Code' and 'View Designer' menu items are no longer visible. If I hit 'Open' on my '.etc' file, it opens the XMLDesigner, so that link is stil correct !! - the XMLDesigner opens the default XML editor when using 'View Code' How can I open de default C# editor instead Kind Regards Frank ...Show All
.NET Development Cancelling an OdbcCommand in a backgroundworker
Hi, I'm trying to make OdbcCommands running in the background interruptible from a UI button. According to the documentation the OdbcCommand.Cancel() method does just that but the problem is how to invoke it, since it can only be called from the thread the command is running on and that by definition this thread is busy running the command. I tried outside a backgroundworker, using the example code supplied by MS : public void CreateMyOdbcCommand(string mySelectQuery, string myConnectionString) { OdbcConnection myConnection = new OdbcConnection(myConnectionString); OdbcCommand myCommand = new OdbcCommand(mySelectQuery, myConnec ...Show All
.NET Development Make Groups of Email Addresses
Hello, all. I am developing a module inwhich I have to send emails to all the subscribers on click in Asp.net. I have a table in Sql Server 2000,by the name of subscribers where a column EmailAddresses contains the email addresses of all the subscribers. What I want is to create a group of 100 users (out of may be 1000) with their email addresses and send emial to all the users in each group. Let say, I have 1000 users. Then 10 groups should be created.When I click on the send button, I want the all 10 groups are sent email to one by one. In this way I can be able to send email to all the 1000 users but in groups. Anyone please help me. ...Show All
Visual Studio Team System Convert from ClearCase to VSTS?
Hi, Will there be any Clearcase - VSTS importer/converter in the release of Team Foundation server I've checked earlier threads and found this ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=119343&SiteID=1 ), but I want to know if there are any later news about this We don't have anything else to add publicly right now. I think I can safely say that we won't have ClearCase conversion available when we release TFS however, it remains a priority for us. Brian ...Show All
Visual Studio Team System Add Users to Global Group AND/OR Porject level groups CAN NOT find DOMAIN outside build server
Add Users to Global Group AND/OR Project level groups CAN NOT find DOMAIN outside build server ---------------------------------------------------------------------------------------------------------------- Per Pete Sheill Alert of Wednesday, February 22, 2006 4:18 PM - I am advised to use the Team Studio GUI interface to add users to appropriate projects/groups for Build.Notification. I search for the applicable MSFT web page about Adding users to TFS project groups: I find this link: http://msdn2.microsoft.com/en-us/library/ms252526.aspx I follow these very detailed steps and find that I can successfully ADD my userid in th ...Show All
Visual Basic Icons in Toolbox out to Lunch
I don't know if this has been posted (I looked through a few pages and coudn't see any mention of it). Has anyone else ran into where the icons in the toolbox for: BackgroundWorker BindingNavigator BindingSource Button CheckBox are all represented by the same icon - a checkbox icon Is there a way to customize these if this is a 'feature' ............ also, is there a way to stop losing all the items on your form when Vbasic repaints the screen after editting something in the menus Yes this is happening to me too - in fact lots of the icons have been replaced, I can't say ...Show All
Visual Studio Express Editions C++ NO OUTPUT....??
I have started a file practice.cpp under an empty project. I just wanted to test and see if i could make my first program and display the words "hello world" to the screen here is what i wrote #include<iostream> using namespace std; int main() { cout<<"Hello World"<<endl; return 0; } now what happens is that it builds correct and when i hit F5 to run the program i get the error "UNABLE to start program C:\practice.exe the system cannot find the file specified" can anyone help Hi! Are you sure there was no build e ...Show All
Visual C# Confused about Generic Collections.
I hope somebody can help me to understand and clarify few doubts that I have . Obviously i have read about generics and I am trying to understand the limitation of the collections that come out of the box. Example of most common Collection i use BindingList<t> Collection<t> Dictionary<k,v> etc etc When should I start Inheriting from those and start adding stuff Is the for each "getEnumerator" c# already implemented and I dont have to do anything in my collection to enable for Each Or Should I inherit from a particular collection EG Collection and add the enumerator interface.If so can somebody show me how So that ...Show All
Visual C++ Question/problem regarding to templates in C++
<chen_k@discussions.microsoft.com> wrote in message news:ec3f6398-4924-45d1-bef9-a371e8ab7911@discussions.microsoft.com > I wrote a template class that represents objects list. This is its > header: > template< class T, char* filename > > class obj_list > { [snip] > }; > When I want to create an object of the type of this class, by writing > this line: > obj_list<user_info,"user_list.dat"> users > I get this error message: > c:\my documents\tel_op3\tel_op3\info_dlg.h(19) : error C2964: invalid > expression as template parameter For ...Show All
Visual Studio 2008 (Pre-release) Data-binding to a radio button group
Since RadioButtonList is now obsolete in the CTP release, what is the recommended method for data-binding to a group of radio-buttons I don't want to data-bind each individual radio button. A radio button list is now achieved by styling a single-select ListBox control such that each ListBoxItem is a RadioButton. An example can be found in the ExpenseIt Demo in the WinFX SDK. Using this new approach, you would bind to the ListBox. Cheers, -Jonathan ...Show All
Visual Studio Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v80.en' is invalid
I have installed a RC version of VS Team Suite along with full MSDN installation. After completing installation, I'v got " Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v80.en' is invalid " error when I have tried to access it by doing "Start" -> "All Programs" -> "Microsoft Developer Network" -> "MSDN Library for Visual Studio 2005" When I accessed it from VS 2005, it only have SQL help available. I have tried to reinstall it several time but no luck. Any help would be appreciated. Eric I have the same problem, except tha ...Show All
SQL Server Custom source adapter UI
I am currently writing a custom source adapter that extracts data from a JD Edwards OneWorld system. In the custom user interface of the source component I need to allow the user to set a query (a custom property), and then refresh a list of output columns that will be extracted based upon that query (similar to the list shown in the advanced editor). My question is, can I apply the custom property change to the component and build my output column list without closing and restarting my custom UI form I understand that the IDTSComponentUI interface being implemented allows for transactional editing of the component, in that the changes t ...Show All
Visual C# Best practice for exceptions thrown in BackgroundWorker?
BackgroundWorker can pass back any error that occured during async as a property of the RunworkerCompletedEventArgs, .Error I'm not positive, but I don't believe this worked well until the final release version of the 2.0 framework. Regardless, If I throw an exception myself during async the debugger will stop and tell me that I have an unhandled exception--- F5 to continue and the method that deals with the callback takes care of the exception passed to it with RunworkerCompletedEventArgs. Since this works as it should in release builds, is there a way programatically or otherwise to prevent the debugger from nagging you that an ex ...Show All
