stephen terapak's Q&A profile
Visual Basic How do I find documentation on specific classes or objects?
I am a hobbist. One of my ongoing problems is when I get an idea about how I want to solve a certain situation and get way too many returns on Google or MSDN. Example: I want to write an app that will ping a remote host using two switches to the CMD utility ping, like this ping hostname -f -l 1200. This would ping the host with and MTU of 1200. So I go to Google and start searching. After a while I come accross a nice little object called "My" which has a method my.computer.network.ping( IP or Host ). Hey cool! This should be easy. OOPS all this returns is a result of SUCCESS or FAIL. I need to pass in the -f -l flags. So in ...Show All
Visual Studio Express Editions Timing issue
I would like to find out if there is a way to add a bit of time for one line of code to complete before Starting the next. I would like my textbox to display the contents of an action as in: case 4 TextBox1.Text = "My Text" ---Do Somehting here to slow the system down for about 5 seconds TheAmount = TheAmount - 50 If TheAmount <= 5000 Then MessageBox.Show("Your Amount is: " & TheAmount) End If My problem in the above is that the MessageBox shows up before the user has a chance to see what the text is. Any Ideas Thanks The first question is why do you want ot slow t ...Show All
Windows Forms New whitepapers for building DataGridView custom cells and columns
Hi all, We just posted two new whitepapers about building custom cells and columns for the DataGridView control: Building a custom RadioButton cell and column for the DataGridView control ( Source and Sample Code ) Building a custom NumericUpDown cell and column for the DataGridView control ( Source and Sample Code ) The docs, source code and sample code are under http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=13&Cat=Controls&tabindex=5 Enjoy! -Regis Microsoft Windows Forms team This post is provided "as-is" I'm using the Cal ...Show All
Visual Basic MIgration from VB to .Net
We have a sample code for a VB ASP based system. The objective is to convert the application into a .Net based system. As no specifications are available for the system in hand, business specifications first need to be derived from the sample code and then the system needs to be redveloped based on those specs in .Net. Is it advisable to do so or one should do requirement gathering from the scratch. What parameters can be used for such a decision. Please advise. Well it really depends on the individual project. If the current system meets all the business needs then why rewrite it at all If the system meets ...Show All
Visual Studio Express Editions class of asp objectdatasource to visual basic .net
I write a class to give the methods select,update an insert for the component objectdatasource of asp.net How i can use this class to fill a datagridview in visual basic .net ...Show All
.NET Development SQL user permissions
Using C# how do I obtain information about the access permissions on an SQL Server database. For example, I need to discover if a user is alllowed to perform select, add, delete & updates on a table. I dont think it is implemented. If you ask me, it would be a potential security risk if you would supply a list of stuff a user can do. ...Show All
Visual C# Save Combobox items to file (not .txt)
I have a program which has 46 diffrent combo boxes. The items in these boxes change according to what the user selects (ie Box35 items changes according to what item is selected in box 30). What I would like is for the user to be able to set all the combo box items the way they want, click save, and the program save them to a file (pref not a text file, XML maybe ). I can sort of conceptualize the saving of each "item" of every combo box and writing it to a text file, but I would much rather save it to a custom file or something else (ie a file with my programs unique file extension). I would also eventualy need to be able to popul ...Show All
.NET Development A question on XPath...
Dear Experts, I got a problem on updating the value of an XML node. Please take a look at the following source codes. I am trying to update the node <EmailAddress> that has a value of 'peter@test.com' to 'david@test.com' , say for example. Unfortunately, the codes always locates the first node and updates it. That is, it always locates the <EmailAddress> node with a value of ' john@test.com' . I guess there would be something wrong with my XPath. Could you please advice a correct XPath (or otherwise) that can fix this problem Many thanks for your help. Tigger A) Code fragment: string xPath = "appSetting/E ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDXInfo Tutorials
Hi, I posted this same list on a couple other forums without any replies. Eventually I ended up submitting my own first example and of course it gets marked as resolved. Plegh! Like a number of other beginner's to game programming, I am having a difficult time deconstructing the Microsoft examples. They always throw in the whole kitchen sink! I would like to see some very rudimentary code samples which each do one simple thing. The Digipen seminars were a good start, but how is a beginner supposed to make sense out of a game engine which is spread out over 20 pages I've found a number of sprite tutorials, but every one uses a diff ...Show All
Smart Device Development could .netcf 2.0 serialport component not support windows mobile 5.0 ?
Hi everybody : I read many articles in forum ; there are many people having this problem. could anyone have solution in this problem What problem Please be very specific, see this: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html ...Show All
SQL Server INCLUDE Clause
Im trying to decide if I should or shouldnt use the INCLUDE clause on indexes in SQL 2005.. Or if I should continue creating standard covering indexes. I care mostly about the performance differences.. If anyone could share a definitive answer I would really appreciate it.. Thanks, Paul Cool.. Thats what I was thinking as well but I was wondering if there was something I am missing.. NNTP User wrote: Hi Paul, I don't think there is much of a difference between included column and non-included column covering indexes, unless you need to cover either: A) More than 16 ...Show All
Visual Studio Express Editions Help with databases
Hi I have a database with about 20 columns one of which is vehicleNumber and one of which is temperature. I have many different vehicleNumbers. When the user types a vehicleNumber into a text box I need to collect all the temperatures for that vehicle and find the average temperature. I am not using SQL, I'm using an access database with the dataset and all that. I found a little information suggesting a dataview. Can anyone help me Just to visualize here is a shortened example of my database: VehNum Temp 123 73 456 68 123 83 456 79 123 81 456 72 ...Show All
.NET Development DataReader vs. DataAdapter
hello, I have a problem to understand the DataReader. There is a temp table in a database, I search some values and I have to insert the values in a other ( permanent ) table. Now I read the values with the Datareader from the temp table like this Hi, First you need to store your values somewhere - perhaps an ArrayList (.net 1.1) or List<> (.net 2). And then you will have to insert the values stored in the list one by one. Or, you might consider using a dataadapter/datatable approach. Combined with batching will yield better performance with less coding. ...Show All
SQL Server BROKER_QUEUE_DISABLED problems
I have created a queue and service all in the same database as follows: CREATE QUEUE ODS . [Queue Watch] ; CREATE SERVICE [Queue Watch Service] ON QUEUE [Queue Watch] ; Next I created an event Notification as: CREATE EVENT NOTIFICATION [OrderQueueDisabled] ON QUEUE [ODS] . [Order Process Queue] FOR BROKER_QUEUE_DISABLED TO SERVICE 'Queue Watch Service' , 'current database' ; When I get the queue to disable ( [ODS] . [Order Process Queue] ) by setting the activated stored procedure to do a 'Select 1/0', I don't get a message in the ODS.[Queue Watch] queue. There is nothing returned from ...Show All
Visual C# What algorith does garbage collector uses,Why it is non -deteministic ????
Recently I faced an interview in which this question was asked "What algorithm garbage collector uses and why its non-deterministic " Please explain it... If you want even more info, check out the following episode of .NET Rocks. This was an interview with Chris Sells, one of the people who complained to Microsoft about the lack of clean-up optimization until the Dispose() pattern was implemented. http://www.dotnetrocks.com/default.aspx showID=10 ...Show All
