Answer Questions
Luis Esteban Valencia Muñoz Save issues
Hi there everyone :) I am having some issues saving, the main problem i am having is on how to set the pathname here below is the code i have: Private Sub mnuFileSaveAs_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileSaveAs.Click dlgSaveFile.FileName = "Document" + m_intDocNumber.ToString() dlgSaveFile.Filter = "Text|*.txt|Html|*.html|PHP|*.php" Select Case (dlgSaveFile.Filter) Case "Text" dlgSaveFile.FileName = ".txt" Case "Html" dlgSaveFile.FileName = ".html" Case "PHP" dlgSaveFile.FileName = ".php" End Select dlgResult = dlgSaveFile.ShowDialog() If dlgResult = Windows.Forms.DialogResult.Cancel Then Exit Sub End If Try m_sw ...Show All
Little spellchecker?
I want to make a spellchecker for a program of mine. I did a search of the forums and found some code. I slightly edited it to match my individual use and apparently did something to it to make it not work. because it ended up throwing the exception and I KNOW I have MS Word. This is the code I used: Function spellcheck( ByVal text2check As System.Windows.Forms.RichTextBox) If text2check.Text.Length > 0 Then Try text2check.SelectAll() ' Copy everything from the richtextbox to clipboard text2check.Copy() ' Make a Word server object. Dim word_server As New Word.Application ' Hide the server. word_server.Visible = False ' Make a Word Document. ...Show All
rod_r How can my application can know that, file is being copied on the USB Mass Storage device?
Hello I am working on USB Project, I am searching for any of the API's method in windows , so that my application can sense that a file in the PC is being copied or moved onto the USB mass storage device which is plugged-into my system. I am developing my application in VC++.Net 2005, that is MFC in windows XP. I want this code to work on any windows version of operating system. If this is not possible for all versions of operating systems of windows. What could be the case in windows XP. Can anybody help me out for this.. Where Can I any sample code which can help me.... Thank you Anoo Hello Re: How can my application can know that, file is being copied on the USB Mass Storage device ...Show All
Khenat.Ram Loading a CSV file INTO a DataGridView control
This one is something interesting. See this original post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=240197&SiteID=1 I took this one up to try and learn something. But, now have become a bit obsessed with solving it. Ok, assume the following: Dim fromFile = "test.csv" Try Dim ConnectionString As String ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\log2\test\;Extended Properties=""Text;HDR=Yes;FMT=CSVDelimited""" Dim ExcelConnection As New System.Data.OleDb.OleDbConnection(ConnectionString) ExcelConnection.Open() Dim da As New System.Data.OleDb.OleDbDataAdapter( "Select * FROM " & fromFile, ExcelConnection) ...Show All
DavidCeder Team Suite and TFS Installation
Hi, We have downloaded En_vs_2005_vsts_180_Trial.img, en_vs_2005_tfs_trial.iso for 180 days trial versions. Now we need information about installation of Team Suite/TFS. Which one should be installed first and how Sneh Thank you so much Martin. So VS2005 Professional Edition should be on client machinex or not required We are planning to evaluate TS with Load Agent and TFS for load and performance test of our .NET2.0 application (ASP.NET, C#, SQL2005 Server to be deployed in 4 tiers e.g. DB Server, App Server, Web Server and Clients ). DB servers are clustered for Fault Tolerance(2 node active/passive), App and Web servers are network load balanced in DMZ. Our objective is to load test and measure/analyze ...Show All
james_cline_ From StringGrid to Dataset
Hello all, I've been working on a project in RapidQ for quite some time and have decided to bring it over to Visual Basic. The one major difficulty I'm having is with accessing/manipulating data. Previously, in RapidQ, I was storing data in text files which I would bring into a stringgrid. I could then search the stringgrid by cell index to find a specific entry, perform sorts, etc. I'm looking for the same functionality using an Access database for all data files rather than having text files all over the place. A little more detail... Rapid Q example to load in a stringgrid of aircraft data: AircraftData.LoadFromFile("AircraftData.txt",1,1,100) ...Show All
elGuille Creating html files using the rich text box
Im trying to create web pages using the RTB but evry time i save the contents of the RTB as a html file it shows this code ({\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} \viewkind4\uc1\pard\f0\fs17 \par \par \par \par \par \par \par \par \par \par \par \par }) does eny one know how to correct this Im trying to create web pages using the RTB,i save the contents of the rich text box as a html file but it when i preview it, it shows a code instead of the text and pictures i put init, does eny 1 know how to get it to work ok, thanks That's because the rich text box's output i ...Show All
KrisF Complete Newb Question - PLEASE HELP!!
Begginer C# programmer here (begginer programmer in general). I am currently reading Learning C# 2005 from O'Reilly, and I've come across a stubling block early. When going to compile the helloworld.cs console app, the book instructs me to go to Start, Programs, Visual Studio 2005, Visual Studio Command Prompt so I can run the csc command to compile the app. Problem is, I'm using Visual C# Express 2005, which doesn't have this option, at least not in the same area. I have figured out on my own how to build the app in Visual C#, but the book mentions that 90% of the examples are built as a console app in this way, to simplify learning the language, so I would like to know the proper way to duplicate the process of running the Visual Studio ...Show All
FergusLogic Team System reports are crashing Visual Studio
All of a sudden clicking a Team System report inside visual studio is crashing VS. I can run the reports without problems via IE using the reporting site. The only big changes on my system lately are installing of VSTS SP1 and IE7. Other people with the same change in my team do not have this problem. Has anyone had the same kind of problems or know the solution Unfortunately installing VSTS SP1 RTM did not help :-( Any other ideas PS. I've submitted several crash reports of this situation. Outside VS, using IE everything works when I go to the reportserver and click through the reports. I'm still not clear about what made it crash.. because it did use to work in the past.... Maybe SP1 Beta of VSTS ...Show All
Alan Robbins source code access from web browser?
hi, is there a way to access source code in TFS from a web browser i thought i had read that it could be done, just can't seem to find it. thanks, scott Hello, there is TeamPlain Web Access for Team System - http://www.devbiz.com/teamplain/webaccess/ ...Show All
luca90 Mixed Platforms is not available
Okay, in my Web Application Project, the Mixed Platforms build platform is not available. Actually, it doesn't matter what kind of project I have open, that option just doesn't exist. How can I get it back Chris Team Build deals with Solution -level Platform / Configuration combinations, which are really just collections of Project -level Platform / Configuration combinations. Mixed Platforms is what Visual Studio uses as a platform by default when a solution contains two or more projects with different ( Project -level) default platforms. For example, C# projects default to "Any CPU", while web projects default to ".NET". If you have one of each in a solution, the default Solution -level platform will be &quo ...Show All
Ben Santiago Help with "Concentration" Game
I am a student studying VB for the first time and I've run into a snag programming as assignment. It's a matching game consisting of 8 pairs of matching words randomly assigned to 16 labels. When a label is clicked, the word currently assigned to it will display. If two labels are clicked and the words match, the labels are disabled and change their color. This is done until all 8 pairs of words are found, after which a message box is displayed indicating the game is over. I am confused as to how I can randomize the list of words and assign them to the labels, as well as how to check for matching. Any help would be appreciated. ahmedilyas wrote: pick an item from the array randomly.... ...Show All
SkyLander BUG - also in CTP7 - VS Error Window does not refresh properly
Hi, I have found, that with certain types of errors the errors shown in the errors window are not refreshed / deleted even if the cause has been eliminated and the project is rebuilt without errors. The original error is still there although the project builds and deploys successfully. This seems to occur when an "out of ordinary" error occurs (ie. some of the errors that occured in the solution view because of file conflicts, errors with inconsistency of the project). In this particular case I got the same conflict as Juergen did with a data generator. In fact, I think this not refreshing occurs most often with the data generator. The error I had is described in http://forums.microsoft.com/MSDN/ShowPost.aspx P ...Show All
AlexUC Visual Basic Code for file system watcher
Hi, Is it possible to make continous monitoring of any change of data in Microsoft Excel file and send an specific signal to execute a program if there is any change If it is possible could you please send me the code for that. Dim fsw As New IO . FileSystemWatcher ( "DirectoryPath" , "TheFileNameOrFIlter" ) Public Class FileSystemWatcher Inherits System . ComponentModel . Component Member of: System . IO Summary: Listens to the file system change notifications and raises events when a directory, or file in a directory, changes. Public Event Changed (ByVal sender As Object , ByVal e As System . IO . FileSystemEventArgs ) Member of: System . ...Show All
Robhale77 data exists
hi all im trying to find out how to see if a record exists in a database and returns true if it is there also in code how can i if it does exist add a value into where column name is "type" thanks in advance tim hi thanks i think that might be what im after to see if it has returned any records thanks you simply do a SELECT command and give it the values you want to get that record, if it exists, the rows returned back would be more than 0. Example: Dim theSqlCommand as new SqlCommand(" SELECT * FROM tableName WHERE field = someValue ") theSqlCommand.Connection = new SqlConnection( connectionstring) theSqlCommand.Connection.Open() Dim theS ...Show All
