Kproject's Q&A profile
Windows Forms Non-data-bound-grid
Hi, Is there a non-data-bound-grid control, that comes with standard .NET contros Thanks There is also a ListView. This standard Windows control is essentially just a grid. - mike ...Show All
Visual Studio Express Editions Need Help to get a third party class working
Hello, I’m absolutely new in c++ but I try write a programm to communicate with my Weather Station Interface. Normaly I use c# but it is so difficult to Handle this Interface that I decided to use c++ because there is someone who wrote a class to communicate with the Interface. I installed the vc++ Express Edition and the plattform SDK to use windows.h. But now I have a part of code where I get an compiler Error that is so "strange" that I didn’t understand it. Code: bool CWStation::ExecCmd(Command Cmd, char *Param) { int TryCount = TRYCNT; while (TryCount) { SendCmd(Cmd, Param); Sleep(50); if (RecvData() == 0) { ...Show All
Windows Forms Scrollbars and Custom Border Painting
I've customized a panel to draw a custom border utilizing WndProc but I have a problem when the scrollbars are displayed, take a look at the lower right portion of my border. I have attached a snapshot of the problematic control and a .NET panel equivalent. I think the corner box is misplaced and not painted on the correct intersection of the two&nbs ...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 Call a New form from within an Existing form
Being new to the MVS2005 and visual basic it's self, I cant seem to find anything about calling a form so I can ask questions and then read data from it back to the main form. Any links to places where i can find this type of help would be nice or just a simple explancation below would help out alot. Thank you. If there's a FAQ for this forum, it would certainly cover this, as it gets asked most days. To create a new form instance, declare it like any variable: Dim f2 as Form2 = new Form2() f2 has two methods, Show and ShowDialog. The second will show a modal dialog ( one that takes full focu ...Show All
.NET Development help me please....
when i try to display something after i selected date from the combo box which is of date/time data type , using Ms Access it reports error when i using this code sql=" select distinct from barcode where date_id=' " & cboDate.selectedItem & " ' " tablename- barcodecodeinfo fieldname - date_id , type - date/time data type combo box name - cboDate when i try this code sql = "selet distinct from barcode where date_id= ' " & CDate(cboDate.Text).ToString("dd/MM/yyyy") & " ' it takes only date , so it doesn't display anything how to change this one to ...Show All
SQL Server Debugging a script component task???
How to debug a Script Component task For instance, I’ve got a Input0_ProcessInputRow procedure and I’d like to see what happen when compiler reach this line: dFecha = Left(Row.Column19, 4) & "-" & Mid(Row.Column19, 5, 2) & "-" & Right(Row.Column19, 2) I’ve put a toogle breakpoint there and then saved but when I run the package to ignore at all. This topic has been already discussed in these newsgrups but I still have doubts. Thanks a lot for any advice or clarification Unfortunately you can't debug script components with breakpoints as you can in ...Show All
Windows Forms Weird Windows Service problem
Hello All, Last month, i wrote a simple windows service that generates a simple text file based on values from a SQL server table. The text file was being generated on my local hard drive. The same system where the windows service is installed. Recently, i had to move the dir where the text file is being written, from my local hard drive to ...Show All
Windows Forms PropertyGrid displaying runtime set list of values
I have a propertygrid control that is working fine for displaying all of my properties. However, I now have a string property that I want to limit to a set of values that I obtain from reading a data file. Does anyone have any information on setting up either the propertygrid or the property to allow this ...Show All
Visual Studio Express Editions Form inheritance
Hi, Anyone an idea if form inheritance is possible in the C# Express Edition And how And also, i need some info about the differences between the Express edition and the VS.NET 2005 professional edition. Major shortcommings etc... Greetz & thanx alot! Vincent I assume it should be. . . right click your project. . . In the add Items box, you should have an "Inherited Form" entry. Only compiled forms will be available to inherit from, so build your project first. ...Show All
Smart Device Development [C#][Smarthone 2003 Deployement] How to deploy an app on a smartphone
Hi, I can test my app on the smartphone emulator but i'm can't download my app on my smartphone. The first thing i try is to browse into my smatphone (like embeded c++ tool : File View) First step i n try to connect to device using the tool menu tool>>conect to device>>smartphone 2003 device But i got an error "Connection failed : the version of activsync is not supported" My version is 3.8 i think it is the latest... And my emVC++ 4.0 tools can browse the smartphone, so embeded c++ tools can do the work but not visual studio 2005. Is there a stuff like C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Tools\spdps.exe /c ...Show All
Visual C# Static method in Remoting
Hi All I’m developing a client / server windows application in c#. In all my BL Classes I’m decorating with [Serializable] attribute and also inheriting by MarshalByRefObject. I’m using Server Activated Remoting type. For some validation I need to pass the WindowsPrincipal object of the current logged-in user to one of the BL Class, there I’ll be validating against my database value and also I’ll store the username with a Guid into a Static Hashtable . The problem is I’m not able to pass the WindowsPrincipal object to my BL method. Its saying “Exception has been throw by the target o ...Show All
Visual Studio Express Editions Multiple installations?
Can I have the WebDeveloper edition AND C# Edition installed on the same computer Evil, yes, Standard or Professional can be installed and work alongside Express. ...Show All
Visual Basic Timer Questions???
I am trying to build this app that Grabs these doc files out of this folder...But i dont know how to pass the procedure to the Timer...I know in C# it seems i could do it like aTimer.Elapsed += New ElaspedEventHandler(Name of Procedure) but in VB.Net i am kinda lost any help would be great!! Imports System Imports System.Timers Imports System.IO Module Module1 Sub TestTime( ByVal sender As Object , ByVal e As ElapsedEventArgs) Dim str() As String str = Directory.GetFiles("c:\docs") Dim str1 As String = str(0) Console.WriteLine(str1) If str1.Substring(str1.Len ...Show All
Visual Studio Team System Testing a Unit that uses AppSettings
Hi, I wanted to unit-test a code unit that uses information from the appSettings section. Thus I created a corresponding app.config file in my Test Project. This looks something like < xml version="1.0" encoding="utf-8" > <configuration> <appSettings> <add key="mySettingName" value="something"/> </appSettings> </configuration> But then, ConfigurationManager.AppSettings[mySettingName]; returns null. How can I access appSett ...Show All
