Fire3.san's Q&A profile
Windows Forms Arrow Keys on a User Control in .Net 2.0
If I have a form and want to trap keyss, I can use the KeyDown event to trap and detect which keys are used. This includes the arrow keys. However when I want to do the same with a UserControl placed on the form, all keys are detected except the arrow keys. 1.Why do the arrow keys not generate the even on a UserControl 2 Is there a way to make arrow keys generate an a KeyDown or KeyPress event on a UserControl 3. If not, what event if any is generated by the arrow keys on a USerControl Thanks Steve Hmm, that's pretty strange and shouldn't happen. Post your code if you want me to take a stab at it. Note that the burden is on you to make it obvious to the user that the control has ...Show All
Visual C++ hiding LNK warnings
Basically, I want to get rid off all the LNK warning For ex, LNK4099, or LNK4204, or any other one. I am linking my debug lib with a third party release lib. That's why I am getting those. Is there some kind of "pragma" for the linking step to hide warnings There was the undocumented #pragma comment(linker, "/ignore:4099") but it does not work anymore on Visual Studio 7.1. I is annoying to look at hundreds of these warnings rolling down on my screen. Thank you. If I add /ignore:4099 to the "additional options" of project properties->linker->command line, I still get the warnings LNK4099 I am using: Microsoft Visual C++ .NET MS Development Environment 2003 Version ...Show All
Visual FoxPro booking system
hi all, recently i developed booking system. i had encountered a prob my customer have 3 resorts. so after tourist confirmed stay at they resort they will use my booking system to assign to particulars resort. 1) how do i know the resort have vacant room or not 2) i wan make a combobox down-arrow button when click it another windows tat have grid box to select. and i wan tis data will be differentiate by resort code. i rili no idea at this part. Thanks for advice. thanks for your reply. now i design and planning the database. 1) ask customer do have exisiting resort management program or not ... maybe can use they data to read-in into my program to updated room vacant. 2) i have a resort management ...Show All
Windows Forms windows start up form
Hi Folks, Got a bit of a problem here. I have been asked to write a program that will pop up a window as soon as the user logs into their windows account. This window will be a terms & conditions window and the user will either accept or disagree the terms. Depending on their response the user will then ber granted or denied access. Is this possible Cheers Well, I'm not so sure this can be done effectively... Obviously you can create the application, configure it to start with the startup items, and if they decline, use System.Diagnostics.Process.Start("Shutdown.exe", "-l") to force a logoff, but this is all kinda a kludge... A savvy user could find ways around it.. ...Show All
Software Development for Windows Vista HKCR registry issue
Our apps have been using HCKR for some common info (I know, bad dog). Does vista have a registry equivalent of 'CSIDL_COMMON_APPDATA' where we can put the common application info. This info must be accessible by all user priviledge levels for both read and write Thanks, David Is there a way to recover HKCR in case an application corrupts HKCR during installation/uninstallation. Does windows store registry in a temporary location where information can be recovered from. ...Show All
Visual Studio Can the journal file be recreated?
Someone accidentally wrote over our journal file and we don't have a back up. Can it be recreated from SourceSafe Not really. You can get similar information from the History and History Report features but we don't have a tool to automatically reconstruct journal files. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. RenderTarget2D and DeviceReset
I'm using a RenderTarget2D to dynamically create a background for my game. In the documentation I see that a RenderTarget2D must be recreated when the device is reset (a GraphicsDeviceManager.DeviceReset event). But how do I recreate it If I run the code that draws (for example) random stars on my background, they will not be in the same positions. I don't want to keep a list of all the starts I drew. How can I keep a fast backup of the RenderTarget2D that I can use to recreate it after a device reset I'd rather use some kind of ResourceManagementMode.Automatic or ResourcePool.Managed, but I don't see how to set that for a RenderTarget2D. RenderTarget2D has a ResourceManagementMode property, but it's read only. ...Show All
Windows Forms How to create shortcut through command prompt?
Hi i am using windows XP professional version. I want to write a batch file that creates a shortcut in Desktop. I don't know the exe or the command to create shortcut. Can you help me Have a look at following, it should help you http://www.robvanderwoude.com/index.html ...Show All
Visual C++ Making the compiled source code run in the background
Hello everyone, Can I request some assistance here regarding Visual C++ I am new to the language. Is there any way I can turn off the cmd window when my compiled source code is running The source code is compiled as an .exe file. The program doesnt require any input or output any result to the user and so, the command window is unneccessary. The function of the compiled source code is to load an image file to my hardware and the changes to the image file is controlled by Labview. So, Labview will call the compiled .exe program and the program will just run without any input from the user. As I need to do many iterations, the command window is always popping out without providing any information. So I am wondering if there is any way I can ...Show All
SQL Server Sometime Fail Render to PDF
Hi all. My name's Daniele and I'm writing from Italy. So please forgive me for my English :) My problem is: I make a Call to an URL on my Report Server an I invoke one report. The rendering of my Report is in PDF format and I specified it in my URL: My URL 'Url = " http://urano/Reportserver %2fApplicativi+Universo+Reports%2fArea+Test%2fIntesa+Vita+S.p.a.%2fLiq.+Sinistri+-+Dati+generali%2fSchedaLiquidativa " 'Url = Url + "&n_pratica=" + CStr(CAttivita.Pratica) 'Url = Url + "&rs%3aCommand=Render&rs%3AFormat=PDF" Sometime happen that the Report Server answer me with a classical window who ask me to open\save the file, but the file hasn't the extension. Example: my file usually ...Show All
SQL Server Best Practices??
Hi, I am installing SQL 2005 in a cluster env and there is a section which asks you about the domina\group for each of the accounts. I am going to have 3 virtual server so does it mean I should have 3*3 structure. Can anyone tell me what exactly the group does and can there be 3 groups with 9 accounts. What is the best practices Thanks I would just create one Windows Group with three different user accounts, then use one account for all of the services on each instance. ...Show All
Smart Device Development Using XML instead of SQL Mobile 2005?
Hi, I am writing a simple handheld device application in C# that requires a few tables of data, where the storage requirements won't be high. Is it possible to use XML files as data sources instead of a "regular" database in SQL Mobile 2005 Can I perform the usual INSERT, UPDATE, DELETE operations on XML files through DataSet, DataAdapter, etc. I have been searching for information on MSDN but it is scattered all over the place, so it is difficult to learn. Thanks Just use DataSet as usual and save/load data to/from XML using DataSet.WriteXml() and DataSet.ReadXml(). There's no need in DataAdapter as it's a bridge between DataSet and some database which you don't have. There are no INSERT, ...Show All
SQL Server Import Flat Files
hi all i using SSIS to import flat files and i need support how can i import flat file from folder inculed many files and when finish start to next and next ..... if can i select from flat files to add condition like Select * from.....where ...... thanks Hosam Abd EL-Wahab wrote: hi all i using SSIS to import flat files and i need support how can i import flat file from folder inculed many files and when finish start to next and next ..... if can i select from flat files to add condition like Select * from.....where ...... thanks You can run a foreach loop in your control flow to loop over every file... No, you can't do a select * from flatfile where.... However ...Show All
.NET Development [newbie] Export of a DataSet in a XMLDataDocument
Hi, I export a DataSet to an XMLDataDocument to use it in CrystalReport but all types of columns of all DataTables are Strings type... Is there a way to define the columns' type in this XML document or to export the DataSet to an other file format that accept columns' type Thanks in advance ...Show All
Visual Studio Team System Team Foundation WorkGroup Vs Team Foundation
Which are the diferences betwen Team Foundation WorkGroup and Team Foundation Server Actually, the "Workgroup Edition" has nothing to do with Active Directory versus Workgroup networks. It's merely an indication of a the smaller number of users who can connect. Cheers, Adam ...Show All
