stuart.marsh's Q&A profile
Visual Studio Express Editions Time - Increasing
I hope someone could point me in the right direction on this. I have a text field which I would like to set at 00:00 (zero minutes and zero seconds), then click on a button to increase the time by :30 seconds after each click. Any assistance is much appreciated. Hi, You can try changing the value of the textbox value by 30seconds and converting to time format on button click event. Thank you, Bhanu. ...Show All
.NET Development Accessing the registry from a Web Service
I'm fairly new to this Web Service game so please feel free to suggest something different if it looks like i'm completely off track! I'm trying to write an application that runs on a Pocket PC that is accessing data stored in a SQL server database on a seperate server (not on the pocket pc). This will be deployed to lots of customers sites so I can't hard-code the location of the database in the program. I wrote a seperate little app to enter and store the connection string details in the registry so that data can be retrieved by the Web Service from the appropriate database and sent to the Pocket PC. All works fine with ...Show All
.NET Development [VB.net] Import Excel and Export as Access
Hi! I want to convert an Excel-File to an Access-Database. Someone got an example for this I tried to read the Excel-File in Dataset, but i don't know, how to save the imported File as an Access-Database. hope u can help me Greets, reg3x I hope the following code segment will help you Dim MDB_FILE As String = "C:\\Database\\MyFile.mdb" Dim CONNECTION_STRING As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + MDB_FILE + ";" Dim lobjCnn As OleDbConnection = Nothing Dim lobjCmd As OleDbCommand = Nothing lobjCnn = New System.Data.OleDb.OleDbConnection lobjCnn.ConnectionString = CONNECTION_STRING lobjCnn.Open lobjC ...Show All
Windows Forms form not on top
hi i have a form which is on top of al form sbut i want when i pressa butoon to dispale on top can i do it yahnx protected void OnSomeButton(object, EventArgs) { this.TopMost = false; //this being a Form class. } ...Show All
Visual Studio Express Editions Serial port control
I want to be able to send and recieve data from a microcontroller to VB 2005 express. Does anyone have any suggestions on how to setup a comm port and link code from say a button Thanks As the functions that you are asking are not just for express... I would have a look at the other forums on this site and do a search. You might want to focus the search on the networking and communications groups, and the language specific groups. ...Show All
Visual Studio Tools for Office Creating Excel Report file From VB.Net 2k5 - Help
Objective Trying to create an output from visual basic, with data containined within a Dataset into an excel workbook. Problem I've got is the Microsoft.Office.Tools.Excel to Microsoft.Office.Interop.Excel issues. I have already written a procedure which creates an excel workbook and populates a worksheet cell by cell from the dataset programatically using the interop interfaces. Problam is this is damn slow. Have tried to use a Listobject (which seems only usefull in the Tools namespace) to noavail (damn type conversions no matter which way I turn. This is what I've got so far, help would be apprieciated: ...Show All
Visual C++ Unable to build native Win32 apps
I am using Visual Studio 2005. I get error messages when I build a native Win32 app in Visual C++ .Net 2005 The first error is d:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' This is the line: typedef void * POINTER_64 PVOID64; How can there be an error in winnt.h Anyway, I changed the line to typedef void *PVOID64; The remaining errors didn't occur anymore. Now there are no errors. But this is obvio ...Show All
.NET Development can i have some help please?
my teacher give me an assignment, i've spend more than an hour in searching at microsoft.com but i cannot find what i need. can somebody nice to help a little hand please the question is : Descirbe ANY 5 special unique features privide by the .NET Framework and illustrate each feature with a simple programming example I only found Can use the Win32 API from a .NET Framework program Yes. Using platform invoke, .NET Framework programs can access native code libraries by means of static DLL entry points. Here is an example of C# calling the Win32 MessageBox function: using System; using System.Ru ...Show All
Visual Studio Team System test case
I have a function which takes xml as input ,Process the xml and insert the data to database. How to write a test case for this function as there will be no written value. Regards, Venkatesh You can certainly take advantage of the code generation feature in VSTS. In your case there's no return value in the function to be tested. Therefore in the generated test you will need to add your own verification. For example, in order to verify whether values have been correctly inserted into the database, you can compare the expected value with the actual return value by querying the database. ...Show All
SQL Server Variables - Changing Scope Once created
If I have created variable and have written expression etc and then I have realised that I have created it in the wrong place. For example I have created the variable inside Package scope instead of Foreach Loop scope. Yes I know it is my mistake. Do you think it would be nice to have a feature to change the scope from Package to Foreach Loop Maybe a drop down list I am sure there is a reason behind why it was done like this. I would appreciate if anyone can shed some light Or maybe there is a way it could be changed Thanks Sutha Thanks for logging the bug Sutha. I've placed it in the v.next bucket for consideration in the next r ...Show All
.NET Development Can .NET Remoting App be both Client and Server?
There will be a question in here so stay with me, I'm providing some background first. I just started working on an existing app with the programmer that originally wrote the code. My contribution will be to make one instance of the app running on one workstation on a network talk to another instance of the same app running on a different workstation on the network. To provide the services I want to use .NET Remoting (eventually Web Services for more flexibility) so I've created a class derived from MarshalByRefObject. I've compiled this class into the existing app. Most of the documentation on MSDN for .NET remoting gives exampl ...Show All
Visual Basic Transferring Files with HTTP
I'm making a MMORPG using VB.Net 2005 and DirectX. When the program starts up it connects to my website and checks the version information of my graphics, sounds, etc. If one of their files is out of date, I want to download the latest version from my website. I was wondering how I could transfer files from an HTTP website onto a location on my hard disk using code, without the user having to confirm the download Take a look at the webclient.downloadfile method. ...Show All
Windows Forms ListBox MultiSelect
Hello, I have a listbox, from where I have say 3 items selected, how can I find which are selected.... Basically you have to cheat everything This is what I did and it works.... ListBox box = new ListBox (); box.DataSource = dsLine; box.DataValueField = "LINE_CODE" ; box.DataBind(); for ( int i = 0; i < box.Items.Count; ++i) { string item = box.Items .Value; ListBox1.Items.Add(item); } ...Show All
Microsoft ISV Community Center Forums VB Script Crashes Access When Exporting to Excel
I am trying to solve a minor problem for a small school running Access 2000 on a network. The program runs well with several forms and reports. The problem is that one of the reports is exported to Excel. This works fine except when the database is moved off the network, the export process either produces an error message or crashes Access. The database filename is AA92603.MDB. When it is copied to the C: drive on a computer off the network, the export process produces a message box stating: Run-Time Error ‘-2147467259(80004005) ‘H:\Applications\AA92603.MDB’ is not a valid path. Make sure that the path name is sp ...Show All
Visual Studio Team System Web test failing RequestFailed: The value of the date string in the header is invalid.
All webtests I run from VS2005 RTM are failing with a response of: RequestFailed: The value of the date string in the header is invalid. The request looks like this: GET /Angel63/sidebar.asp HTTP/1.1 User-Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Accept : */* Accept-Language : en-US Host : 600m01 Cookie : ASPSESSIONIDSATDSCQA=LMGPKPGDJNEPFDPPJKBKILEP Accept-Encoding : gzip I can successfully run the same test using the beta 2 release of VS2005. The only thing I can see that is different is that the request is slightly different. Request from VS2005 beta 2: GET /Angel63/sidebar.asp HTTP/1.1 User-Agent : Mozilla/4.0 (com ...Show All
