Roy mm's Q&A profile
Windows Forms Enclose all Properties within #region directive
Hai ....., How can I enclose all of the following Members within a region directive; 1. Member variables 2. Properties 3. Methods Hai vbjunkie, Here is the listing: //start region title if this is the first property if (propertyIndex == 0) //indicates that this is first p ...Show All
Windows Forms Creating custom border
Hi all, I am using System.Windows.Forms namespace for creating some graphical application on C#. I need to create a custom border for Panel control. Thank you, Duvel Sorry it posted twice, I posted and it took very long to show  ...Show All
Visual Basic list all User accounts
Does any one know how to return a list of all the users accounts. Found it ... Dim DomainUser As String = System.Security.Principal.WindowsIdentity.GetCurrent.Name.Replace("\", "/") Dim ADEntry As New System.DirectoryServices.DirectoryEntry("WinNT://" & DomainUser) Dim User_Name As String = ADEntry.Properties("Name").Value T ...Show All
Visual Studio Team System PRF0025: No data was collected
I receive error PRF0025 when instrumenting an ASP.NET custom control from Visual Studio Team System RTM. This control is implemented in a separate dll (M2Form.dll). I have an ASP.NET web application that hosts the control on Default.aspx. I have included the web application project in the targets folder of performance explorer, I have marked the web application as launch but not instrumented. I have also included and instrumented the projec ...Show All
Visual C++ Help on very basic OpenMP program
Hello, I have a hello world program that uses OpenMP, and I am unable to understand it's behavior. The code is: #include <iostream> #include <omp.h> using namespace std; int main () { cout << "Max openMP threads = " << omp_get_max_threads () << endl; #pragma omp parallel { int num = omp_get_thread_num ...Show All
.NET Development error while attempting to insert new record in dataset through web service
Hello I designed an 3-Tier Application in Vs2003.NET I used ASP.NET web service which contains a component class called CustomerClass which contains an OracleDataAdapter and dataSet class called CustomerDs and there are a database in oracle 9i and a windows Application that contains a reference to a web service in one interface I have a datagrid that its datasource is a dataset assigned to a table called Customer and I want to ...Show All
Visual C# How to get the Last Month from System.Date ??
Hello Everyone, I'm using the System.DateTime curr = DateTime.Now; this gives me todays date...As today is 22nd Feb, 2006.....From this date if we want to get last month how we get it.... I want something that can give me 1/1/2006 -- 1/31/2006 (mm/dd/yyyy) Secondly, how can I say get this month or this quarter.. Say this month -- 2/1/2006 -- 2/28/2006 (mm/dd/yyyy) This Quarter -- 1/1/2006 -- 3/31/2006 (mm/dd/yyyy) If you can ...Show All
Visual C++ How can I read the txt file into CString object???
I like to read the content of txt file into a CString object without losing the spacing between words like (eg. I like apple.). But the way I tried give me only the this format like "Ilikeapple.". The following is my code. char htmFile[50]; *htmFile = 0; while ( ! fhtmFile.eof()) //Read in the content of html into CString object fhtmFile >> &htmFile[strlen(htmFile)]; m_strhtmFile.SetStri ...Show All
SQL Server How to reference different databases on different servers in one query
Hi, I'm a novice to SQL Server, though I have some experience in Access. My problem is this: I have a table on my local database that I want to insert into a remove database on a different server What are the steps neccessary My local server name is 'HOME\SQLEXPRESS' Local database: 'MyDBTest', table name: 'dbo.Courses' (the fields are: ID, CourseName, TeacherID) The remot ...Show All
Visual Studio Express Editions I have it install correctly but I keep get this error (in message) and can't do anything
Could not load type "microsoft.visualstudio.shell.interop.ivsrunningdocumenttable2" from assembly "microsoft.visualstudio.shell.interop.8.0, version=8.0.0.0, Culture=neutral, publickeytoken=b03f5f11d50a3a'a My guess is that you missed something in uninstalling the Beta. From the error message, it sounds like the VSPackage for the Windows Forms designer isn't getting registered properly, possibly due to an artifact from the Beta. The folowin ...Show All
Smart Device Development The project consists entirely of configurations that require support for platforms which are not installed on this machine
I get this error when converting all of my EVC 4.2 vcp files to Visual Studio 2005 projects: The project consists entirely of configurations that require support for platforms which are not installed on this machine. An example EVC 4.2 project is here and was created using bakefile 0.1.8. # Microsoft eMbedded Visual Tools Project File - Name="softgps_user_input" - Package Owner=<4> # Microsoft eMbedded Visual Tools Generated Build File ...Show All
Visual Basic How to Delete not Dispose of Picture
I have a picture box that contains a photo i want to delete that photo when i click my delete_image _button, right now i do it like Picture.Image.Dispose.....But this does not delete it only removes the photo...I want to delete it all the way...any help would be great thank you! Hi! You want to delete image or your want to delete file with this image To delete file - use System.IO.File.Delete(). But you must know file name and you mu ...Show All
Visual Studio Express Editions Problem with maskedtextbox validation and keypress
Hi, I have a problem with masked textboxes. I'm really getting annoyed with this one and can't find any more a solution. I have a form where you enter inputs and there inputs are recorded to the db. I have a maskedtextbox which is optional. But I want that if someone writes something in it, it checks validation and if it's not valid, it's lbl will become red to indicate user to enter a valid data. Maybe I have a logic or syntax error but&n ...Show All
Microsoft ISV Community Center Forums What's your experience with the buddy program?
Started by admin at 03-28-2005 5:11 PM. Topic has 2 replies. 03-28-2005, 5:11 PM admin Joined on 12-16-2004 Posts 14 What's your experience with the buddy program We've already received a couple of posts on buddy experiences (thank you!) and would love to see more of them, so feel free to jump in and reply to this post and share yours! Thanks, Brenda [msdn/isv] ...Show All
Software Development for Windows Vista The workflow failed validation
Does anyone know why the below would occur if I simpily moved it to a different assembly Thanks in advance, Mardo -- Server Error in '/Mimi' Application. Put a try catch block around the call to CreateWorkflow, catch WorkflowValidationFailedException and look at the Errors property. Like below: WorkflowInstance instance = null ; try { instance = workflowRuntime.CreateWorkflow(Type,Dictionary<string,object>); ...Show All
