Eric Harmon's Q&A profile
Visual C++ Combo Box Question
hi I'm making my first 'simple' application to get me started. its the basic windows Form with just a combo box containg just 3 options ' a or b or c ' ok it works fine but how can i make it remember my last selection i mean when i run the application again it shows nothing and you have to select the option all over again. i was wondering that myself and decided to uninstall the 2003 version and download the free version of Ms Visual Studio .NET 2005 (until i can but the pro version) maybe when thats installed i will try again. Programming can be difficult even to the professionals but being a beginner is a constant uphill task with everything i enter resulting in errors so hopefully getting a newer version of Ms Visual Studio .NET ...Show All
Windows Forms Help me out :Clickonce update Error
Hi!!!! I had used the System.Deployment APIs to trigger updates for My your application (ie)ChecFor Update Control inside which i had written the code to Check update which runs as a thread in the background...but i had disabled the chekfor update properties in the clickonce since i am using the System.Deployment APIs .... But when i publish and run the application i get an Error saying "Application cannot be updated programmatically unless the deployment manifest includes the <deploymentProvider> element ". I would also want the user to choose whether to remind him for updates after one day or one week .... This is there in the clickonce update properties but i want the user to be prompted with the message box asking him t ...Show All
Visual Studio Express Editions TaskbarNotifier from backgroundworker
With ref to John O'Bryne's great code to run a msn-like taskbar notifier http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp Please can someone help walk me through how to use this taskbarnotifer in a C# project and run a message "Your job is done" from a backgroundworker's RunWorkerCompleted event Basically I'd like to use the taskbarnotifier instead of messagebox.show Thanks for any help. This is a really neat method. Thanks. Is there any way to have a sliding notifier with a progressbar to show, say, files are being copied async and when its over - ie: progress of backgroundworker ...Show All
SQL Server SSIS OLE DB Command Error
I have written a stored procedure that accepts 33 parameters. I am trying to execute the stored procedure from a SSIS OLE DB Command task. The code I am putting into the "SqlCommand" property is "Exec dbo.CO_PROD_UPDATE , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Another thing I noticed is that I can execute a stored procedure from the SSIS OLE DB Command task if the proc does NOT take any parameters... Interesting situation... Craig ...Show All
Visual C++ first steps
Hi Im just starting out to learn VC++, I have previous expericience of c, Java and SmallTalk. I have the VC++ 2005 compiler and the book 'MicrosoftR Visual C++R .NET Step by Step--Version 2003, the first exercise is 'Hello World' to give you the idea...which compiles and runs ok, My question is will I run into lots of problems working through this book...or maybe translating the code will aid my learning I realise its not the best way to start off, but my budget wont stretch to buying another book, Some feedback would be appreciated learning programming language is tedious. two required components on a software developers workstation are os and ide. parser and compiler from latest visual c++ ...Show All
Visual Studio Team System Application Diagram problem with WSE 3.0
I have a solution that contains an ASP.NET web service that uses WSE 3.0. It also uses a custom UsernameTokenManager. The application compiles and runs properly. However, when I attempt to open an Application Diagram, Visual Studio locks the diagram and displays the following error: Application definition MyWebService is locked because there is an error in C:\MySolution\MyWebService.web.config. WSE040: Type MyProject.MyUsernameTokenManager, MyProject could not be loaded. Please check the configuration file. The configuration file is correct, since the application works fine, and has worked fine for a long time. The web.config lines in question are: < microsoft.web.services3 > &l ...Show All
Smart Device Development Streaming with DirectShow -> Class not registered
Hi. I have the following code: IAMMultiMediaStream *pAMStream; HRESULT hr = CoCreateInstance(CLSID_AMDirectDrawStream, NULL, CLSCTX_INPROC_SERVER, IID_IAMMultiMediaStream, (void **)&pAMStream); The "hr" always returns "Class not registered". I'm building to Pocket PC 2005. Anyone can tell me what is wrong I took the code from the MSDN samples. Thanks This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati .. ...Show All
Windows Forms How to add ContextMenuStrip to menu item?
Hi! How can I add a ContextMenuStrip to a menu item Matt I dont think you can do it this way, unless you make your own user control or custom control of a menustrip and make it be able to have more then one menu open... ... ... Hope this helps :) ...Show All
Microsoft ISV Community Center Forums personalized command bar disappears when minimizing excel
This is my first message in this forum, so please be patient. I have programmed a makro for an excel workbook. one part of this makro creates a command bar. when the excel workbook is started i make all the regular command bars disappear, only mine is left. Works wonderful. Well, i have put a button into my command bar to minimize the application. However, when i restore the workbook again from the windows taskbar, my commandbar is vanished, and the normal command bars (like standard and format and also the formula bar) are suddenly there. The command bar is still there but not enabled/visible. The problem exists on many computers and also on differnet excel versions i tried (97, 2000, xp) I do not know if that is a bug or not. Now is it p ...Show All
Visual Basic how to use the events of runtime define control
hi i m using code in my vb.net programe which is listed below for i=0 to 10 dim flt as new label me.control.add(flt) flt.visible=true: flt.left=128*i :flt.top=22*i next i want to use the mouseclick event of the all 10 label controls. any body know the code please give me. thanks regard Shahzad thanks for your kind to give me answer. But i like to handle all run time created label control mouse click event seperatly. How it was possible. please give me the code. regard Shahzad ...Show All
.NET Development HTTPListener Speed 25kB/s?
Hi, I am using httplistener with in a standard way (took the source code from one of the examples on this website), but no matter what I do I can download from it only at 25kB/s when not on localhost. I tried IE, firefox, flashget ad nothing helps. I assume there must be some variable to set like with the max connections on the client side with the service point manager. Can you please point me in some right direction. Thanks This has nothing to do with the max number of connections, First you need to make sure that there is no bandwidth throttling going on. Unlikely - but make sure DO you have enough bandwith Then you need to see how you are really transferring the data. Are you sending the data in small chunks Do you get better ...Show All
.NET Development Problems connecting to sybase from serviced component
Hi, folks: I'm new in this forum. I'm running an application in a Sybase DB. I have the following code: using System; using System.Configuration; using System.Data; using System.Data.OleDb; using System.Reflection; using System.EnterpriseServices; using System.Runtime.InteropServices; using System.Runtime.Serialization; [assembly: ApplicationName ( "DistributedTransaction" ) ] [assembly: ApplicationActivation ( ActivationOption.Library ) ] namespace TestEnterpriseServices { [ Transaction ( TransactionOption.Required ) ] public class DistributedTransactionSybase : ServicedComponent { public DistributedTransactionSybase () { } [ System.EnterpriseServices.AutoComplete() ] public void NewItem () { OleDbConnectio ...Show All
Smart Device Development Smart Device - FileNotFound Exception
Hi, I am still quite new to C# and especially to smart devices. I have created a simple game and am trying to get it to my device. The game runs just fine when I run the .exe file on my PC as long as my .bmp images are in the same folder. However, when I try to run the emulator or try to run the program once I have moved it onto my device I get a FileNotFoundError if I try to access any of my images. My actually code is quite lengthy. Here is an example line of code that causes the problem: private void pictureBox1_Click( object sender, EventArgs e) { pictureBox1.Image = new Bitmap ( "Bitmap1.bmp" ); } Can somebody let me know if there is a certain way that I need to configure my project so it knows where t ...Show All
Visual C# Generics in C# - new() cnstraint
Hello... I am trying to play a bit with the generics feature of the .Net 2.0 Framework and I ran into this "Problem" I try to create a Singelton Base-Class, which will create an instance of itself if the instance is accessed. Since I want to create an Instance of <T> inside my generic Base, I need to supply a new() contraint to <T>. This "forces" me to create a public constructor, since that what new() means. I think the scope of new should not be "public" but "protected". Protected would allow me to hide the constructor from the outside world, but it would still allow the creation of the class inside the baseclass. Since I am not able to do this, a direct creation of my Bas ...Show All
Visual Basic hopefully a little problem with listbox/getfiles
dear ladys and gentlemen, i've got a maybe little problem with the path in an listbox, when i use this code: For Each foundfile As String In My .Computer.FileSystem.GetFiles( _ ( "c:\nuproject\txtfiles\komm" ), _ FileIO.SearchOption.SearchTopLevelOnly, "*.txt" ) ListBox1.Items.Add(foundfile) TextBox1.Text = "" Timer1.Enabled = True Next then i got a list of all txt-files in this directory. so far so good, but i don't want the path be in there. so c:\nuproject\txtfiles\komm\ should be hidden! thanks for your solution! ListBox1.Items.Add( My .Computer.FileSystem.GetName(foundfile)) ...Show All
