Shorin's Q&A profile
Visual Basic Detect Internet Connection - VS 2005 BETA 2
Hi, I am using VS 2005 - BETA 2. I'd like to use My.Computer.Network.IsAvailable to detect whether an internet connection is available. Is this the best "new" way of doing things or does the above method above detect network connectivity of some other type There seems to be a delay capturing the disconnect-connect events when I do use it, is there a way to shorten this delay In essence, what does this method wrap Can I use it to properly detect an internet, not a network connection Regards, Giovanni P. rmctwox AT ........ ve*riz-on dot net (remove the star and hypen) ...Show All
Visual C# Problem compiling linked files in VS2005 beta 2
Hi All I just installed VS2005 beta 2 and tried to compile one of my old (VS2003) solutions and it mysteriously fails. The error is CS1504 indicating that the compiler can't find the file. The strange thing is that I just converted the VS2003 solution to VS2005. Rebuilding the solution from scratch (i.e. creating a new solution and new projects and adding the source files manually) also fails with the same error. So now my guess is that either I'm doing something silly (most likely) or something is wrong with VS (not so likely). So I was hoping somebody could tell me what I was doing wrong. Here is the way my solution is set up: There ar ...Show All
Visual Studio Online help doesn't work
Hi, I'm using Microsoft Visual Studio 2005 (version 8.0.50215.44, Beta 2.050215-4400) and I'm having trouble accessing online help - it seems as though the "Microsoft Document Explorer" can't see the Internet. When I press F1 to see the reference on some C# keyword, for example, I get the error show in ms-help://MS.VSCC.v80/dv_commoner/html/1702ec84-76f9-4a82-9043-9ab8acb8aa5e.htm which is "The information you are trying to access could not be found. Various events could have caused this error." etc. This happens no matter what I search for - it only finds stuff I have locally (like help on help). I access the Internet (with no problems ...Show All
Visual Studio Team System Bug: DropDown FieldControl (Team Explorer client)
The first time I click on a DropDown control in Team Explorer client (Beta 3 Refresh) it doesn't keep itself opened. I need to click again to show the available options. Regards, Max Andrade Nope, sorry, my post was not clear. I'm Talking about the workitems attributes. Regards, Max Andrade ...Show All
.NET Development AES Cipher for sslStream
I am having major problems connecting to a specific SSL-enabled server. This server only supports AES 128 and AES 256, but the .NET 2.0 SslStream class doesn't seem to support it (although the CipherAlgorithmType enum has the values Aes128 and Aes256). When analyzing the client hello sent to the server, the SslStream client only presents the following ciphers: TLS_RSA_WITH_RC4_128_MD5 TLS_RSA_WITH_RC4_128_SHA TLS_RSA_WITH_3DES_EDE_CBC_SHA TLS_RSA_WITH_DES_CBC_SHA TLS_RSA_EXPORT1024_WITH_RC4_56_SHA TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA TLS_RSA_EXPORT_WITH_RC4_40_MD5 TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA ...Show All
Visual Basic RegEx Question: Match whole word from substring
Hello, I want to search a buffer using a search pattern and return whole words that contain the search pattern . Here's a sample Buffer: "CADLOG cat red green NAR_LOG bus stay logroll house mouse fur log crutch" Here's my search string: log I would like this to return matches: CADLOG, NAR_LOG, logroll, log Using System.Text.RegularExpressions I can match the substring within words, but I can't seem to return a whole word. Can someone help me with formatting what I'm sure is a basic regular expression Thanks!! One simple way would be to split the string into words and then look for the pattern i ...Show All
Visual Studio 2008 (Pre-release) Custom ServiceAuthorizationManager
Hi, In Feb CTP I tried it : ServiceHost host = new ServiceHost ( typeof ( Hello ), " http://localhost:9090/Hello "); host.AddServiceEndpoint( typeof ( IHello ), new BasicHttpBinding (), "" ); host.Authorization.PrincipalPermissionMode = System.ServiceModel.Description. PrincipalPermissionMode .Custom; host.Authorization.ServiceAuthorizationManager = new AuthorizationDomain (); host.Open(); public class AuthorizationDomain : ServiceAuthorizationManager { public override bool CheckAccess( OperationContext operationContext) { return true ; } protected override ReadOnlyColle ...Show All
Windows Forms Setting icon to form
Hi I face the following problem. I m using Visual Studio C# 2003 standard edition.In my project i use Modaless Form and i dont show that form in TaskBar .Now i need to set a icon for that form.I tried setting my own icon but it always displays the default one.i like to know how to set the icon for a form which is not shown in the taskbar. Please Help... Thanks private Form1_Load( object sender, Eventarg e ) { this .Icon = new Icon( @"c:\myicon.ico" ) } ...Show All
Smart Device Development Camera settings registry key "flash"
Hi, I would like to know what the registry key "flash" is for. This key is under [HKEY_CURRENT_USER\Software\Microsoft\Pictures\Camera\USER] and it's a DWord set by default to 1 but my device doesn't have any flash. Thanks, it's there by default, but don't mess with it, most devices I've edited it on that lack a flash will no longer run the camera executable until the flash value is set back to OEM. ...Show All
.NET Development ado.net 2.0 Fill method fails silently (bug?)
Please help me if you can. Using VS 2005, windows form. I have a dataset with a few tables, some of which are bound to datagrids. When the form loads, the datasets are filled with data from SQL Server stored procedures. No problem so far. I have a procedure which processes data (using stored procs), after which I re-fill the dataset, using the same code as successfully fills the dataset when the form loads. But... the fill method fails (silently) when called after the processing. Likewise, if I trigger the fill methods with a button click, the code fails to fill the dataset. However, if I step through (not over) th ...Show All
Software Development for Windows Vista SQL Database Setup and Persistence Service
I try to build a ASP.NET web application, which should use SQLPersistenceService, SQLTimerService and SQLTrackingService. I setup a database called Worfklow, where I put in all the tables for Persistence, Timer and Tracking. I also added the services to the runtime configuration in my web.config file. But it doesnt work. Here is my web.config file: < xml version = " 1.0 " > < configuration xmlns = " http://schemas.microsoft.com/.NetConfiguration/v2.0 " > <!-- This section is for the workflow services. --> < configSections > < section name = " WorkflowRuntime & ...Show All
SQL Server SQLENT server-client connection problem
Hi I have SQLENT version of SQL server, i made virtual machine and on that i have Windows 2003 Server Enterprise Edtition. As u know this SQL server instalation in in 2 parts, server and client. So Server i installed on virtual machine, and it's running perfectly, but client is installed on computer (i'm using Windows XP professional there) and problem is that i can't start SQL server, i can't connect client to server. Usualy i get error message like: "The user is not associaed with trusted SQL server connection, error : 18452" I even made a new login name in virutal's machine SQL server, but doesen't work... Domain name is same on both ...Show All
Visual Studio Team System fxcop
Can anyone tell me if the api's used in fxcop are documented anywhere I want to interrogate a dll for a specific method - which I have done using the visitMethodCall, and then interrogate that method to give me back the variable calling the method and the method parameters, e.g. public void someMethod() { a.someothermethod(anobjectinstance, "abc"); } I would like to extract the following information from the above method body a the class type of 'a' anobjectinstance (the variable name) "abc" (which I can get by following the ExtractsArguementToMessageBoxShow example) Is this possible ...Show All
Visual Studio Express Editions Creating .cpl files
How would i go about creating a .cpl file (which i will include with my app) Thx so how would i go about creating them I tried puttting an .cpl instead of an exe and that didn't work. .Also i find that .cpl's have different names to what they are on the control pannel. ...Show All
Windows Forms inherited controls
I would like to have, say, textboxes of 2 different sorts: A and B. I think inherited control (inherited textbox) is the ideal concept. The goal is to have event handlers ONLY in the Parent Form (from where inherited forms will be created, containing those A and B textboxes) I know how to create a inherited textbox, its name being tbx1. But now, ...Show All
