Ray_in_NYC's Q&A profile
Windows Forms set main form icon right to left
Hi, i want set main form icon from right side of form how can do it Hi, I think that you can't using the windows form (unless there is a hidden property that I am not aware of or RightToLeft is enough for you). The reason is that you are using a control that already renders the icon on the left side, and unless the designer of that control provides you with an option to change the icon you can not alter its behaviour. The ways to find an alternative that I can imagine at the moment are quite complex and will require a lot of work, but here are some ideas. If the RightToLeft is not enoug ...Show All
Windows Forms Changing Statusbar from MDI Child
Hi, probably a simple question but have not found the solution for it. I try to update components ... in bellow case a status bar from an MDI Child. The forms were created with the Form Designer and I don't see a way to make the Status Bar shared or public so that i can access it through form1.statusbar.text = xxxx Any help would ...Show All
Windows Forms ListView Control in Visual Studio 2005 - Please help!
Hi, I am new to .NET and I want to do the following thing with Visual Studio 2005: I have got a ListView control in my form. It includes one column and many groups with items (also checkboxes). If a user doubleclicks on an item or group then I want to open a dialog where the user should be able to edit the text of the item or group that was doubleclicked. Is this possible Thanks..juvi ...Show All
Visual Basic Accessing a running program's ram
I want my program to access a program's ram (when the program is running in memory) so I can debug it explicitly. I know how to edit a file by storing it in a buffer but how would I do this when a program is running. If suggestions or code samples are given, please make sure they are for vb.net and they are explained. Thanks. Hi! Access memory Your program access it's memory. Access to other program's memory is protected for security and stability reasons. If you want to make this you need a lot of reading about virtual memory, kernel, Win32 API, etc. What do you want to read in this memory There is no list of internal object ...Show All
Visual Studio 2008 (Pre-release) Border with corner radius
When a stackpanel with grey background is in a border with a BorderThickness of 1 and CornerRadius of 5, the corners of the stackpanel overlap the border at the corner. Tried ClipToBounds but no effect. How do you make the border cut off the stackpanel try putting a margin on the stackpanel so that it renders inside the curved corners. <Border CornerRadius="10"...> <StackPanel Margin="5".../> </Border ...Show All
Visual C++ Frequent IDE freezing
When working on a large C++ project the IDE frequently (approx once every half hour) freezes. It's been doing it since I started working on it when it was released, but I was never able to find a specific cause that triggers the problem but it seems to be related to browse information and/or intellisense. It happens more frequently when editing .h files that are #included by a large number of source files. The IDE freezes, the cpu stays at 100% (50% on an hyperthreading cpu). After a few minutes I usually kill the process. I've tried disabling the 2 Statement completion options in the Options/Text Editor/C++ dialog box but it ...Show All
Visual Basic Saving contentes of a graphic to a bitmap and load it
Hello! I have a form with a picturebox and I turn the picturebox into a graphics object by using the creategraphics. I then draw a few things, and then I want to save what I have done in to a bitmap, but on disk, just on memory so I can reload it. I do like this Public Shared Sub save(ByVal picb As PictureBox, ByRef bi As Bitmap) Dim x As Bitmap x = New Bitmap(picb.Size.Width, picb.Size.Height, picb.CreateGraphics()) bi = x End Sub I want to save to a bitmap ...Show All
Visual Studio Team System Future of FxCop
I was recently at a MS sponsored event where one of the reps mentioned that they did not know if FxCop was going to be available once VS2005 was released because it would then only be available via VS2005 Developer Edition. Is there any basis to that claim I notice that the site still does not have a production release compatible with .NET2.0. Can someone please let me know what is the future plan for FxCop and when a production release will be available Thanks Rich As an example, VS contains a small set of analysis checks we refer to as 'Maintainability' rules. These are checks against c ...Show All
SQL Server System.Windows.Form assembly is needed on script component task?
That affects only interface design... so that it doesn't exists at all in a SSIS. What is it for Let me know your view on this or any clarification. I'd say it is compulsory, since you cannot remove it. Why that is I am not sure, probably a limitation of VSA, the slightly quirky host environment used. It is usefull for MessageBox calls through :) ...Show All
Visual Studio Team System How to skip a request in a Web test's GetRequestEnumerator method
Given the style of yield return used in GetRequestEnumerator, can someone give me an example of how I could skip one or more requests if certain conditions are present For example, say I have request1, request2, ..., requestN. After request2 is executed, say there is a value of 2 in Context["skipValue"]. How would I then cause request3 and request4 to be skipped and execution of the iteration to resume with request5 Thanks. Regards, Mountain There are a few ways to do this. You could just add if statements around the requests which may be skipped that check for the existence of the key ...Show All
Windows Forms Exiting application with Me.Close and Application.Exit not working.
Hi, I'm trying to exit from an application if an exception occurs, but for some reason neither Me.Close not Application.Exit appear to be doing anything. I even tried ExitThread, which I am a bit wary of without doing a bit more reading up on. Code below: Private Sub ManagerForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim bolReadConfigFile As Boolean = True Do While bolReadConfigFile Try ConfigurationHandler.ReadConfigData() bolReadConfigFile = False Catch exCH As ConfigurationHandlerException Dim objResult As DialogResult objResult = Messag ...Show All
SQL Server Slowly Changing Dimension question
Hi. I am using the Slowly Changing Dimension Transformation to move data from oracle database into sql server 2005 and it's working fine using the historical data. i'm just confused about something: if i delete a record from the oracle source table it will remain in the destination table without being deleted or marked that it is expired. whereas i need it to be deleted. could someone pls advise me how to solve it thanks for your help Christina Brett H wrote: Is there a "best practice" for doing this It seems to be quite a common occurance to not only want to insert or update ...Show All
Windows Forms Hosting Windows forms Control in IE
Hello, I have hosted a Windows fomrs control in IE using the object tag < OBJECT id ="UICtrl" style ="WIDTH: 50%; POSITION: static; TOP: 0pt; HEIGHT: 25%" classid ="FlowCtrl.dll#FlowCtrl.CFlowControl" name ="UICtrl" > </ OBJECT > It works just fine, but if 'Enable Content Expiration' is set to immediately it stops working. It does not work since IE tries to download the assembly into Temporary Internet Files and GAC. Why is a .NET control downloaded to Temporary Internet Files Do I have to turn off 'Enable Content Expiration' for the user control to work Is there a w ...Show All
.NET Development non-IT examples which are in link to its potential application in an IT environment
Hi, One of the several aspects of the IT project management is the Project Time Management. I would like know a few business examples which are in link to its potential applicaiton in the Project Time management of the IT Project management. I would like to know the business examples which we can compare or relate to the topics in the Project Time Mangement. Thank you. Hi KSC, This is a Remoting/Serialization forum. Am not sure, if it would be right for me to answer your query here, but still I would take the liberty to suggest a book titled 'Successful Project Management: A Step-by-Step Approach with Practical Examples' Fro ...Show All
Visual C# Changing File Permissions
I have a file that I want to copy to a different location. Sometimes the files will be marked as ReadOnly. I want to change the permission to not read only and then copy the file and change the permission back. Is there any way to handle this Here is how I detect the attribute: string file = @"C:\File.jpg"; FileInfo info = new FileInfo( file ); if ( (info.Attributes & FileAttributes.ReadOnly) != 0 ) Console.WriteLine( "Read Only" ); else Console.WriteLine( "Nope" ); Something like this: FileInfo sourceInfo = new FileInfo("source. ...Show All
