SucceedEgg's Q&A profile
Visual C# Creating Taskbar icon
Hi. Your help is very much appreciated. I am writing Win App using C#, framework version 1.1. My app starts with taskbar icon. By clicking theicon, the main window will show. The main window SHOULD NOT be available unless the icon is clicked. My problem: the main window is ALWAYS available. I tried to hide it, but by using Alt+Tab, the user can still see it. (In my code I used the .NET's notifyIcon component). Any ideas Thanks Roy Thanks for the reply. I tried to do what you suggested, but the hidden form is still visible through Alt+Tab ...Show All
Visual Studio Express Editions allow drag drop on a bmp on form
I set an image on the form (no picturebox or panel) and can draw on it with mouse. I wanted to be able to drag and drop an arrow onto the bmp also. The source is on the form and this seems to be ok. but setting the bmp as the drop target is escaping me. I cant seem to allow it to be a drop target. So am trying to create a target (uxtarget) and assig that to the bmp. this isnt working either. have tried multiple ways and cants eem get it to work. here is the portion ealing with target. Should I just instead use a panel or picturebox. I thought just using the form would be easier. Didnt realise the trouble assigning a bmp aws a drop target. Public Class Form1 Private WithEvents uxSource As ...Show All
SQL Server simple question creating duplicates
Hi, I'm trying to create duplicates in a copy of a table in the same database by inserting rows from the original table. Seems easy but I can't get any sql to work. help I tried the code above and it failed, saying a specific column did not allow nulls. Now I have a copy of Northwind with all of the data. It exists in Northwind also. I don't want to do anything to the original so I tried this code. It seems like such a simple thing to do. I want 16 rows in Categories in the NorthwindCopy database. Right now I have 8 rows and I want duplicates of those 8 rows. I tried this code as I don't want to rollback: use northwindCopy insert categories(CategoryName, Description, Picture) SELECT CategoryName, ...Show All
Visual C++ CTabCtrl drawing problem with XP Style
VC++ 2005 MFC. I'm using a CTabCtrl. The control works just fine if I do not include a manifest for XP Style. If I include a manifest for XP Style, the CTabCtrl stops drawing on most of it's client area. By stop drawing on most of the client area, I mean it draws about 4 pixels from the top and left correctly and everything else is not drawn. The controls on top of the CTabCtrl are drawn properly, it's the background and bottom/right borders that do not draw. By not drawing I mean it just keeps whatever was on the screen there before. If I drag a window across it, I see the remanents of the dragged window. It's like the CTabCtrl just decided to clip out everthing below & right of (4,4) of it's client area. Another way to visua ...Show All
Smart Device Development Device emulator debugging using VS2005 with PB for CE 6.0
Hello All, I created a OS Design with "Device Emulator: ARMV4I". Could anyone please tell me Settings/Configurations to be done in VS2005 (using Target->Connectivity Options... OR using Device Emulator Manager)to debug using the emulator Thanks in advance -Srini You need to select Download to "Device Emulator" and Transport to "Device Emulator" and it should be working fine. Let me know if you face any issues. -Thanks, Mohit ...Show All
SQL Server Time zone issue
I need to take dates from a database and convert them based to the end user's time zone. So, the timestamp in the database will be stored in UTC. Today, a timestamp of 2006/8/25 16:32:00 central time is entered, which would be 2006-01-01 9:32:00 AM pacific time, 2006-01-01 12:32:00 PM eastern time. Currently, if an end user in California pulls up this report at 10 AM on 8/25/2006, the report will show that the date entered occured at 8/25/2005 @ 11:32:00 AM. However, it should show the California user that the date entered occurred 8/25/2005 @ 9:32:00 AM. If an end user in Massachusetts pulled up the report, it would show that the date entered occurred on 8/25/2006 @ 12:32:00 PM. How can this time zone issue be handled in report ...Show All
SQL Server SP2 Slows Down Time Intelligence
Can somebody else verify that performance decreases in SP2 where time intelligence is concerned. Below is my simple repro on AdventureWorks. I already have an open question in a prior thread to ask why [Year to Date] is so much slower than [Current Date] where fiscal semester [2004][1] is concerned. [Current Date] runs in 2 seconds after clearing the cube cache. My question for this thread is why did my [Year to Date] query go from 1 minute in SP1 to 2 minutes in SP2 Does anyone know how to get the 2 second execution that I would expect from a [Year to Date] query Step 3 below runs in 1 or 2 minutes depending on if you have SP1 or SP2 Step 4 runs in 2 seconds 1. Create Time Intelligence Select Ti ...Show All
Windows Forms Closing all forms but one
This can be a very simple question, but I can see the answer I have an Application (No Mdi) with one Main window that opens several non modal windows. When I hide the main windows I want to close every other window but Main. I already tried with foreach ( Form frm in Application.OpenForms ){ if (frm.Name != "frmMain"){ frm.Close(); } } But this loop can’t complete well because the form OpenCollection is modified. Any Sug thanks kymaita: This takes two loops: On the inner loop,as soon as you close a form, restart the loop. Set a flag indicating whether you've closed or not, and get out of the outer loop when the flag isn't set. If you kn ...Show All
Visual Studio 2008 (Pre-release) Using Entity Model in a DLL
I am building a library (dll) which calls my entity model for data requirements. The problem is where to put the configration file. There are two options: 1. Either put the config information in the dll.config file 2. Or Put it in the calling application (App.config) In both casses it is giving a exception. When I put the config information in the dll.config file it is giving the following exception: System.ArgumentException was unhandled Message="The named connection HelloWorldDBConnectionString is either not found in the configuration, it's not intended to be used with the Mapping Provider, or it's invalid.\r\nParameter name: connectionString" Source="System.Data.Entity" ParamName="connectionStr ...Show All
Visual Studio Express Editions rtf box word and character counts
I am looking into learning how to do word and or character counts in rtf box. found this http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTO2005WordOM.asp on using word object model to try it. Anyone have any references otherwise web search hasnt come up with anything educational for me at all. Is using word object the best or only approach Was going try do a search for spaces between word sort of thing. thx, i could not get that approach to work. Finally giving up on this new fangeled stuff, I did it using old vb, tinkered a bit and got that to work in VS 2005. ...Show All
.NET Development WebClient.DownloadFileAsync method
Hi, I wrote a program that need to download on demend a file from a given url. I built a download form that gets the url and the file path to save and it shows a progress bar. The path and filename are given to the form on the c'tor and the download itself starts when a method is being called. Here is the code: (It is written in VS2005 beta 2) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.IO; using System.Diagnostics; namespace TechnoTask.View { public partial class DownloadWin : Form { private String url; ...Show All
Windows Forms "Windows Handle already exists." problem
Hi, I have an application in which I open a form from another form as a dialog. There are some buttons on the opened form one of which closes the dialog form. If i open the dialog form and then close it by pressing the close button, an exception is raised with the message " Windows Handle already exists." Can any body tell my why this exception is raised and what is the work around Thanks in advance, Wasif Ehsan. ...Show All
Smart Device Development [Vista] + Device Emulator + Mobile Device Center
Hello, I have just migrated to Windows Vista. Everything is working (for now :-) ), I only have some problems with cradling VS 2005 Pocket PC Device Emulator. (to be more specific, i would like to share Internet between my computer and my Virtual Pocket PC.) I learned, that Active Sync was changed with Windows Mobile Device Center and that the WMDC should install via Windows Update (i run everything and checked in control panel, but WMDC was not there). Next information I received was the following one: Your Windows Mobile device must be connected to the computer for Windows Update to be able to detect the driver update and install the update. The problem is, that I don't have a physical device, I am o ...Show All
Visual C++ error C2065: 'PCACTCTXW' : undeclared identifier
I did convert an application from vs6 to vs8 and then i got this error (seems a little like the DWORD_PTR thing...) Where could be the problem ------ Build started: Project: HydrotelKernel, Configuration: Debug Win32 ------ Compiling... [ ... ] // i'm skipping this part of the building... way too long AdoDatabase.cpp WINVER not defined. Defaulting to 0x0502 (Windows Server 2003) AdoRecordset.cpp d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2065: 'PCACTCTXW' : undeclared identifier d:\program files\microsoft visual studio 8\vc\atlmfc\include\afxcomctl32.h(32) : error C2146: syntax error : missing ')' before identifier 'pActCtx' d:\program files\microsoft visual studio 8\vc\atlmfc\include\ ...Show All
Visual Basic How To Generate HTML Document from XML Comment in VB (2005) ?
Hello Friends ! I am working with windows Application. Can any one tell me : How To Generate HTML Document from XML Comment in VB (2005) I am able to generate only XML file. I think you are looking for SandCastle ...Show All
