zeGouky's Q&A profile
Windows Forms Adding an image that displays when ALT+TAB is pressed
Hi, I have made a setup in VS2005 that installs a simple windows application. When multiple applications are running on my system and I switch between them by pressing ALT+TAB, then the icon of my application does not appear along with the icons of other applications. Rather a blank image is shown. Can you tell me how can i add such an image/icon in my setup in C# project setup. Regards, Wasif Ehsan. ...Show All
Visual C++ Catching Unhandled Managed Exceptions from MFC
Is there any reasonable way to get CWinApp to catch .NET managed exceptions in the Windows message loop using its standard facility ( ProcessWndProcException ) at the moment they seem to throw all the way out of the appication without hitting that handler. Andrew Raymond Mitchell1 The documentation of AppDomain.UnhandledException Event says there is a change in .Net 2.0 that does not handle the Exception but provide the chance to save your data, and lists some methods to preempty the exception, such as handling the Application.ThreadException Event. But It seems both events are not fired for an MFC application. Perhaps you need to host your MFC application in a managed application, as described in http://www.codeproject.com/manage ...Show All
Visual C++ Is there any line combo box in VS 2005 or color picker???
I wanna do something like in Excel Char wizard, User could choose line style and line weight, marker style and color thank you very much, i really need to know as soon as possible. Seems these type of questions are outside the scope of this forum Please check with some developer website like codeguru.com, codeproject.com etc... ...Show All
Microsoft ISV Community Center Forums Customized Scheduler in Outlook 2003 Calendar
I'm not quite sure if this is a VBA question, but I didn't see any other forum that was more appropriate to ask. Here is my scenario. I have a client who works for a college. She would like to set up her Outlook calendar by 15 week terms, which they have trimesters. In each term, there are many tasks, all of which have to be completed on/by certain weeks in each term, or sometimes by specific term-related days. How would I go about doing this in Outlook, and is this a VBA thing, or is there an option in Outlook to do this If I am completely in the wrong forum to ask something like this, please refer me to a more appropriate forum. thank you, - Alex ...Show All
Visual C++ Windows forms help
Hello everybody i wonder if you can fill a hole in my understanding of programming windows. I am trying to develop a very basic windows forms application. I have a class called class1 and another called game. It is my understanding that the autogenerated form1.h is also a class. Maybe this is because i don't understand. Anyway from game i can declare a pointer of type class1 and access class1's data members, functions etc from a function inside game. I can also declare a pointer of type form1. However when i come to access form1's data members using this pointer it won't let me alter them it just says: error C2227: left of '->richtextbox1' must point to class/struct/union/generic typ Here is the code: //game.h #pragma once cla ...Show All
Windows Forms I want open a specfic powerpoint doc from vb.net
Ok I know how to open another Process.Start("MyOtherApp.exe") I want to have the user click a button and open the following c:\\myapp\mypowerpoint.ppt Thanks that worked great, i could not find any info on this in the docmentation or (10) books I have purchased 3 of which are MSPRESS ...Show All
Visual Studio Team System Question about 64 bit drivers
Hello, Currently i'm building a device driver for Windows 64-bit. So I installed the Device Driver Development Kit. To situate to problem I will explain what the goal of the driver is. I'm writing an WDM driver for an 1394 (firewire) device. The already exists an 32 bit driver for it. Before I'm going to build the driver for 64-bit I want to test the Plug and Play system with the sample driver given by the DDK. So i builded that driver in 64 bit mode, didn't changed anything to the files. Then i've token the original .inf file from the 32 bit driver. I've changed the inf file with NTamd64 names, so Windows x64 can open the inf file. Then I select the device wich I want to install. Windows copy's the test .sys file which I've build ...Show All
.NET Development Search for a Single Word in a String
Does anyone know a command to search a string for a single word or phrase in Visual Studio In Excel, I use the following VBA code: Cells.Find(What:=WordtoSearch, After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False, MatchByte:=False, SearchFormat:=False).Activate But I can't figure out how to search a Access database using Visual Studio. Any ideas Do you mean looking up a certain word or text in the Text editor... why dont you just do a find in the current document or maybe use CTRL + I to bring up the incremental search, this will highlight any text matching your input. hope this makes sense tribal ...Show All
Visual Studio Team System Hung merge possibly causing SQL error 2627
I'm working with Microsoft Visual Studio 2005 Team Explorer Service Pack 1 (KB918525) against Visual Studio Team Foundation Server Service Pack 1 (KB922996) using SQL Server 2005 Standard Service Pack 1. I started a merge from an integration to main line using the Team Explorer's Source Control Explorer GUI. I canceled this merge while still in the wizard. Now when attempting a similar merge (involving the same targets and workspace) from the command line or from the GUI, I receive a dialog with the following error. A database error occurred (SQL error 2627) ---> Violation of PRIMARY KEY constraint 'PK_tbl_PendingMerge'. Cannot insert duplication key in object 'dbo.tbl_PendingMerge'. Using the Team Explorer's Source Control Explorer GUI ...Show All
.NET Development ExecuteNonQuery asynchronously
Hello, Is there any way I can run ExecuteNonQuery asynchronously, such as initiate stored procedure call and return immediately. Thanks, Hi How does this work for ASP.NET I also need to execute a long-running stored procedure from a web page and have that web page return immediately (it's just executing a big DELETE and I have no need to display any results on the page). I can see that "BeginExecuteNonQuery" would be a great way to do this - but I am worried about if/how the database connection gets closed. Normally, you specify a callback method in the call to BeginExecuteNonQuery in which you close the connection. But does this work in ASP.NET Is it possible for the callback method to be executed long after the page r ...Show All
Visual Basic Memory usage - events
I recently answered a question at VBCity about a memory leakage with VB.Net: "I am creating a class with an Event, then I instantiate the class and dispose of it. VB seems to be wasting 16 bytes each time. " I did some research, and found something really interisting. A small VB.Net application to test this showed that the memory usage slowly increases over time. The object never gets collected. A C# test worked as expected (memory usage increases the 1st time an object is created, and then it stays the same). When I investigated the CLR code for this, I noticed why: C#'s ctor function only created the object, while VB's did the following: IL_0001: call instance void [mscorlib]System.Object::.ctor() IL ...Show All
Visual FoxPro Why the datas from the .dbf file (table) on the form are not displayed?
Hi all Need help very badly.. I purely have no idea where i go wrong. I'm trying to get the datas (such as CHEVSINSMZ 100,CHEVSINSMZ 100, CHEVSINSMZ 101, CHEVSINSMZ 102, etc) from the table (.dbf) display and then trim into "CHEVSINSMZ 100 & 101 & 102 itself. What i get the result on {.xdf_bl.value= OutPutSTring} of the form is (1)_________ when testing this form. Why cannot the datas be shown on the text field when searching for the value in the .dbf _-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-__-_-_-_ tnfjob is the name of the table. Jt_hblno is an attribute of the table (.dbf)in the form. It is like something that originally contains CHEVSINSMZ 100,CHEVSINSMZ 100, ...Show All
Windows Forms STA and threadpool problem
Hello, I have a Windows Form project which i tried to merge with a console project that uses Thread pool. After i did that i got a messege saying: "WaitAll for multiple handles on a STA thread is not supported." OMG someone please help me! this is an emergency beucase i must use the ThreadPool. anyone has an idea Can you provide any more information How did you merge a WinForm and console app What COM objects are you using What is the logic like in the TP code The error sounds like you are trying to access a COM object that is running in an STA and you block. In this case a deadlock situation would occur if no one other than the COM object releases the handles being wai ...Show All
.NET Development Process Access in Frame work 3.0
Hi, Please help me regarding i am display image file from my local path in Image control. after closing the form i want to delete that image file from local hard disk. but it is giving the error. "The process cannot access the file 'c:\\11.gif' because it is being using by another process" even i am using Here "imgServiceUser" is Image control name on my form. imgServiceUser.Source = null ; imgServiceUser.ClearValue( Image .SourceProperty); can any one help how to end the process. Thank you very much. Vara GDI+ keeps a lock on the image file until you explicitly Dispose() the image object. Check my code in this thread for a work-around. ...Show All
Windows Live Developer Forums Windows Live Messenger Add-in
I have created a simple msn add-in. I compiled it with vb.net and a .dll was created. When I try to add it into msn this error occurs. The add-in MyFirst.dll can't be loaded. Make sure that the name of the add-in class matches the file name of the add-in assembly. I have changed all the names to MyFirst.dll but still I coulnd't do it. Can someone tell me which names I have to change to MyFirst.dll If you're using namespaces, make sure that you also include the name of the namespace. For example, if your add-in class is like this: Code Snippet namespace Sample { public class MyFirstAddin : IMessengerAddIn { // ... } } Then your Add-in dll should ...Show All
