Thomas Tupper's Q&A profile
Visual Studio Express Editions Error when converting Visual Studio 2003 projects to C# Express 2005
I'm getting the following error when I attempt to load a project that was created with Visual Studio 2003 in Visual C# 2005 Express Edition. I've checked all of the files in my solution to ensure that none are read-only. Does anyone know what's causing this error Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Thanks. I have noticed the same problem with Visual C++ express. Any feedback would be welcome. Thanks ...Show All
Windows Forms How: Layout Managers in .Net like Java
Hi, How to achieve effect of LayoutManagers like java has Grid, Flow, Border etc layouts in .Net The case is : I am creating the form runtime and adding controls on run-time so at that time its very hactic to manipulate about other control's sizes, positions etc so there must be easy way to do such things like what Java LayoutManagers allow without worring the actual positions in pixels. It allows me to add, insert etc operation without knowing other control's pixel positions. I should be allowed to insert some control after some other control by giving index or name directly which is not possible in Forms. Any pointers please Microsoft i ...Show All
Architecture Advantages of OOP ?
Hello, Im a fun of OOP designs. I design my bussiness classes when I start a new project. Then maybe I will write mapper classes for bussiness classes to map DB tables or using an O/RM tool or an ODBMS . Think that this project is big one and it has long deadline. You will develop it 2 or 3 years. Requirements will be changed. To develop this project with OOP designs and n-Tier application design is good idea. But I am asking myself this question "Why am I choosing this long way ". I think the advantages of OOP are re-usable and flexible (when there is a new requirement). OOP makes less code behind user-interface. But I dont un ...Show All
Visual Studio I don't know what you're telling me.
Well, hello there. Hello . I'd like to talk to you today about something rather close to my own heart, the kind of thing that doesn't pop-up real often-like when you're gathered 'round the water cooler in your office. The kind of thing that might be shyly batted around behind closed doors, if you pick up what I'm puttin' down. The kind of thing that you wouldn't find yourself laughing about at a cocktail party over a few dry martinis. Now, maybe I'm not in the right place here, maybe I'm not talking to the right folks. Maybe. I'll say this though: my life is short, and every chance taken is a sharp breath of cold air before the sunrise on a ...Show All
Visual Studio How to add custom control to Visual Studio 2005 Toolbox?
Hi all, I am working on a Windows Forms custom control now and I would like to place my control right on the Toolbox window after installation, however, this seems to be a problem now. I notice that EnvDTE and EnvDTE80 namespace and the DTE2 interface seem to provide customization of VS IDE environment, and I tried as follows: 1> Get a DTE2 instance by Activator; 2> Use DTE2.ToolWindows.ToolBox.ToolBoxTabs.Add to add a new tab; 3> Use ToolBoxTab.Add(name, object, vsToolBoxItemFormat) to add my control. here name="Control1", ie, and object=@"C:\Control1.dll" as mentioned in MSDN. Here is the problem. this method should retu ...Show All
Visual Studio 2008 (Pre-release) How to design the Entities instead of DataSets for Enterprise applications and Handling Exception ,
Hi, I have one problem , we design the custom entities instead of Datasets. Which is the best way for to upload the bulk data into the data base either by using the xml or single row of the enity every time. Give any suggestions. Thank you. The DLINQ solution would be to create entities and add them to the appropriate table. You can break this up into smaller batches by adding some entites, calling SubmitChanges() and then continue to add more, etc. ...Show All
Windows Forms DataTableAdapter Update
Hi, I tried the following. I added a SQLExpress Datafile to my app. Therein a simple table and then I built (with the desinger) a DataSet. After draging one Edit to my form and databinding it I can change the values in the table of the dataset. With EndEdit() it marks the row as modifyed. Till now it works fine. Now to the update. I can iterate through the modifed rows and use the generated Update(Field1, Field2, OriginalKey, NewKey) method. The rows are marke as unchange, the data is changed in the SQL Table. When I try the Update(DataSet) or Update(Table) nothing happens. Only in the sourcefile of my Dataset 2 methods are called (more ...Show All
SQL Server how to get the sum of a group and not the whole column?
example: Account Sales New John Doe 1,000,000 George Bush 2,000,000 Juan Luna 3,000,000 6,000,000 Old Michael Tell 5,000,000 Billy Banks 2,000,000 7,000,000 where Account and Sales are table columns, New and Old are group names. i want to display the total of the group. ...Show All
Visual Basic Groupbox Limitations?
I am writing an application to control a couple of devices that I have. All of the control code is written so I am developing the UI. One of the forms that I have put together has eight groupboxes. Two of the groupboxes are on their own. One of these groupboxes contains six buttons. Each of these buttons corresponds to one of the remaining six groupboxes. Clicking on one of these buttons causes the third groupbox to appear. These six groupboxes are all the same size and are positioned one on top of one another. I am running into a couple of problems with this form related to the groupboxe ...Show All
Visual C# Printing the contents of a RichTextBox
I am trying to figure out how to print the contents of a RichTextBox that contains formatted text and pictures using managed code only. It was easy in C++, just redirect the dc, but I am at a loss here. I thought the easiest way would be to generate a series of bitmaps for the pages. I know how to do a screen capture, but not all of the contents are visible if the document is long. I am hoping I am missing something obvious. Any help would be greatly appreciated. Look at this and this ! .. maybe you are " missing something obvious" Cheers! ...Show All
Software Development for Windows Vista Wait until time/Persistence & Tracking
Hello, I have to questions based on waiting/persistence/tracking scenarios: 1. Suposse that I want to wait until a specific day. If I use a delay or something like that I understand that at this point the wf becomes idle and the persistence service writes it down. What happens later if I turn off the runtime engine and I want to start it later. How do I continue with the saved instance without explicit set this Is there any standard solution to this 2. Suppose that I want to track the wf states and I implement a tracking service that also persist data. How do I solve the scenario where the wf has changed but the tracking updates are interru ...Show All
Windows Forms Warning MSB3331
I have a Windows VB application built using VS 2005 Beta 2 that includes a reference to DAO (3.6) but when I do a build I get the following warning. I can't find information on the warning in MSDN or google. Can anyone explain what is causing this and how to correct it. ============================= C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning MSB3331: Unable to apply publish properties for item "dao". ============================= Can you please turn on verbose logging and send us the snippet of the log that includes the error To enable verbose logging on the command line add a /v:d to the comm ...Show All
Windows Forms Override??
Hi, You know there is a mouseclick event for the objects on a form. I create a class which extends panel and i want to use mouseclick event for every object that i create from this class. I think i should override mouseclick evetn.. How can i do this and also how can i se every object's mousecklick event that i created Should i use delagate ...Show All
Visual Studio Available values (ValidValues) from query in VS 2005
Hello, i am trying to create a report in Visual Studio 2005 (format .rdlc). The report needs some parameters. I would like to set the "available values" for each parameter. The values should be find out by a query. In VS 2003 it is possible to set a property to get the validvalues from a query: How can i do this in Visual Studio 2005 I didn't find any solution in this screen: Thanks for your help. Local report processing (.rdlc files) does not execute queries. It is the responsibility of the host of the reportviewer control to execute queries and supply both the dataset and any report parameter ...Show All
Windows Forms Data Binding
Hi, How should i correct the statements below, so that the ID text box will shows the ID=1 when the arrow of List View point to ID=1 Or is that any other methods to do this IdTextBox.DataBindings.Add("Text", dataset1.Tables["employee"], "ID"); Thanks. You're welcome! Glad I could help (I noticed that I left something out of the code I provided ... I forgot to add the ListViewItem to the ListView, but I see you did it correctly). ...Show All
