Tareq Ismail's Q&A profile
Windows Forms Color control: like colorDialog but not as dialog, on form
Is it possible to have a color control that displays on a form that is similar to the color dialog Ideally with all web colours on. Does this exist or would i have to code it myself Hi, For your first post, I guess you have to code it yourself or please look of some third party color controls. To get the color object through color names use the function below: this .BackColor = Color .FromName( "red" ); Hope it helps! Thanks, JDee ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compatibility with Vista?
Does anyone know when it will be c ompatible with windows vista It installs but it gives me a bunch of errors while installing. So I'm guessing this is a Windows Vista issue Or maybe it's something else... Which version of Vista are you running I couldn't get it to work on my x64 version but apparently x86 is fine. A lot of apps on the x64 version don't like (like Windows Live Messenger) ...Show All
Visual Studio Sandcastle and <see cref="member"/>
Hello All, I am having trouble using the XML comment <see cref="member"/> when using the Sandcastle CTP. When I compile to an .HXS file, I seem unable to reference anything apart from members of my own code. Taking the following code as an example, <see cref=”TestAppException”/> works fine in the compiled help file, but a reference to a .NET member like System.Exception using cref=”T:System.Exception”/> does not. The link to System.Exception is in bold type, but does not take me anywhere. Does anyone know why these types of references do not work /// <summary> /// Represents errors that occur during my test application execution. /// </summary> /// <remarks> /// This class ...Show All
SQL Server Import Flat file to sql server programmatically
Hi, i want to import flat file data to sql server. i created a package in vb.net. if the import table column is identity means i got Failure inserting into the read-only column "ID". Column metadata validation failed. "component "OLE DB Destination" (10)" failed validation and returned validation status "VS_ISBROKEN". One or more component failed validation. There were errors during task validation. error. how can i rectify this error or how can i ignore the identity column in coding. thanks & regards, sivani Hi, i have created a package successfully to import flat file. i got some error while i am importing fixedwidth textfiles. Th ...Show All
Visual Studio Visual Studio 2005 SP1 final list of fixes
Now that the Visual Studio 2005 SP1 is out, where can I read upon what wasa fixed More info can be found in de following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1040093&SiteID=1 ...Show All
Smart Device Development Force GPRS disconnection ?
As part of the application I am developping I sometimes have to force the GPRS connection to be shut down. For security reasons, the GPRS gateway of our wireless carrier voluntarily stops to enrich HTTP request with device MSISDN after a given period of GPRS traffic inactivity (GPRS connection being opened). Without this enrichment, our server can't identify the client and rejects its requests. A solution we found out was to explicitly close the connection and re-opens a new one if it has not had any HTTP activity for more than 'x' minutes, thus creates a new session with the gateway. So, we call ::RasHangUp() on every opened RAS connection and let the ConnMgr try to reconnect. (I know this is a rather extreme solution). The problem is tha ...Show All
Windows Forms problem installing .NET Framework
I have problem installing .Net Framework with installscript(use Installshield). my code is: svMSI_INSTALL_NAME = "WindowsInstaller-KB893803-v2-x86.exe"; szWaitMsg = "Configuring Windows Installer."; szMSI_FULL_INSTALL_PATH = INSTALLDIR ^ "distrib\\" ^ svMSI_INSTALL_NAME; LongPathToQuote(szMSI_FULL_INSTALL_PATH, TRUE); // DISPLAY WAIT LABEL SdShowMsg(szWaitMsg, TRUE); LaunchAppAndWait(szMSI_FULL_INSTALL_PATH, "/norestart /quiet", WAIT); // HIDE WAIT LABEL SdShowMsg(szWaitMsg, FALSE); svDotNetDir = WINDIR ^ "Microsoft.NET\\Framework\\v2.0.50727"; if (FindFile (svDotNetDir, "RegAsm.exe", svResult) < 0) then SdShowMsg("Installing .Net Framewo ...Show All
Windows Forms DataGrid
Dear all, I use DataGrid (NOT DataGridView) to bound to datasoure (Sql Server). and use column.format = "c2" to fomat column that present a price. but I don't know how to parse this column to save them back to data source Thanks you how are you binding the datagrid usually if you say use a DataAdapter to fill a dataset and bind the dataset to the datagrid and you update the values, the dataset will be updated automatically then finally to commit changes back to the database, you simply call the DataAdapter's Update method, giving it the dataset used which contains the records so it can execute the appropriate commands to perform the correct operations to update the database. ...Show All
Visual Studio Team System Access Denied to file when Get Latest Version
Hi We moved to Team System last week from Source Safe. We have a problem with Get Latest Version . The scenario is: 1. We execute 'Get Latest Version' . 2. Suddenly, we got an error message box with the message 'Access Denied to file xxxxxxx.... ' 3. After clicking on 'OK', the get latest version operation continues, and the problematic file that Access Denied to, was deleted from the local machine. 4. We must execute Get Specific Version (Force get) on the missing file to prevent build failure. Another info: 1. The problematic file is random. It can be either xxxxx.h , yyyyy.cpp or any type. 2. The problem is not consistent. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Orthographic UI
So...in OpenGL I would use glOrtho(0,1,1,0,0,1) before processing my UI draw calls to set up my screen to be: 0,0 . . 0,1 . . 1,0 . . 1,1 that way, I could tell a UI component to be at 0.1, and it would make it so at any aspect ratio, any resolution, that UI component would always draw 10% to the left of the side of the screen. I want to do something similar to the UI system I'm working on for XNA, but I'm not sure how to setup the XNA camera to switch to an Orthographic projection before I process my UI components using the sprite batch. Anybody know Yup, that's currently the way it is modeled. What I could really use though is help with the events. Currently the problem is the scalar value. I've manag ...Show All
Windows Live Developer Forums Calculating boundingbox
If I have the center and zoom-level of a tile, how do I calculate the extents of the tile In other words, what are the extents of a tile I know this changes because of the mercator-projection. The new tilesource spec returns a tileContext which only holds the three values mentioned above, which I think is far from enough to create a dynamic generated layer from a different datasource based on long/lat. Especially if you have t to perform on-the-fly reprojection to Mercator. Is it possible to extract the Mercator-coordinates, and translate the zoom-value to a tile-size based on these units Thanks for the link. I finally hacked it and ended up with this: http://showcase.sharpgis.net/ve . ...Show All
Visual Studio Express Editions Adding to listveiw on another form?
I am making an application which has a parent and several children. I have benn using VB6 for years but the higher object coding is getting the best of me. I have a listbox on "form1" form and would like to add to it from another form "form2". I want to add to it when some serial data comes in. I have made a public property on the "form1" to add the value tothe listbox but it does not work. Any help would be awsome.. Here is the property that i call from "form2" to add to the listbox. Public Property Listbx1Add() Get End Get Set ( ByVal value) ListBox1.Items.Add(value ) End Set End Property Well I guess there is something ...Show All
SQL Server Installing/Deploying Windows App with SQL Server 2005 CE
I am a little bit confused about making an installer/deployer. I have an application using SQL Server 2005 CE (I have just updated to the most recent version Jan 2007). It will run on a new desktop PC (windows XP) if I install the SQL CE runtime and then copy the .EXE and the .SDF database file. This is great but my client wants the whole thing to install as one operation. I thought click once could do this but it seems that is only for Pocket PC targets Can anyone point me to a method to make an appropriate installer please Pete I am using the following: SQLServerCE31-EN.msi - installer for SQL CE server runtime SSCE31VSTools-ENU.exe - installed over VS 2005 SP1. If you use something like Inno Setup y ...Show All
Visual Basic How to load a dll into a vb program
Hi, I need help, i'm a n00b and i don't know how to load a dll into my program. Using the Add Reference button i'll recive this error: A refence to ... could not be added this is not a valid assembly or COM component. Bla bla bla Someone tell me to install it into the gac directory using gacutils, so i did it but i had recive this error: Failure adding assembly to the cache: Tentativo di caricare un programma con un formato non corretto. (trying to load a program with an unknow format). What's the problem Help me pls ;) I hope this is the right section. Sorry for my bad english By "prototype functions" do you mean C style function prototypes If so, then the dll is probably not a COM assembly ...Show All
Visual Studio Express Editions ..../lib/vc_lib/mswd/wx/setup.h
Hi, I am stuck here, and I don't know where to find this- mswd/mx/setup.h - file,or make it or modify some other file for go farrther.. If someone have this file or know where to find it Linker is ok I was chechk at least 100 times , but setup.h files wich I have are or wrong,or I doing something wrong. I use converter from VC++ 2005 Expres but I can start this example : http://www.codeproject.com/cpp/howtofft.asp Anyway I need some help, thanks in advance for any tip. stdafx.cpp d:\program files\microsoft visual studio 8\vc\include\wx\setup.h(140) : fatal error C1083: Cannot open include file: '../../../lib/vc_lib/mswd/wx/setup.h': No such file or directory Build log was saved at "file://c:\Documents and ...Show All
