Matt Stum's Q&A profile
Visual Studio Express Editions Keydown
Hallo, I got a trouble with the input from my keyboard. I 've a code in: Form1_Keydown. And that works perfectly if I don't use buttons or trackbars. example: first I use a trackbar. After that I press enter (to activate my Keydown code), but at that moment de code from Form1_Keydown doesn't work any longer. Is there someone who know how I can solve that problem. does your code look like: Private Sub Form1_KeyDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase .KeyDown If (e.KeyCode = Keys.Enter ) Then //Do Code End If End Sub ...Show All
Visual Basic Mouse right click
how to disable Mouse right click in textbox control one way would be to set the contextmenu of the textbox to an empty contextmenustrip item. This would pretty much show nothing and is the only option they have of selecting an item from teh list. so drag a ContextMenuStrip to your form select textbox change the ContextMenuStrip to the ContextMenuStrip you just dropped on the form. ...Show All
.NET Development Double: keep only k significant figures
Hi, I would like to round a Double to a given significant figures (ex: 50 bits). All functions that I have see, round or trunc to a given number of decimals, which is different: I want to round the same way very big and very small numbers. I wrote a piece of code that does almost what I need, but not exactly: public static double Clear2LessSignificantBits(double value){ ulong l = (ulong)BitConverter.DoubleToInt64Bits(value); l = l & 0xfffffffffffffffc; // c is 1100 so it clear the 2 last bits return BitConverter.Int64BitsToDouble((long)l); } 1. Is there a standard and efficient way of doing it 2. If not, does my function respect the standard [1] 3. To round, do I just have to read the valu ...Show All
SQL Server Parent Package reports failure on errors, but no errors in log
I have a parent package that calls child packages inside a For Each container. When I debug/run the parent package (from VS), I get the following error message: Warning: The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. It appears to be failing while executing the child package. However, the logs (via the "progress" tab) for both the parent package and the child package show no errors other than the one listed above (and that shows in the parent package log). The child package appears to validate completely without erro ...Show All
Visual Studio Team System How to run webtest from commandline
I see that mstest.exe can run the unit tests from commandline. But this method does not work for webtest. Is there any way to run webtest in commandline. Thanks. William Hi William, Do an "mstest /testcontainer:Mywebtest.webtest" on the command line. That should help you execute the web test. If your web test is coded, you can run it from the compiled DLL using this syntax: mstest.exe /TestContainer:<DLLName>.dll /Test:<testname> - Anu ...Show All
.NET Development DataSet.AcceptChanges
If i have a dataset binded to a datagird and i make some changes on those columns on that datagrid and when i click a buttons my dataset calles its AcceptChanges method will that update those changes in my dataset so that when i open my form again those changes are still there within that column of the row that i changed in my datagrid Thank you for you timely reply. I'm just trying to add data to a table I created with the Database Designer in Visual C# studio. I created a table named DataTable1 within the database dbTutorial. I created a DataSet and a BindingSource using the visual components, and then wrote this code to add an entry: dbTutorialDataSet1.DataTable1.AddDataTable1Row( "first" , &q ...Show All
Windows Forms Refreshing in VS 2005 !!!
Hello, I have a DataGridView in my Windows Application, that is linked to a table by a Binding Source Object. How can I get my DataGridView updated with the changes that I make in my table structure. Do I realy have to remove all the links and connections and reassign them to see those changes in my DataGridView !!!!!! Thanks in advance, Mathew Hello, Thanks, but it didn't work. Shouldn't be there anything to reset it at the design time rather than the runtime Thanks again. Mathew ...Show All
.NET Development specifying custom tracelistener needs strong assembly name
I've build a trace listener that traces out message to a rotating log file. The thing works fine. The deployment packages nicely registers it in the GAC so that I can reuse it wherever I like. What I would like to do is add it to the <system.diagnostics> section of for instance an simple application. The problem I have is that I have to specify a strong assembly name. like: < add name ="testGateway" type ="UnitedMobile.Diagnostics.LoggingTraceListener,UnitedMobile.Diagnostics.LoggingTraceListener, Version=1.0.1.0, Culture=neutral, PublicKeyToken=e861178d28f74af2" initializeData ="c:\log\Refund\{0:yyyyMMddHH}.log;1" /> For for instance the System.Diagnostics it is necesary to only specify the weak name: < ad ...Show All
Visual Studio Tools for Office Handler for Outlook Explorer.SelectionChange event disappears ??
OK, I'm new to VSTO.... my registered handler pops up a message-box when I select different emails in my inbox, different folders, etc. JUST FINE..... BUT... if I generally do stuff like send or open an email, , then when I get back to the Explorer and select stuff, the event handler no longer gets executed. I saw this behavior with other events such as Inspector.Activate What am I missing Here's the code: public partial class ThisApplication { Outlook. Explorer thisExplorer; private void ThisApplication_Startup( object sender, System. EventArgs e) { thisExplorer = this .ActiveExplorer(); thisExplorer.SelectionChange += new Microsoft.Office.Interop.Outlook. ExplorerEvents ...Show All
.NET Development Error : Microsoft.Practices.WSSP.WSE3.QuickStart.Common not found
Dear sir, Where i get Microsoft.Practices.WSSP.WSE3.QuickStart.Common DLL file.I am trying to do some Example Regarding WSE, but i am stuck with the Error. So please help me. Vijil jones Bangalore. ...Show All
Visual Studio Team System Requests/Second not increasing beyond 10-15
My web server, load generating client and the database servers are all decent dual core machines. But still no matter how I setup my tests - the requests/second being generated does not increase more than 10-12. This causes a mere 4-5% CPU utilization on the webserver which is not what I want for a load test. Is there any guide/documentation or other help how to get a higher load to my web server Thanks There are a bunch of things that might inhibit your ability to get more RPS. Here are a few things to look at - (Some may seem obvious, so please don't take offense :) Are you using enough load CPU utilization on your agents / controller. Network utilization on your agents / controller - Are you ...Show All
Smart Device Development Picturebox resize scrollbars
Hi. if I have an image showing in a picturebox, of course depending on the image size itself, if the image is larger than the screen, I have told it to resize the picturebox to the size of the image. This is all cool, and shows me the vertical and horizontal scroll bars. problem is, I am unable to scroll through the picturebox. How can I scroll through the picture box so I can view the image didnt really think it would matter but I guess it does! But thought it still wouldve had the same functionality - scrollbars appear therefore you should be able to scroll. :-) ...Show All
Visual Studio Tools for Office Is it possible to create a plugin that fetches a contact list from an external source, when you create an email ?
When you are creating a new email in outlook 2003, there is a dropdown list "select names from" (or something like that, I do not know since I do not have the english language version). I would like to attach a new option to this dropdown and when that new option of mine is selected, it will trigger a method of mine that will fetch the contacts from an external source (through a web services invocation) and display those contacts in the dialog to let the user select from that list of contacts. So, is this possible in Outlook 2003 If it is not, is it possible in Outlook 2007 If it is possible, where can I find a code example illustrating how to: (1) add an option to the dropdown list (2) attach a concrete class/method (which wi ...Show All
Visual C# Index was out of range?
I really hate to bother anyone with this seemingly simple question but it appears I am at the dead end. I got this message this morning: Index was out of range. Must be .... Parameter name: startIndex . There are three problem with it. Number one: I have almost debugged this massive application and it seems everything has been working for some time. Unless somehow the input stream's format changed which remains to be checked I do not know where to look. Second, there is no pointer as to where in the source code it happens. And thirdly, I checked and rechecked and I swear I do not have any variable of parameter named startIndex in the entire project. On top of that this error message does not seem to impede the performance. F ...Show All
SQL Server Problem with multiple measure groups
Hello! I have two measure groups (MG1, MG2) with measures called M1 (inside MG1) and M2 (insideMG2). For example M1 and M2 are sales amount. The total for M1 is 150 and for M2 100. If I start my analyses with a dimension that is only related to measure group M1 I see the following behavior. Dimension M1 M2 Product A 25 100 Product B 75 100 Product C 50 100 Question 1: How can I avoid AS 2005 to repeat the total value for M2 Question 2: If I define a calculated measure that brings the value from M1 and M2 together. How can I avoid that AS 2005 calculates each cell for M2 even though M2 has no realtion to the dimension Thanks in advance ! Ole Thank you for your answer. Can you please show ...Show All
