SDevenshire's Q&A profile
Windows Forms using applicationsettings/propertybinding to save form size etc.
I want to be able to save the following: The last position and size of the form when not maximized and the last windowstate. ie if the user closed the app maximized, next time I want it to open maximized, but if the user sets it back to a normal window, I want it to display using the save size and location (as Microsoft Word does). I have created three user settings with the appropriate type. If I bind these to the form properties, it seems to r ...Show All
Windows Forms windows 2000 loses copy paste option while uninstalling my .net application
I have a product developed in VB.Net (Sql server on backend) desktop application. while i uninstalled the application on window 2000 and restarted my system windows lost copy paste option.this problem never occured on any other windows. plz help me regading this ...Show All
.NET Development How can I load a form by button?
Hello, Can anyone please tell me how I can load an existing form in the project by pushing a control button in another form Meaning, I have, for example, the MainWindowForm and on it a button saying "Open Small Form" - how can this button order loading of the other form All my attempts ended in the program saying something like "reference to a non-shared memeber requires object reference", whatever that means... Thank you :) ...Show All
.NET Development Create a Shell Extension Handler thumbnail extractor with .net?
Hi, My application creates nice graphics see http:// www.mavericksplan.com/mavericks and it saves a custom document type. I'd like to show the contet of the document in Explorer when the user switch to Thumbnail view. To implement this feature I understand I need to create a Shell Extension Handler Thumbnail Extractor that extract the image from my file type to feed Explorer thumbnail vew, which is not easy at all for me. I ...Show All
Visual Studio 2008 (Pre-release) Synchronization between DataContexts
How about synchronization of entities between DataContexts So that when an entity in one DataContext is changed and changes are saved to db (only after saving), corresponding entities in other DataContexts are also updated (unchanged fields) and notified about it. The same with loading of one entity; AFAIK, it is implemented already that before loading it is checked whether an entity is already loaded; this behavior can be extended with checkin ...Show All
Visual Basic Word in Visual Studio 2005
I have read that it is possible to create or to add a word document project using Visual Basic 2005. I am trying to add a word doc. to my vb.net application like: Dim appWord As Word.Application = New Word.Application That does not work. I think I need to import office library which I can not add it. Imports microsoft.office.word that does not work I think I am missing something. I have been reading from this ...Show All
Visual C# Resume Next
I've got VB6 and VB.NET code that I'm converting over to C#. In Vb there is a "resume next" statement. What is the statement in C# to convert "Resume Next" ie Try 'more vb code 'some line caused an exception End Try Catch Resume Next End Catch Thanks, /dz Just google for "Resume next considered harmfull". That's all. :) ...Show All
Visual Studio Express Editions Does Microsoft support people ever come here to help people out?
Otherwise what can we do There are several Microsoft employees around here, but it's really meant as a site for the community, where we help each other out. If you experience that you're not getting responses to your questions, maybe you're asking the wrong way. Here are some tips to help you get better results. ...Show All
Windows Forms Call UC load event from main form
I have main form (Windows Application) that loads other UCs. When I load certain UC, it loads data for that UC. On each UC, I have buttons (eg. delete, add etc.). I want that when I click on add button to add some data, automatically after adding that certain data, UC control reloads. How can I do that Thanks. How about exposing a custom event off of your usercontrol, such as DataAdded. Fire that event afte ...Show All
Windows Forms reading comma separated values from .txt
Hi, I have a .txt file that has comma separated value. Its not a csv because when I open it in excel it shows the whole row in one cell.. This is how it looks like Row1Value1 , Row1Value2 , Row1Value3 Row2Value1 , Row2Value2 , Row2Value3 Row3Value1 , Row3Value2 , Row3Value3 Is there anyway I can read it directly in a datatable without parsing it row by row Thanks, Hope these links will help you- ...Show All
Visual Studio Express Editions Rich text in DataGridView
The new DataGridView control is terrific but it won't display rich text. I was hoping someone could point me in the direction of how to modify it to do so. Thanks, GS I am also interested how you can save rich text to a database from a richtextbox. I used to be able to do this in VB6. MHC ...Show All
Visual Studio Merging auto-generated code with custom code?
Let’s say you have a DSL combined with a set of wizard and recipes to generate code for a custom framework on which a customer would like to build all future .NET applications. As a developer I start the first iteration of the application development and generate supported implementation artifacts. Then I continue adding my business logic (e.g. code behind “click” events in a form or code in C# classes which skeletons were generated through re ...Show All
Visual Basic Project GROUPING: Merging multiple vb6.0 projects into one
Hello, We have done some developments using VB6.0 . What we have done is created multiple projects - say: a) Exams b) Enrollments c) HR Now each of a,b and c are 3 different Projects !!! ... What I wanna do is - integrate them into 1 one project - i.e. do Project Grouping and then dynamically call forms of a - while in b and so on !!! Any ideas - as to how do we go about doing the same !!! Please HELP !!! ...Show All
Visual Studio Team System How to get TestName in Performance Report?
Hi all! I have a task - check and run all the automated tests for specified function. For example: 1. I have unit tests - "Test1" coverages functions "F1", "F3" "Test2" coverages functions "F1", "F2" "Test3" coverages functions "F1", "F3" ... 2. I select all tests ("Test1", "Test2", "Test3") and run them. After that I have 3 resulting records, for each test. If I click right button on Result - I can "Create Performance Session" for ...Show All
.NET Development how would I call the logout function in the code behind file if the user navigates away from the page
Hi, how would I call the logout function in the code behind file if the user navigates away from the page by typing some url in the address field of the web browser. I am using ASP.net C# thanks in advance for all replies Hi, In web applications, it is not possible to handle such scenarios. The approach usually taken is that there is usually a predefined timeout based on inactivity. This can be enforced on the Session in ASP.NET. As soon as ...Show All
