Martin Mason's Q&A profile
Visual C# Windows client app permissions on remote server
Posted elsewhere but with no responce: C#, client=XP, server= W2003 I was wondering if someone could give me a shove in the general direction I should be heading. I have a windows service running on a server. It watches an Import folder, and when a sub-folder appears there, it takes it, processes it and then moves it to a Completed Folder. If any error occurs, it moves it to an Error Folder. I created a client application, which amongst many other operations, allows the user to select a folder (the above mentioned sub-folder) and place it in another location (the above mentioned Import Folder). Here's the catch, when I was ...Show All
Windows Forms element coordinates from webBrowser class
Hey all I am creating a basic HTML editor, and so far i have a split screen containing a RTB where code is inputted and a webbrowser, where the code is parsed. When I load an image and it is parsed with the webbrowser, I would like a button to be created next to the image, which the user can click to perform various operations on it. How could I do this - i need to get the coordinates for the image. Obviously, i can get the horizontal position by testing the alignment in the text, but apart from that. I can imagine creating a small dataset on how many text lines have been used (counting how many /n's etc) but I was ...Show All
Windows Forms Floating Form within a Form
Hello, For the past couple of days I've been perplexed as to how to create a certain effect with Windows Forms. Basically I'm looking to create a floating form within a form, so to speak. A user interface similar to the one employed by MS Access and NetTools is what I am trying to emulate. Screenshots for NetTools can be found here: http://users.pandora.be/ahmadi/nettools.htm and everybody is familiar with Access. I appreciate any help. Thanks, James I think you're talking about MDI applications. Check this out: http://www.c-sharpcorner.com/winforms/MDIAppsGAG.asp ...Show All
Visual Studio Express Editions Creating A Screensaver
I am wondering if anyone could help me to create easily a cool screensaver. Thanks. From MSDN Library: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.KB.v10.en/enu_kbvbnetkb/vbnetkb/818359.htm Or online @ http://support.microsoft.com/default.aspx scid=kb;en-us;818359 ...Show All
Visual Studio Team System VS2005 RC1 loses Source Control settings (using TFS Beta 3)
Since this problems seems to be with Visual Studio 2005 RC1 client, I am posting it here instead of at TFS forums. I open up VisualStudio after a fresh install, go to Tools->Options->Source Control and set the plug in to Team Server. Then I go to Tools->Connect to team server and add our TFS Beta 3 server. At this point, Team Explorer is blank and there is no way to tell that window to refresh its contents. Then I go to File->Source Control->Workspaces and create a workspace and map my TFS project to local drive. Then I do File->Source Control->Open from Source Control, the solution on the server. The solution is downloa ...Show All
SQL Server Trouble with OLEDB Data Source
A little background first. I have a header table and a detail table in my staging area/ods. I need to join them together to flatten them out for load. The Detail Table is pretty deep - approx 100 million rows. If I use the setting (table or view) and set the table name (say, the detail table), the package starts up nicely. But if I switch the OLE DB Source to using a SQL Statement and then join the tables in the SQL, then the Pre-Execute phase of the package takes a VERY long time. I have waited as long as 30 minutes for this phase to complete, but it never finished. Another twist...If I take the join select statement out of the OLEDB ...Show All
.NET Development How can I get the local windows user folder in WinXP using C#?
I am tryin to get the local user folder in C# using SHGetSpecialFolder and I wrote this code but it didn't work [ DllImport ( "shell32.dll" )] private static extern bool SHGetSpecialFolderPath( int hwndOwner, string lpszPath, int nFolder, bool fCreate); private void btnUserData_Click( object sender, EventArgs e) { const int MAX_PATH =700; string folder = new string ( ' ' , MAX_PATH); bool x = SHGetSpecialFolderPath(0, folder, 5, false ); } I didn't get any exception from this code and when I checked the value of x I found it true but the folder didn't change from it's original. PS my development environ ...Show All
SQL Server Synchronizing Data Within SQLCE and SQL Server 2000
hi, Problem: Synchronize the data between sqlce in pocket pc emulator and sql server 2000 in desktop computer. Given: i have configured the IIS and while connecting the pocket pc IE to sql ce server agent..evreythings ok. called the synchronize method. ERROR: normally two error occurs: native error 29045 and native error 29006 connecting with sql server reconciler failed.. any bidy can tell me what is sql server reconciler and why these error occurs... moreover: if someone can tell me how the sql server 2000 interacts with IIS. See if this helps: http://www.kbalertz.com/kb_ ...Show All
Windows Forms PictureBox GotFocus/Enter events
I have a Picturebox and TextBox on a usercontrol. I want to draw a border around the the usercontrol when the usercontrol (or anything else in it) is selected. I have a sub that draws the border around the control. The sub is called from the Enter event of the UserControl and the TextControl. However, when I try to do the same thing with the PictureBox, I don't see an Enter event listed for the PictureBox (strange as it is inherited from control) and while the GetFocus event is available, it does not seem to fire. Do I have to enable the focus events in the PictureBox somehow The PictureBox is already set ...Show All
Visual C# reseditor
Where do I find the reseditor in Visual Studio 2005 On the top menu, click Project | Properties. On the left-hand side, click on the Resources tab. This will pull up the reseditor. HTH, Karen ...Show All
Visual C# ArrayList filled with non-string objects to array of string
Could you tell me, please, if there is an opportunity elegantly convert ArrayList filled with objects of some class to string array Example: class Point { int x, y; public Point( int x, int y) { this .x=x; this .y=y; } } // ... static void Main( string [] args) { ArrayList p= new ArrayList(); p.Add( new Point(2, 3)); p.Add( new Point(5, -2)); string [] result=( string [])p.ToArray( typeof ( string )); // something like this } I have tried to override method ToString() in class Point or add static public implicit operator string (Point p) { return p.x.ToStri ...Show All
Visual Studio Team System Report "Remaining Work" does not show all Work Items
Hi everybody, we are using Beta 3 Refresh for controlling our project. Now i got a problem with the "Remaining Work" Report. Our current iteration (started today) has 92 Work Items (80 Tasks and 12 Features (our new own Work Item Type). Every of this Work Items is assigned to the Iteration Path OurProject\Release 2\Iteration 8. When I run the report "Remaining Work" with the following parameters the report just shows 35 Work Items: Parameters: Iteration: Iteration 8 Area: OurProject Work Item Type: Activity, feature, Task Start Date: 1/30/2006 End Date: 2/17/2006 What went wron ...Show All
.NET Development Remove a table from xml file using C#
Hi, How can i remove a table from an xml file if the date is old using C# This is how the xml file looks like: <root> <table> <id> 0 </id> <date> 20060404 </date> </table> <table> <id> 1 </id> <date> 20060822 </date> </table> <table> <id> 2 </id> <date> 20060904 </date> </table> </root> What im trying to do is, removing a whole table if the date is old. Comparing dates is not the issue, removing a table is. Because if i remove it by name, it removes all the tables. Can anyone help me with this iss ...Show All
Visual Studio Identifying newly checked in files
Is there anyway I can identify newly checked in files (say from a specified date such as date of the last build) Thanks in advance! Simple solution is that take recursive history of the project by checking the the "include files history", it will give you the list of all latest checked in files. Further you can also refine your approach by giving the time span, "From" and "To" and "user" as well to find the latest checked in or changed files. ...Show All
Windows Forms DataGridView Image Columns
I have been pulling my hair out on this one and decided it was time to post it here after Googling for countless hours without finding an answer to my problem. I have a simple databound datagridview that I am trying to display an image on a cell by cell basis based on the cell value (stop, started, finished) etc.. The values are int values and so far I have been able to get it to work but I have noticed lots of flickering while using the grid and lots of mismatched images being displayed for the underlying cell value. Any help would be much appreciated... private void dataGridView1_CellFormatting( object sender, DataGridViewCellFo ...Show All
