JWBrouillette's Q&A profile
Visual Studio Express Editions TextFile online
is there any better and faster way to get the content of an "Online-Textfile" then: You will have to consider what is actually taking time. There is some thing you are not able to control in this case. The time it takes to establish a connection to the server The time it takes to request the file from the server The time it takes to transfer the contents of the file This is probably what takes 20 seconds and you should be able to measure it by taking the time it takes to step from the DL.DownloadFile() line to the next. If it is about 20 seconds than that is where your bottleneck is. If this is the case your application can most li ...Show All
Smart Device Development Problems running Platform Builder example
I tried to use the example in %_WINCEROOT%\public\servers\sdk\samples\http\asp but after I finished the readme instructions (see below) and go to http://localhost/adminasp there is nothing there. And there are no files in \windows\www\wwwpub\ except default.htm. I start the emulator using target > attach to device. // // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft end-user // license agreement (EULA) under which you licensed this SOFTWARE PRODUCT. // If you did not accept the terms of the EULA, you are not authorized to use // ...Show All
SQL Server How to ignore timepart when using LookUp with date.
Hi I want to lookup the datekeys from my datedimension. However it does not work because matching for same dates does not work because of different timeparts. The dates in my lookup-table have a 00:00:00 timepart, but the dates in my input table have a non-zero timepart. How can I ignore the timeparts or make the timeparts zero Regards, Henk Yes that's true, but the sports of SSIS is in doing it without coding T-SQL ...Show All
Windows Forms Printer Margins Changes When Locale Changes
The MSDN documention says PageSetupDialog.PageSettings.Margins are in hundredths of an inch. My CurrentUI is en-US. I set Top=70 (0.7"). When my application is run in a PC with CurrentUICulture set to some metric locale, eg German-Germany, the PageSetupDialog pops up with a Top of 7 (mm). It seems that a Margins value of x inches will be converted to x *10 mm. Why isn't it converted to x *25.4 How do I make sure that my margin values stay the same no matter what locale the application is running in Thanks. I found out more. If I enter a margin value of 25 (mm) in the Pag ...Show All
Windows Forms ?? Right-Click on ListBox Item ??
Hi everyone. As you can tell by the subject line I'm trying to determine when the right-mouse button is clicked on an item in a ListBox. From searching the news groups it seems there's no easy way to do this. But first, I'd like to raise a related question. The ListBox fires two very similar events -- "Click" and "MouseClick". Let me quote the Microsoft documentation for the "Click" event: "Occurs when the ListBox control is clicked." Okay, that seems straight forward enough. Now, the "MouseClick" event: "Occurs when the user clicks the ListBox control with the mouse pointer.&q ...Show All
Windows Forms Problem Deleting row in DataGridView in VB.NET 2005
Hi. I am using a DataGridView control, when I select a row in this control and type "Supr" key, the row that I selected is deleted of DataGridView Control. I want to display a Messagebox after typing "Supr" key asking: "Are you sure you want to delete this row ", if user select "No" button, the row shouldn’t be deleted of DataGridView, but if user select "Yes" button, the row should be deleted of DataGridView control. I tried to do this using RowsRemoved event,but it 's impossible because this event is executed after the row is deleted. Could you tell me which event I should use , ...Show All
Visual Studio Express Editions how to add flash content
hi can anybody tell me how to add a flash content to a visualbasic form If you have installed a Shockewave plug-in or the Flash Player then you should have the Shockwave Flash ActiveX control installed on your machine. Add it to your Toolbox then add an instance to your form. Voila. ...Show All
SQL Server error on server
TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer2005 . ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title> SQL Server Reporting Services </title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" /> <meta name="HTTP Status" content="500" /> <meta name="Produc ...Show All
.NET Development Master page:dynamic loading of aspx pages in multiple conten place holders
hi.. i hav an issue as.. my application has one master page contains multiple contentplaceholders and buttons.on button click event i hav to load aspx page.. in my trial i tried with ascx (controls) its working..i dont get for aspx page. Reply...immd Thanks in advance ...Show All
Visual C# Is it possible to serialize to XML with comments?
Topic says it all pretty much. I simply want my xml-serialized objects to have comments in the XML, so that a user glancing at the XML knows whats what. Something like this: < xml version="1.0" encoding="utf-8" > <Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!-- Various user information --> <UserInformation> <Name>John Doe</Name> <Address>1234 Nowhere Blvd.</Address> <!-- Direct relatives, just a simple comment --> <Children> <ChildName>Jane Doe</ChildName&g ...Show All
Visual Studio Express Editions databinding
how can i bind last record to lable box Hi, You can write a sql Query that returns the last row for the table in DB and bind it to lable control. Hope this helps. Thank you, Bhanu. ...Show All
Visual C++ Error with istream_iterator
Hi, I am new to using Microsoft VC++and STL . Just wrote a test program but doesnt seem to be working. Can any one tell me what the problem is #include <iostream> #include <algorithm> #include <list> using namespace std; int main(){ int a[10] = {12, 3, 25, 7, 11, 213, 7, 123, 29, -31}; int *ptr = find(&a[0], &a[10], 7); list<int> list1(&a[0], &a[10]); list<int>::iterator i = find(list1.begin(), list1.end(), 7); cout<<"type something including an x followed by one whitespace \n"; & ...Show All
Windows Forms object referrance not set to an instance of object
i have created a new usercontrol using vb.net and build it. getting a dll from its bin folder,then add contol to toolbox in testing project on same machine .test it it works fine! but when,on new machine ; i copy that control dll to a new machine's testing project\bin folder using LAN. used that dll from same bin, i added it to toolbox. when i ...Show All
Visual C# Thumbnail View at the Open File Dialog
I'm using the standard open file dialog of windows in my c# application. The problem is, I want the dialog to show the files of the current directory with the thumbnail view. How can I do that Thanks mike See the following article on CodeProject: http://www.codeproject.com/cs/miscctrl/FileDialogExtender.asp ...Show All
Visual C# C# define question?
I want to be able to do something like this #if WINDOWS #define CONNECTIONTYPE OdbcConnection #else #define CONNECTIONTYPE MySqlConnection #endif Then later I could have a function such as CONNECTIONTYPE connection = new CONNECTIONTYPE ( "blahblah" ); But I have read that in C# you cannot define things as variables... Does anyone know of any other way to do what I am trying to accomplish I think this is where you should use the Factory Pattern. Do this (let's consider Connection to be a base interface/class of both OdbcConnection and MySqlConnection: Connection connection = ConnectionFactory.Cr ...Show All
