tom jonson's Q&A profile
Visual C# Using AccessKeys in TabPage.
I am tyrying to set AccessKeys for my TabPages in a TabControl. However when I set the text of the TabPage to "&Location" it does not do any of the AccessKey functionality. No underline. Doesn't select it when I press "Alt-L". Is this a bug with the TabPage control - or do I need to do something different for this control Thanks. Tab Controls in Windows do not support accelerator keys. The built-in mechanism for changing tabs is Ctrl+Tab to step through. If you need this support, there are a few community solutions out there such as: http://www.codeproject.com/vb/net/MnemonicTa ...Show All
Windows Forms Why square brackets, on a method signature?
Hi can anyone tell me why square brackets are used in this method signatue Protected Overrides Sub OnInsert(index As Integer, value As [Object]) I noticed it when looking at the msdn documentation for the CollectionBase class. cheers :) Square brackets are used if a type name matches a reserved word of VB.NET, like in: Imports System.Reflection ... Dim a As&nb ...Show All
Windows Forms Where is the link to the appupdater article?
Several newsgroups have this link to the source code, article etc for the appupdater. Howerver, the link is dead. http://www.gotdotnet.com/team/windowsforms/appupdater.aspx Where did it go Thanks. read this: http://www.windowsforms.net/Forums/ShowPost.aspx tabIndex=1&tabId=41&PostID=1910 ...Show All
Visual Studio 2008 (Pre-release) WCF and Windows 2000
Hello folks, Will it be possible to use install client application based relying on WCF on a Win2000 client workstation I understand that the server must be running at least win2003 server but I'm not sure about the client side requirement. I work in the Financial Software industry where many clients have not yet migrated to win xp on the desktop (at least in Montreal ;-) ) As far as client-side operating systems goes, WCF requires XPSP2 or Vista. The reason being is that we depend on many of operating system enhancements released with SP2 that just aren't available on Windows 2000. I don't that should pr ...Show All
Visual Studio How to add a custom dialog for properties?
Is there a way to define a property that would fire a custom dialog instead of being a string, int or enumeration For example, I define a property "Item References" and when I select this property I have this little (...) button on which I can click to fire a dialog that will guide the user setting the actual value (e.g. filling a combox box with names of all domain classes that exist in the model). I believe this thread http://forums.microsoft.com/msdn/ShowPost.aspx PostID=60696 is linked to a similar question but I'm not sure I fully understood Gareth's reply. Cheers, Alex Hi Dmitriy ...Show All
Visual J# Unable to load the J# Browser Control
I've created an html page with ONLY the following code.... <OBJECT WIDTH="1024" HEIGHT="768" CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f" VJSCODEBASE="myfile.dll#_0" ID="Object1" > </OBJECT> where the dll file is named "myfile.dll" and the first class file is _0.jsl and each time I load the file into internet explorer the statusbar shows: "Unable to load the J# Browser Control in file file:///C:/temp/projects/myfile/myfile/bin/debug/myfile.dll " Hi, You need to specify the JBC class name along with the ...Show All
Visual Studio Team System S Rule to check String.Empty is used instead of ""
hi, i want to create a custom rule for FxCop that should check is String.Empty is used instead of "". Please give some idea for this and any code snippet will be more helpful. Thanks See my reply to this question in the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=439674&SiteID=1 ...Show All
.NET Development Obtaining private key container name from certificate ?
First off, sory that this might be the wrong forum, but there doesnt seem to be a forum dedicated to Security and/or cryptography. I was wondering if there is a way to obtain the private key container name from an X509Certificate (either from the Microsoft.Web.Services2.Security.X509 or System.Security.Cryptography.X509Certificates namespace) This would be quite handy since then i'd be able to make a csparams object with the containername and use it to generate a digital signature. If neceseary i'd use crypt32, but i'd like to do without. Thanks in advance, Ben Blok. Hi Ben, ...Show All
SQL Server Web Service Task error
I am trying to configure a web service task. I have created the HTTP Connection, and specified the WSDL. When I select the service name on the Input page, I get the error ... Item has already been added. Key in dictionary: 'BaseTO' Key being added: 'BaseTO' I have previously been able to successfully configure the task in a separate project. The Webservice methods take and return complex parameters. e.g. BaseTO above is custom transfer object type which the other transfer objects inherit. It is a List<> of some type of this object which is being passed/returned from the service. I suspect these complex types will not be supported anywa ...Show All
Windows Forms ComboBox.ClientSize.Width - broken?
OK, simple question this time. I have a bunch of controls that I have to manually adjust the size on. The control size is determined by measuring the contained text, adding the difference between the overall control size and the control clientsize to account for borders. This has been working quite well until I started working with ComboBoxes. Unfotunately, the button that causes the ComboBox to drop down is counted as part of the clientsize. This causes the control to be sized to narrow so that the drop-down button obscures the currently selected text. Does anyone know of a way to determine the true clientsize of a ComboBox I can alw ...Show All
Visual Studio Express Editions Need help with for and pictureboxes
I'm making a map editor to make maps Every tile is a picurebox. In the menu there is a command "New" wich will load all the default pics into the picturebozes, so you can make a new map i created this for statement dim i as integer For i = 0 To 391 PictureBox(i).image = My.Resources.Image_default Next i But this doesn't work. There is something wrong with the PictureBox(i).image Please help me. I'm using vb2005 Thanks in advance, Radexxion Sure. You will need "Windows Application" project. Then you will need to design your application and implement. What kind of editor you have I mean your map is matr ...Show All
Visual C++ Where is the MFC-Application Template
Hello, i miss the template to create MFC-Apllications on VC++ Express Edition. Where can help me Regards mbs-systems Is there any way then, I can add MFC Templates for developing MFC Applications It says to use community for getting MFC Templates. Is there any link where I can download them ...Show All
Visual Studio Express Editions ZwQuerySystemInformation: buffer size
Hi. How can I know beforehand the buffer size (or the number of processes ) used in ZwQuerySystemInformation function I use SYSTEM_PROCESS_INFORMATION as enum value of the SystemInformationClass parameter. Thanks in advance. Ciao guaglio! Call it twice. First with SystemInformationLength set to 0. It will return the required buffer size in ReturnLength. ...Show All
SQL Server PackageID and GUIDs in ExecuteSQL task
Am I looking at a potential bug here or do I not understand the feature properly I have an ExecuteSQL task that inserts into a table for logging and includes the System::PackageID as one of the values. It's stored in my table as a uniqueidentifier. When I set the output variable in Parameter Mappings tab of the Execute SQL task to VarChar, all works great. WHen I set it to GUID as the data type in that tab, it outputs a different GUID than the actual System::PackageID variable. -- Brian This is not a bug, although several have thought it was. If you look at the system variable you will notice that even though it looks like a GUID th ...Show All
Visual Studio 2008 (Pre-release) How to turn off anti aliasing for small text?
Anti aliasing small text tends to make the letters look blurry and indistinct. I cannot find a way to disable the anti-aliasing of text in WPF and as a result label or button text looks really bad. Ideally I'd like to disable anti aliasing globally for font sizes below a certain size. How can I accomplish this -Ryan rfuller987@hotmail.com Since it appears that you cannot turn off anti aliasing globally and if you want to use ClearType, you might try the ClearType tuner from: http://www.microsoft.com/typography/ClearTypePowerToy.mspx After tuning my system, my fonts look better - though still no ...Show All
