Alexei_shk's Q&A profile
Visual Studio Express Editions Space bar
These codes allow only alpha to be entered in textboxes for Names but does not also allow the use of Space Bar. How will i make it accept space bar input so i could place spaces in the Names Im not familiar with keycodes and keychar, I was familiar with keyascii in VB6 could you give me a reference like Enter = Keyascii 13 in VB.NET. Private Sub NAMETextbox_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles FirstNAMETextbox.KeyPress, LastNAMETextbox.KeyPress, MiddleNAMETextbox.KeyPress 'Allow only alpha to be entered If Not (Char.IsLetter(eventArgs.KeyChar) Or Char.IsControl(eventArgs.KeyChar)) Then eventArgs.Handled = True If KeyAscii = 13 Then System.Win ...Show All
Visual C# Problems with references and project dependencies
Our company is heading for a major source code cleanup but we are currently stuck in the conversion process because of two problems with relative paths in project references and dependencies of external projects, respectively. First, at bit about our source code setup. Each product is maintained in its own folder with the following structure: Product A/ Trunk/ Branches/ Version-1.0/ <contents of Trunk/ goes here> Version-1.1/ <contents of Trunk/ goes here> Version-1.2/ <contents of Trunk/ goe ...Show All
Visual Basic How would I use system.net to find hosts on the LAN?
I've designed an interface for a program I want to make but I'm pretty lost in how to do it now that it's time to code. I was previously recommended to learn about system.net, so I read up a bit. Here's what I'm trying for: Enter partial machine name in a textBox. Click a button and program returns matches that include the string in the textBox. The basic stuff like putting text into and pulling text from the textBox, no problem. The complex (to me) part is what to do about the LAN query. Maybe a tutorial exists on this I've looked but not had much success. Any help, advice or pointers would be greatly appreciated. Thanks, badsign ...Show All
SQL Server First and Last record in a set
Anyone have an effecient ideas on how to do the following: For example lets say the data is Temperature over time.For example lets say the data is Temperature over time. DataSet (from a file) comes in sequentially (I've even added a "RowNumber" column). I then drop some temperature records that I determine to be bad.. so the RowNumber sequence would typically look like 5,6,7,8,10,11 etc.. (often the first few readings are bad). What I need out of the set is a bunch of aggregates, High, Low, Average, Count of Readings etc... all those are easy with the Aggregate object in SSIS... however, I struggle to get the starting temp and ending temp. What I have done is multicast the data into the following streams 1. Goes thro ...Show All
Visual Studio Team System Basic/Digest Authentication support in WebTest? (and NTLM...)
Is there a way to make WebTests work with Basic/Digest/NTLM authentication It doesn't seem to work without some intervention (if possible at all). Thanks Yes. You can set a username and password on the web test. There is a set credential button on the web test toolbar. If you click this, it will prompt you for a username and password to use when running a webtest. You could also click on the root node of a web test and set these values using the property editor. If you want to simulate different users, you can databind the username and password fields. ...Show All
SQL Server Query Or Stored procedure
Should I use query or stored procedure to get results fast. Your question is very unspecific. Usually the majority of the query time will be returning large volumes of data. Having a stored procedure is usefull for complex data retrieval or if you want to perform other actions such as logging and for having a precompiled query execution plan. Personally I prefer to just wrap up my report query in a view to keep the logic out of the report and to make updates via SQL. I see no harm in using a stored proc though. ...Show All
Visual Studio Team System Service Broker Support
I see basic SSB support has been added. But as you will know, there are always 2 sides involved in SSB communications and large parts of the configuration depends on the other side. What's the recommended way of keeping multiple DB projects synched and what other features will you provide in the future to help aid in this The "Service Listing Manager" supplied by the SQL2005 team is quite buggy and there does not seem to be any more enhancement being done on it. Maybe it should be integrated into this project-type and create/update the elements needed to communicate with the "target" service. Even though pieces are devided up between two or more database; the main schema elements, mainly message types and co ...Show All
Visual FoxPro Form behavour different if launched from menu or click event?
I am having a strange problem where the behaviour of a form differs if a form is launched from a menu or from say the click event of a button. The form is top-level with a default data session. I have a few variables that are assigned as control sources to some textbox controls. I am using the destroy event to perform some updates using theses variables. This allows the update to happen regardless if the user clicks the exit button on the form or the title bar. The problem is that the form behaviour seems to vary depending on how the form is initially launched. From a menu the above works fine but from a the click event of a button the variables are not available in the destroy event Does anyone know why the behaviour is not consi ...Show All
Visual C# Problem
Hello I have problem while using this method : public static void TransferBetweenAccounts( List < Transaction > lstTransactionList) { Console .WriteLine( "Enter the account number you want to withdarw money" ); Console .ReadLine(); Console .WriteLine( "Enter the account number you want to deposite money in" ); Console .ReadLine(); Console .WriteLine( "Enter amount" ); Console .ReadLine(); Console .WriteLine(fromAccount - toAccount); //main fromAccount = new main(); //main toAccount = new main(); //Console.WriteLine(fromAccount - toAccount); } I have a bank console application. Actually I have 3 classes Account,Transactin & main ...Show All
.NET Development Help with Disposing Form
Ok, somtimes when i call me.dispose on a form of mine, i get this error " Cannot call Dispose () while doing CreateHandle ()" Its been happening ever since i started using asynchronous calls to receive my data in my socket class's. Any ideas ...Show All
Windows Forms Merging MDI Child and Parent menus
I ma trying in vain to get 2 menu strips to merge one on an MDI parent the other on a child form so far everything I have tried has not worked. Does this feature even work Currently I have tried various combinations of setting everything to MatchOnly, Replace Remove Insert and Append. any ideas I Tell u frankly , i dont expect that some body can benefit what i post this place becouse, the poeple here dont like me in the first place, but im trying to help them .but if u trust me its up to everything i post is no joke ...Show All
.NET Development SqlBulkCopy: the locale id '0' of the source column '<column name> ' and the locale id '1033' of the destination column '<colum
Hi, I am using the sqlbulkcopy object to transfer large amount of data from one SQL server to Other. The code look like this.. SqlDataReader readerSrc = null ; SqlBulkCopy bulkCopy = new SqlBulkCopy (connDest); //Prepare Destination Table. SqlCommand cmdDelete = new SqlCommand ( "DELETE FROM " + destTableName, connDest); //Set the sqlcommand text SqlCommand cmdGet = new SqlCommand ( "SELECT * FROM " + srcTableName, connSrc); //Open source connection. connSrc.Open(); //Open destination connection. connDest.Open(); int delete = cmdDelete.ExecuteNonQuery(); //Get the data. readerSrc = cmdGet.ExecuteReader(); //begin transfering data to destination bulkCopy.DestinationTableName = destTableName; bulkCop ...Show All
Windows Forms DataGridView problem: Painting takes 1/4 of a second.
Hello I have some problems with DataGridView . I have one TabControl with two tabs. The first one contains a DataGridView and the second one contains other controls. The DataGridView has its DataSource property connected to a DataTable . This table is set up with 20 columns and has 100 rows. The problem is, when I select tab 1, the DataGridView needs 1/4 of a second to finish its painting. This is really annoying. (Reducing the number of rows does not solve the problem) Is it possible to come around this delay somehow Kind Regards Hi Yes, I see the delay. If I resize the width the delay gets event larger. If I make a full-screen (1280x1024), it takes 0.6 seconds to finish. (Then I have 42 rows and 12 c ...Show All
Visual Studio Express Editions the speed of opening an excel file is slow
Hi, I use a thread to open an excel file and I have already set the priority of this thread to highest. But the speed is too slow to open. Is there any way to improve it using thread Thank you. Opening a excel sheet is always going to be slow - its got a lot of work to do. How much slower is it opening the application in code than it is opening the application manually How are you opening, Process.start or using the Excel Object Model . ...Show All
SQL Server Reporting Service Web Service from PowerBuilder 10.5 ...
Has anyone implemented Reporting Service (Execution) Web Service from within Powerbuilder 10.5 I am trying to pass NULL value to the second argument of LoadReport function (to not get the History Snapshot) and the SOAP call gives an error message "String was not recognized as a valid DateTime". I could not pass Powerbuilder NULL (SetNull(StringColl) and StringCol passed as the snapshotID) value as the second argument to LoadReport as for some reason the Web Service could not be invoked. If I pass empty string (or 'NULL' string) I get the following error message. If I pass 'or '1900-01-01T00:00:00', then Reporting Service looks for a snapshot with this date and fails. Is there a way to send a string f ...Show All
