Dale Dufek's Q&A profile
Windows Forms ErrorProvider Question
I have my errorprovider class all set up corrrectly, but I want to validate everything when the user presses a button. I created a validate event for handling all the controls involved but how do I call that one event to check all the rest Code: Private Sub Error_Validating( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles Delay.Validating, StartValue.Validating, StopValue.Validating, AccelChannel.Validating, DataChannel.Validating, DistanceChannel.Validating, SpeedChannel.Validating, StartChannel.Validating, StopChannel.Validating, TimeChannel.Validating End Sub And I ...Show All
Visual Studio Where parse project files?
For implementing Intellisense and it is necessary realization parsing project files . Where I can do it At opening a file in the editor VS call: public override AuthoringScope ParseSource ( ParseRequest req ) but how parse the closed files And how determinate the project which the req . FileName associated with it . My integration based on the IronPyton sample. But I don't understand how LanguageService communicate with projects. :( For high-grade integration I must parse all sources in the project. But how confront Source object (represent source file during parsing) with sou ...Show All
SQL Server Run Time Error While Execute Sql Server 2005 Integration Services package from C#
Hi I am trying to Execute an SSIS Package from C# Dot Net. Below the code i am using. try { Application app = new Application(); Package package = app.LoadPackage("DTSPackage/WinServeMonitoring.dtsx", null); DTSExecResult result = package.Execute(); label1.Text = "Package Execution " + result.ToString(); } catch (Exception exp) { label1.Text = exp.Message.ToString(); } I have added reffrence for DTS Run time (using Microsoft.SqlServer.Dts.Runtime;) But I am getting an Error like this Error 1 'Application' is an ambiguous referen ...Show All
Windows Forms Creating an installer
I am using Visual Studio .NET 2003 and I am trying to package together some java classes and config files into an installed package to be deployed on windows. During the install process I would like to prompt the user to select the location of their java installation. How do I add a dialog to the install process that will contain a text field and a browse button for the user to select the location of java How do I add a script that will get called at the end of the installation process thanks, John. You can add dialogs to the installer through the UI Editor, you can add a textbox dialog, sorry no bro ...Show All
Visual Studio Express Editions MS Access connection problem
It seems to me impossible to do a very simple thing as to connect to a MDB or to a TXT file as a record source using the wizard (It's VISUAL BASIC isn't it ) From the Data Source Configuration Wizard --> New Connection --> changed the data source to MS Access but ... the system does NOT show me the windows to let me browse the file I want and I am shown only an input line space for a connection string, no other possibilities are given. Nevertheless I tried a conncection string syntax I found on internet " PROVIDER=Microsoft.Jet.OLEDB.4.0 ; Data Source = C:\AddressBook.mdb " but nothi ...Show All
SQL Server SQL Syntax difference between SQL 2005 Express and SQL 2000
In SQL Server 2005 Express the following query produces the wrong result: SELECT CHANNEL, DURATION, STARTTIME FROM Recordings WHERE (STARTTIME > '12/27/05 00:00:00') AND (DURATION > '5') ORDER BY STARTTIME DESC If I replace it with: SELECT CHANNEL, DURATION, STARTTIME FROM Recordings WHERE (STARTTIME > '12/27/05 00:00:00') ORDER BY STARTTIME DESC I can see records that should be in the first resultset but are not. I.e. the AND (DURA ...Show All
Windows Forms Network Printing Error...Pls help to solve..
hi, i am doin the network printing project...i've encountered an error while i was trying to list out all the available network printers. This is the coding... ------------------------------------------------------------------------------------------------------------ Public Function PopulateListControlWithPrinters(ListControl As Object) As Boolean On Error GoTo errHandler: Dim l As Long Dim lCount As Long Lis ...Show All
Visual C# Searching Directories?
Im trying to search specific directories by file name (and maybe content), but have no idea hwo to do this There's no easy way to search inside the file, as the routine requires to determine the type of file between textonly and binary; searching textonly file would be easy, since we can simply open it using TextFileReader and read the entire content then perform the search. However, searching for patterns in binary files is different (specially if it includes compressed files), and there are many approach (algorithm) for searching patterns inside binary files which are none of these are easy to implement. F ...Show All
Software Development for Windows Vista OS crashes with registry APIs calls
Hi, Im excercising some registry functions for my automation. I am not too sure which function, but my OS crahses on reboot. (refuses to start). I am using the following API's RegReplaceKey, RegUnloadKey, CreateProcessAsUSer and CreateProcessAsToken. Any help would be appriciated. I have logged in as Administrator. I am also adding the code snippet here: INT TestRegReplaceKeyA( VOID ) { LONG ReturnVal = 0; HKEY KeyHandle = NULL; CHAR filePath[STD_BUFFER_SIZE] = {0}; CHAR fullFilePath[STD_BUFFER_SIZE] = {0}; CHAR oldfilePath[STD_BUFFER_SIZE] = {0}; CHAR fullOldFilePath[STD_BUFFER_SIZE] = {0}; HRESULT Result = E_FAIL; HANDLE handle = NULL; pr ...Show All
Visual Studio passing fieldobject at runtime from the program
hello, i am doing reasearch on crystal reporting from two weeks .i want to pass the database fields from the program at runtime to the report source. I am able to pass the dataset at runtime but i could not pass the fields . If fields can be set at runtime then it would be used for any datasource. Also I tried textobjects to set the field object in it from the program but i could not . Please answer me whether it is possible or not Please help me to make crystal reporting totally dynamic. Please dont give me design time solutions. I'm not sure I understand...if you can pass th ...Show All
Windows Forms I'm not understanding this...
Hi, This is what I'm doing: public void Bla() { DataRow row = dataSet.Tables["Table1"].NewRow(); row["bla"] = ...; ... dataSet.Tables["Table1"].Rows.Add(row ); adapter.Update(dataSet, "Table1"); id = GetNextID(); DataRow[] currentRow = dataSet.Tables["Table1"].Select("ID="+id); &n ...Show All
Visual Studio Express Editions how to import Bookmarks favorites file to treeview
hi i'm export my favorites links from internet explorer as html file now i want to import this ( html ) file to tree view on my form i can read form this file and get folder name and URL but i cann't make it as tree it's now in on level only i want to read from this file and make tree view in many level can you help me if you want to explanation pls tell me i'm also search for this code but i have an wxample it's show folder and url in bookmarks , but it's show in one level can any one help me to show in multi levle as tree this is my example http://www.segaaal.com/Read_Bookmark.zip ...Show All
Smart Device Development Device Emulator Preview & NAT connectivity question...
I'm running the Device Emulator Preview with a Windows Mobile 5 image. I enable networking and it binds to my adapter with no issue. I'm able to connect to resources on my home network (DHCP issues the device an IP address). Example, I can connect to http://server , which is a server on my network. However, when I attempt to connect to www.cnn.com or anything outside my network, it won't connect and says I need to setup my network connection. I've even tried setting a static IP to make sure the default gateway is getting in there (it's issued via DHCP) but that's not the issue. I'm curious as to why the adapter that the emulator ...Show All
Visual Studio Team System Delete folder changes check in
G'day, I was performing delete folder operation within the following sequence (I have C# class library project open in VS and under source code control as prerequisite;the project contains folder Test with files Class1.cs and Class2.cs): Delete folder Test using pop-up menu "Delete" in Solution Explorer The project file is checked out (I have automatic check out on edit enabled, so VS does check out automatically) Now, I want to check in pending changes. I select project in Solution Explorer and click "Check In..." pop-up menu. "Check In - Source Files - ..." dialog displays the following files w ...Show All
Visual Studio Express Editions Chart Control
I have upgraded a VB 6 application that has a chart. The upgrade was successful but when I run the application I get the following error: System.InvalidOperationException was unhandled Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to get the window handle for the 'AxMSChart' control. Windowless ActiveX controls are not supported." Source="WindowsApplication1" StackTrace: at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 180 &nb ...Show All
