swa68's Q&A profile
Windows Forms XmlDocument -> Clipboard
Well heres what I have XmlDocument Data = myFunc(string xmlindata); //returns an xml document Clipboard.SetDataObject(Data, true); //Adds to clipboard Now, doing that works like a charm, it goes to the clipboard, and I can even verify that the object appears with the format listed as System.Xml.XmlDocument. What I dont understand is what is happening here. IDataObject clipd ...Show All
Visual Basic Disappearing Data Sources
I just installed the VS2005 RC and now my Data Sources window loses its contents whenever I open a form or user control. I have 2 data sources defined, and they show up fine if I don't have a form as the active window in the IDE. As soon as I click on a form or usercontrol window, the data sources disappear and the data sources toolbar becomes grayed out. It's slightly different than when there are no data sources in the project, because I don't get the hyperlink "click here to add a data source". I followed all instructions for loading the RC, including uninstalling all programs in the correct order. Any ideas would b ...Show All
Visual C++ Building the source code problem
I get this error when i tried building my source code : Linking... .\Release\mcd.res : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt Error executing link.exe. CCalc.exe - 1 error(s), 0 warning(s) Im not sure what it means but when i tried to rebuild all, i get this error message instead Compiling resources... Error executing rc.exe. CCalc.exe - 1 error(s), 0 warning(s) can someone please help me out ps. i tried searching for the rc.exe file and i cant find it, where is it located or do i need to download it separately im still kinda new in C++ thanks for your replies :) ...Show All
.NET Development interface and class
Hi, I have a class as following public class mybase private a as integer private b as string sub new() a=1 b="" end sub Public Property num() As integer Get num =a End Get Set ( ByVal value As integer) a= value End Set End Property Public Property name() As string Get name =b End Get Set ( ByVal value As string) b = value v_name = value.ToString End Set End Property end class Now I use inheritance to build a collection for class mybase like that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple copies of Direct3d application?
Hi, I have a problem when I build a direct3d application . When I run The Debug version of a Direct3d app(with start without debugging button in VS2003) It does not shut down properly, It always stays in the windows task manager and when I try to build it again it gives this error: ------ Build started: Project: test, Configuration: Debug Win32 ------ Linking... LINK : fatal error LNK1168: cannot open Debug/test.exe for writing Build log was saved at "file://c:\Documents and Settings\Visual Studio Projects\test\Debug\BuildLog.htm" test - 1 error(s), 0 warning(s) ---------------------- Done ---------------------- Build: 0 succeeded ...Show All
Windows Forms TextChanged event for DataGridViewTextBoxColumn?
I have a DataGridView with four textbox columns. When the user is entering data in one of the columns, I want to handle the TextChanged event. The CellValueChanged event of the grid only occurs when the user has finished typing and leaves the cell, but I need to capture every keystroke. How would I do that Hi Daniel, Great work! I also had the similar query where I needed to trap DataGridTextBoxColumn's keypress event to allow only numeric values. You have solved the mystery ...Show All
Visual Studio Team System Team Foundation - what data "lives" on the App Tier machine?
The subject says it all - Exactly what data (if any) lives on the App Tier machine Obviously source control and work items live on the data tier. Formerly, the database used by Sharepoint lived on the app tier, but with Beta 3 that's been remedied. Does any data live on the app tier, or is it now strictly a functional layer with no persistent storage The reason I'm asking is for recoverability - if the App Tier machine goes down, can I just point another App Tier at the data tier and have everything work, or will I have lost something important In V1 there can only be 1 active AT talking to a DT. As others have mentioned there ...Show All
Visual Studio Team System Work Item tracking through web parts?
Hi, Is it possible to perform work item tracking through web parts in project website Could we use Microsoft share point service to make it possible to add requirements/bug through web client (w/o installing VS 2005 in client machine) Thanks, Saurabh The link I provided above was a 3rd party tool that provides a web interface for workitem tracking. Its not a web part to include in the sharepoint portal, but to be honest a web part probably would not provide enough screen size to begin with. The tool is a website that you can install on the team foundation server. Its currently in Beta, but I would g ...Show All
Visual Basic new browser window
Hey Pals :P so now im back with another domb newbieing question! ^^ i have this webbrowser program/form/thing, (you could never guess that could you ) and i want it to do this: when somebody press the "new window" butten it will make a copy of itself so there is TWO of them etc etc calculations was very simple: 1+1=2 2+1=3 :D and i mad eit myself, believe it or not :P but anyways. plz help me (. thanks //Martin THANKS! :D i never learn that "dim" thing, just cant find out :S but thanks! :D //Martin ...Show All
Visual Basic RichTextBox Caret
How would I go about changing the actual shape of the RichTextBox caret I have tried using the CreateCaret and ShowCaret API calls, but they only seem to work with normal text boxes. Is there any way to modify them so they work with RichTextBoxes I got the caret to change by calling CreateCaret/ShowCaret but it immediately returns to a regular caret once you click or type in the control. Looks to me like the RichTextBox control recreates the caret itself. Try handling all keyboard and mouse events and recreate the caret Declare Function CreateCaret Lib "user32.dll" (ByVal hwnd As I ...Show All
SQL Server Can't update table using mysql
Hello. I use VS2005 and I was trying to make a little program able to connect to a MySQL 5.0.18 database through MyODBC 3.51.12. I can connect to the database and I can load a table in the Datagridview control, but I can't update the table: the wizard didn't generate the Update method. Even if I configure again the tableAdapter, the wizard generates only: SELECT statement table mappings Fill method Get method The table is a very simple table: it has 3 columns and the first is a primary key. If I create an identical table using Access database and make a program that connects through ODBC, I don't have the problem: the wizard generates also ...Show All
Visual Studio Debugger temporarily hangs before not loading the PDB for CppCodeProvider.dll
I'm running XP Professional and VS 2005 Professional and I have a two project solution (one web project, one class library). When I hit F5 to start debugging, the IDE will intermittently "hang" with the following message in the status bar: "Loading symbols for c:\windows\assembly\......\CppCodeProvider.dll". After about 30 seconds the IDE responds and the debug session starts. Watching the Modules window (Ctrl-D, Ctrl-M) shows me that the IDE is trying to load symbols for CppCodeProvider.dll and reports "No symbols loaded" in the Symbol Status column. When the debug session finally starts the Symbol ...Show All
Visual Basic Unknow Error 3000 (-1601) with Jet 3.51, Repair and compact does not fix it
Hi, I have problems with a replicable database, (Repair and compact does not fix it), and i can't get information in the web. Unknow Error 3000 (-1601) while replicating the databases I'm using Dao 3.51 because is the only that let me to work with the replicas and is difficult to migrate the application and the database to Access 2000. I copy the database from a backup and in a few hours of works, i have the same problem. (Everyday) Rebuilding the replica set from a non replicable database or an empty database does not help. Any suggestions thanks ...Show All
Visual C++ import 3rd-party DLL
I know that there are many threads about DLLs already, but they all cover the case that you want to import a dll you created yourself first. I'm trying to get the sqlite3.dll working with my programm. This is my code: #define sQliteDLL __declspec( dllimport ) int feedBack; sQliteDLL typedef struct sqlite3 sqlite3; sQliteDLL int sqlite3_open(const char* filename, sqlite3 **ppDb); sqlite3 *db; feedBack = sqlite3_open ("test.db",&db); What I understood so far: I need to create a prototyp of my function etc. with the dllimport-thing to tell the linker where to look for the code of those functions. After that I can use the function ...Show All
Visual FoxPro A report where deleted record aperas diferent
Can I do a report where the record that market Deleted (and Set deleted is OFF) to apears in diferent way (diferent color, italic text, etc) Thank you. oTestRL = NEWOBJECT ("myRL") REPORT FORM test PREVIEW OBJECT oTestRL DEFINE CLASS myRL AS ReportListener ListenerType = 1 isDetail = .F. PROCEDURE BeforeBand (nBandObjCode, nFRXRecno) IF nBandObjCode = 4 && Detail this .isDetail = .T. EL ...Show All
