Software Development Network Logo
  • Visual C#
  • Windows Vista
  • VS Team System
  • Visual Basic
  • Smart Device
  • Visual FoxPro
  • Visual J#
  • Windows Live
  • .NET Development
  • Windows Forms
  • Microsoft ISV
  • Game Technologies
  • VS Express Editions
  • SQL Server
  • Visual Studio

Software Development Network >> ewar's Q&A profile

ewar

Member List

joeycalisay
Olko
dpf
Deepak Sharma
gokce
Eric Harmon
Surfsune
Vidit Mittal
MarksmanWaugh
James - Small Projects
John Blackman
Anuj
Eugene Mayevski
dpogo
HHH MMM
Fizban
Joe B
AnilKumar1980
aji123
stuart.marsh
Only Title

ewar's Q&A profile

  • Visual Studio Team System ASP.NET unit tests and the Page Lifecycle

    I am writing unit tests for some ASP.NET webcontrols and have hit a brickwall. Some of these controls depend on the page lifecycle.  For instance, one of the methods on a control works only on Prerender or after Page load. I tried the private object's invoke method like below, after adding my control to the page, and before calling the specific method of the control:                     PrivateObject po = new PrivateObject(page);                   &n ...Show All

  • Visual Studio Express Editions browse a folder & open a file??

    Hello everyone! I have a problem, when I do folderBrowserDialog then make the selected file to be shown in textbox, (I named the textbox  selectedPath) then whenever I would select a folder from the folder browser, it works perfectly, but with openFileDialog.... nothing works the same way as folderBrowserDialog.... how do you set the thing where you are to select like the only .jpeg files like when you open a photo editor, then you do OPEN, the file browser only lets you see picture formats such as .jpg .jpeg .png .bmp .ico Show All how do you do this Thank You everyone! Keehun Nam   KN1123 wrote: Hello everyone! I ...Show All

  • Windows Forms Threading

    I've done some things with threading before, but this one is a little different. I have a class file that I access to ping a server, any server, whether with IP address, url, or intranet server name and all works fine.  All with a single click of a button. The server name is sent to the class via a textbox and a string is sent back with the server response - if any - or an error. I need to now set this up to continously to ping not one server, but several servers.  This program may run all day.  So, it seems to me that threading is the answer. But, I'm not sure how to implement this one. Here's some sample code ...Show All

  • Visual Studio Team System profiler links

    In the spirit of getting information flowing - one recommendation for staying current on what's happening, knowing beta 2 workarounds, etc. is to fire up an RSS feed reader (I personally use RSS Bandit but there are plenty of others to choose from) and subscribe to blogs: For profiling, at a bare minimum subscribe to the Profiler Team Blog:  http://blogs.msdn.com/profiler   For VSTS workaround and other information, subscribe to the Visual Studio Team System blog: http://blogs.msdn.com/askburton And to just swamp you with feeds, here's the list of Team System Bloggers so you can pick what makes sense for you: http://lab.msdn.mic ...Show All

  • Visual Studio Team System Unit Test Throws Exception

    I'm attempting to learn how to use unit tests. However I have never experienced this type of error before and what it means. "Not Runnable GetNameTest TestProject1 Error while setting custom property UrlToTestAttribute: The type initializer for 'Microsoft.VisualStudio.TestTools.TestCaseManagement.UnitTestUpdates' threw an exception." The test method is as follows: /// <summary> /// A test for GetName () ///</summary> [ TestMethod ()] [ HostType ( "ASP.NET" )] [ UrlToTest ( http://localhost/test )] public void GetNameTest() {     object target = TestProject1. TestClassAccessor .CreatePr ...Show All

  • Visual C# Help with Cookie in Webbrowser

    I am using Webbrowser to navigate a web. But the site set cookies in the web page. I want to clear them I tried that with webBrowser.Document.Cookie = ""; and webBrowser.Document.Cookie = "xxx="; that does not affect the value without plus "xxx=;" before original value "xxx=WERQFA...". How would I clear the Cookies Hi if you want to delete cookies using ASP.net else delete your cookies from the web browser Tools> Options> Delete Cookies or get the folder name Cookies and delete everthing in that folder. Hope this helps. ...Show All

  • SQL Server Locating idle sessions using dm_exec_... DMV's

    Hi I have been looking at the new DMV's prefixed with dm_exec_....and found a limitation with them. Books online says sysprocesses is replaced with sys.dm_exec_connections, sys.dm_exec_requests and sys.dm_exec_sessions. The problem I came accross is identifying any sessions connected to a specific database which were idle. This is the sort of thing you need to know if you tried to restore a database and it says the database is in use. I wonder if this is a bug or by design you can find idle connections by determining which connections have no active requests. select * from sys.dm_exec_connections ec le ...Show All

  • Visual Studio Team System Changing ByVal arguments

    Is there or has anyone written a rule to check whether ByVal arguments are changed 1) In order to provide our developers with correct calling information in a call stack it is important that we have the original values. 2) If the developer was intending to pass information back to the caller this would highlight that it won't go. Conversely - unchanged ByRef arguments. If the value is never changed withing the method - why was it ByRef in the first place. These are interesting ideas. The first one is bound to be noisy, there are many reasons why you might modify a value that's passed into a method, if only t ...Show All

  • Visual Basic used to be cmdShowForm and cmdHideForm what is it now?

    I am using the VB 2005 Beta program and I know the routines for VB6. In VB6 a command button could be put on a form and then code written/added to get from one form to another; the old code was cmdShowForm and to to hide the form: cmdHideForm frmSecondForm.Show et cetera but VB 2005 is different; can you advise me as to what the new code for VB 2005 is I think your problem is that as forms are treated as classes you need to instantiate an instance to use it. So if you have a form with a name FrmMain as an example. To display it you would do something like Dim Main as new Frmmain Main.Show  or Main.Show ...Show All

  • Software Development for Windows Vista Suggestion for the SQLTracking Service

    Hi, I don't know if it makes sense, but I would like to override the GetProfile (...) method of the SQLTrackingService in order to specify a Custom profile for tracking. But this class is sealed... Any comment Serge Luca Guidance, Belgium MCSD.Net, MCT blog: www.redwoood.be You can add a custom profile by putting the xml serialized version of a profile into the profiles table. Look at the Profile editor sample application in the SDK to get an idea of how you might do that. ...Show All

  • Windows Forms Textbox as "a required entry" using triangle mark in its right bottom corner

    Hi, anybody help me, please I want create a Textbox which inherits System.Windows.Forms.Textbox but have the ability to indicate that the Textbox is a "required field entry" by giving triangle mark at its right bottom corner. A boolean Required property can be added, allright, but my problem is how to draw the triangle mark when user set the Required property to true Inheriting from System.Windows.Forms.Textbox is another one I needed, because I don't want to lose the default implementation of original Textbox. Thanks. Try this: public class MyTextBox : TextBox {   private bool _required = false ;   public MyTextBox( ...Show All

  • Visual C# Any API that allows the copying of a directory ?

    Hi Guys, i am working with files and folders in my project. Currently my method of "copying" a directory is to recurvisly go through the original folder and reproduce the folder structure in my destination folder and the copying the files over. Does C# cater for a Directory.CopyDirectory() method Hi, Read the following post: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=88811 If you want this operation to be done in a single step, then you would need to use Win32 API. Regards, Vikram ...Show All

  • Windows Forms Hide certain standard control's properties from designer

    Hi, I created a custom control which inherited from Forms.Button. There's no problems to create & expose custom properties but... I cant find anyway to hide the standard Button's properties... Note that I'm using J# Thanks override the property, apply the Browsable(false) attribute. . . call the base property to access it. this is c#, but the approach should be the same: public partial class MyTextBox : System.Windows.Forms. TextBox { [System.ComponentModel. Browsable ( false )] public override string Text { get { return base .Text; } se ...Show All

  • Visual Basic cannot update MySql database from DataSet

    Hey all, I'm developing a Windows application that connects to a MySql database. I declared a MySqlDataAdapter and a DataSet as Friend in a seperate Module..... did this so I can access them from various forms. (Is this the right way to do it ) I then populated my DataSet with the code below:     Public Sub PopulateECNDS()         Try             Dim conn As New MySqlConnection             conn.ConnectionString = connStringLocal          &nbs ...Show All

  • Visual C++ HandleInitDialog returns FALSE when successful in VS .Net 2003

    Hi, I wonder if someone can confirm this issue that I'm seeing between VS 6.0 and VS .Net 2003. In the bardlg.cpp file that ships with VS .Net 2003, the HandleInitDialog function is defined as follows: LRESULT CDialogBar::HandleInitDialog(WPARAM, LPARAM) {    Default(); // allow default to initialize first (common dialogs/etc)    // create OLE controls    COccManager* pOccManager = afxOccManager;    if ((pOccManager != NULL) && (m_pOccDialogInfo != NULL))    {       if (!pOccManager->CreateDlgControls( this , m_lpszTemplat ...Show All

©2008 Software Development Network