Kai123's Q&A profile
Visual C# Adding a .cs file to vs.net solution and Inserting code into it
hi , iv created a application to have a custom menu item "MyAddin" in the tools menu in the vs.net ide.....when any new .net project is opened "MyAddin" will be available on the click of which a windows form with a simple text box and OK button gets launched...... Now my requirement is that when text is entered into the text box and when the OK button is clicked a .cs file has to get added to the solution of the project that i have currently opened with the text from the text box inserted into the .cs file newly getting added.... can anyone help me out with it..... Thanks and regards... Pavithra... ...Show All
.NET Development ShareValues Between ApplicationDomains
Is there any way in which I can share values between ApplicationDomains. I create the SecondApplication Domain using Dim appDm As AppDomain = AppDomain.CreateDomain("ABCD") Now I want to share values between the two Application Domains. Hi Stephen I am struggling to get a PlugIn architecture working and thought that you may be able to shed some light on whats going wrong. The test (VS) Solution I have is essentially three Projects: 1) ClientSide - which plays the role of the main "application" (currently driven by NUnit) 2) Shared - contains Plugin Interface definition and a (tes ...Show All
Visual Studio Team System mstest with custom test type and metadata(vsmdi) file?
I'm trying to use mstest.exe to run a test from the commandline. The test was created as a custom test type that I have created via the extensibility SDK. I've done a lot of investigation and here's the results: 1) inside VS I can run the custom test fine. 2) I can run the custom test fine using the /testcontainer: option of mstest.exe. 3) I can run a generic test using the same vsmdi file with mstest.exe. 4) trying to run the custom test type with the vsmdi fails with an "Test <foo> cannot be found" error. I ran scenarios 3 and 4 (only difference being generic test vs. my custom test) under cordbg. Here's t ...Show All
Visual Basic PictureBox + Color
OK, here's where I'm at - I've created a panel (400x400) with 324 PictureBoxes (yes, unfortunately I felt the need to use a 18x18 grid of PictureBoxes). Each PictureBox has some code which changes the colour when pressed. Below is an example for PictureBox2: Private Sub PictureBox2_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles PictureBox2.Click paintme(PictureBox2) End Sub And the code for painting: Public Function paintme( ByVal square) square.BackColor = ColorDialog1.Color End Function I need some script which changes the color of multiple Pi ...Show All
Smart Device Development Active sync 4.1 losing contacts
I have a QTEK 9090 that I sync with OUTLOOK on both my home and office desktops. Every so often contacts disappear from one or other of these machines. I can't see an obvious pattern, does anybody have a solution This forum is for development related issues. Please post to relevant forum or news group: http://support.microsoft.com/newsgroups/default.aspx Closing as off topic. ...Show All
Visual Studio VS IDE crashes when debugging in managed or mixed mode
I have a c++ project that uses a .NET 1.1 assembly as a com object. It is loaded with CoCreateInstance. If I debug in native mode it looks like everything works okey, in managed mode the application crashes with no errors or anything, and in mixed mode Visual Studio crashes. Something that looks somewhat suspisous to me is that it looks like .NET framework 2.0 assemblies and debug symbols are loaded. For example: 'MyApp.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\fusion.dll', No symbols loaded. 'MyApp.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\msvcr80.dll', PDB format is obsolete. 'MyApp.exe': Loaded 'C:\WI ...Show All
Smart Device Development wldap32 on Windows CE 4.2
I tried posting on one of the other forums to try and find information on this but didn't get any response. Could anyone please let me know where I can find wldap32.lib for Windows CE 4.2. When I installed the Pocket PC SDK 2003, as well as the Standard Sdk, there is documentation about the winldap api for Arm4. However wldap32.lib which holds the implementation for this is not present in the wce420/lib directory in these SDKs. It looks to be present for wce500 or Windows CE 5.0, but that's of no use to me. Please let me know if I can find this library somewhere or its not available at all for Windows CE 4.2 and Microsoft documentation is i ...Show All
.NET Development combine and manipulate multiple fields from DB record, into a new textbox???
hi dudes and dudettes (apologies this thread is repeated in vb expess forum - not getting any interest ) i'm just starting out with database stuff. i've got my databse table (using the descriptive method so the output appears in textboxes) and a binding navigator added to a form and i want to combine about four fields only from my current record into a new textbox to combine them with some autogenerated (by my ap) html tags. the idea with the app is to have the current record in the database in view on the left of my form with all fields on show. To my right of the form is a big multi-line textbox where i want the app to grab f ...Show All
Visual FoxPro API call caused an exception
The following is a program to convert HTML entities back into their original characters. Can anyone see why it would work on Windows 2000 and XP but not on ME & 98 I have gone through depends.exe to try and determine any dependencies that I have missed but everything seems ok. If the process is made to exit before the loop it doesn't crash VFP. I am running VFP6 SP5 #include <fstream.h> #include "PRO_EXT.H" #include <ctype.h> // make the paramBlk structure easier // to manage by using #define shortcuts #define p0 (parm->p[0].val) #define p1 (parm->p[1].val) void unescape(ParamBlk *parm) { &n ...Show All
Windows Forms Diferent winforms in same window logic. How it works?
hi everyone, You know that 'Tracker" application made by Jason Beres that is in the "Applications" link here in windowsforms.net It looks like it has many winforms (Tasks, Contacts, Timeline, etc) but all of them loads on the same "window"...very much like a Frame in a web application. What I want to know is how he do that cuz it doesnt&nbs ...Show All
Visual C++ VC2005 %50 Slower then VC2003
I just migrated a graphics application from VC2003 to VC2005. After building it, I ran a small benchmark & found that VC2005 code was about %50 slower. The Application does a great deal of floating point and integer calculations. It also converts doubles to int quite a bit (the VC2003 version used SSE to handle this). The VC2003 version used /G7 and /Ow (which are not available in VC2005) Compiler Switches Used: (vc2003)/arch:SSE2 /c /EHa /FD /GF /GL /Gs8192 /Gy /MT /nologo /O2 /Ob2 /Og /Oi /Ot /Ow /Oy /TP /W3 /WX /Zi (vc2005)/arch:SSE2 /c /EHa /FD /G7 /GF /GL /GS- /Gs8192 /Gy /MT /nologo /O2 /Ob2 /Og /Oi /Ot /Oy /TP ...Show All
SQL Server Creating a user in SQLExpress with SQL Server Management Studio Express
I have created a user in SQL Server Management Studio Express. However, whenever my ASP.NET application tries to connect I get the error Cannot open database "ABC" requested by the login. The login failed. Login failed for user 'Fred'. If I change my login string to Integrated Security=SSPI it works. Also, I was able to add a user successfully in SQL 2000 but SQLExpress is differnt. Can anyone tell me how to add a user and give him permissions for a particular database Or refer me to a URL that does. Many thanks. In SQL Server Management Studio Express, when you login to the SQL Express Server, you'll see ...Show All
Windows Forms Searching files in directories
hi.. how do i search files in a directory using file attributes like modified date,file size,create date time using .Net. Regards dhn Here is a self-explaining example: DirectoryInfo directory = new DirectoryInfo("c:\mydirectory"); foreach ( FileInfo file in directory.GetFiles() ) { if ( file.CreationTime.Date.Equals( DateTime.Now.Date ) { // Found a file that was created today. } } ...Show All
Windows Forms Install Error : The parameter is incorrect. (taskvisionsource_1.1.0.0.msi)
When installing taskvisionsource_1.1.0.0.msi, I'm getting this errormessage: "The parameter is incorrect". The installer then rolls back. MACHINE CONFIG: * Windows Server 2003 Standard RC2 Application Server mode : IIS 6.0, ASP.NET and FPSE working fine. * SQL Server 2000 Developer Edition * Visual Studio 2003 Final Beta PREREQUISITES: * I am Administrator on the local machine.  ...Show All
Visual Studio IVsUIHierarchy in managed code
I'm working on a managed custom project type (in c#) with VSIP. I must have my package to work with VS2003 and VS2005. Right now, my package works well in VS2005 (beta2) but in VS2003, I have a few problems with the Project Properties window. In a few places, I have read that I must implement a COM wrapper for my IVsUIHierarchy (or IVsHierarchy). Unfortunately, I don't know how to do this. Would someone be able to point me to an example or to a few tips about how to do it Thanks in advance. This is a known issue in VS2003. The recommanded work around is to use native C++. This has since been fixed in VS20 ...Show All
