theBainster's Q&A profile
.NET Development Type Initializer therw an exception
hey guys, I'm very new on this forum and very new in .net as well. I'm trying to make a small software for my school. I'm using basic windows froms and stuff. I've multiply forms which are connected. Everything was working fine but i believe when i tried to fill the datagrid then it started to give me following error in the main form: System.TypeInitializationException was unhandled Message="The type initializer for 'WindowsApplication1.mdlMain' threw an exception." Source="Test" TypeName="WindowsApplication1.mdlMain" StackTrace: at WindowsApplication1.frmMain.frmMai ...Show All
Visual Studio Team System List of files updated?
Our development team has just converted from CVS to Team System. One of the things we can't seem to find is the output of updated files when you get latest. I have gotten this output once in Team System, but only when I have a conflict. We'd really like to be able to see this output any time we get latest. Is there any way to get Team System to show it to us even when there isn't a conflict Thanks, Patrick The list is not printed in the UI (aside from what flashes by in the progress dialog). If you're used to CVS you'll probably find the command line most familiar. ...Show All
Visual Studio Tools for Office Developing Add-in for Office XP: Open Issues
Hi All, I've been doing add-in development for the past 1 month (in VS.NET 2005 for Office 2003 using PIAs). Things have been going fine though there were few issues. Now, an add-in has to developed for Office XP. I tried using the one that i had developed for Office 2003 and rightly enough it didnt work! What I wanted to know is that if I take the same code change the PIAs to that of Office XP and run the code will it work Are there any issues which are specific to developing an addin in XP Awaiting a reply TIA Pavan Hello Pavan, if you want to be compatible to Office XP, from my expiri ...Show All
Smart Device Development scrollbar in Compact framewok windows form
how can we make the form scrollable in a windows form in compact framework Glad to have helped. Please try to start new threads for new topics and do understand that every topic is urgent/important to the original poster. May I suggest you check this out: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html The serial/rs232 story in relation to .NET is here: http://www.danielmoth.com/Blog/2004/09/serial-rs232-communications-in-net.html Printing is an FAQ that has been addressed in the NETCF newsgroup. Please see previous threads there: http://groups-beta.google.com/group/micros ...Show All
SQL Server Columns from rows
Hello, I trying to make columns from rows How do I do that I am using SQL Server 2000. I thank in advance anyone capable of helping me. E. Woods Hi, take a look here ( http://www.aspfaq.com/show.asp id=2462 ) Denis the SQL Menace http://sqlservercode.blogspot.com/ ...Show All
Visual Basic ADO.net DataAccess time SLOW
Unless I am doing something very wrong, it seems that the ADO.net dataaccess time,IE retrieving a record is extremly slow compared to Classic ADO. Now it takes between 1 and 2 seconds to retrieve the data from the Remote database (Access). Because of needing update data when I select a serial number, I presume and currently use direct access to the remote database. I load a combobox with all my serial Numbers, Currently 15,000 . Then when I click on a SN, the program does a query on the ADO.net dataadapter, retrieves the current record. this take almost 2 seconds. Classic was almost instantly. Am I doing something wrong. Here a part of ...Show All
SQL Server Get back data from Reports
I have just started working with RS 2005 and was wondering if / how I can do the following. I created an asp.net website that has a report viewer to show my reports on the web. In addition there is a page that lists all of the reports a user has access to, which is pretty much a series of links: Report 1 Report 2 Report 3 ..... Now in my reports I generally create a grand total of one of the column and was wondering if there was some way to get that information back into an asp page, ie: Report 1 - $125,713 Report 2 - ($23,111) Report 3 - $1,762,142 I was thinking if there was some way to send a parameter to the report like Summary=True whic ...Show All
Software Development for Windows Vista WIMGAPI.DLL
I've downloaded the recently released Vista_AikImg_DVD.iso. The WIMGAPI.dll makes reference to resource files (wimgapi.h, wimgapi.lib) which do not appear to be in the AIK anywhere. Would these be found in the updated SDK Is anyone else intending to work with the WIMGAPI DLL to manage their WIM files Thanks, Anthony I also encountered this problem today, after installing the Windows OPK I got the message with the missing dll The reason why this dll isn't found is that the OPK installer does not suggest to reboot your computer. During the installation the following is added to your path variable: ...Show All
SQL Server Single XML file from multiple result sets - How do I do this ?
If I have two result sets that are not related (structures are different, data doesn't relate), how can I get both of these queries into a single XML file My goal is to have a stored procedure that does a series of select statements and combines all of the result sets into a single XML file. I have good reasons for this, but I won't bore you with that. In other words, I can do this: Select * from Inventory FOR XML AUTO Select * from NonRelatedTable FOR XML AUTO But it returns 2 XML files (or objects...not sure of the terminology) How do I get both result sets inside the same XML (each result set being a member of some parent node, I supp ...Show All
Software Development for Windows Vista LoadDesignerLayout problem
trying to use LoadDesignerLayout to better present the layout of a statemashine workflow in the Workflow monitor sample. using ( StringWriter stringWriter = new StringWriter ()) { using ( XmlWriter layoutwriter = XmlWriter .Create(stringWriter)) { IList errors = null ; this .SaveDesignerLayout(layoutwriter, rootdesigner, out errors); string s = stringWriter.ToString(); XmlTextReader layoutReader = new XmlTextReader ( new StringReader (s)); this .LoadDesignerLayout (layoutReader, out errors); } } errors: "Could not deserialize complex property 'StateMachineWorkflowDesign ...Show All
Windows Forms Starting .Net application from a parent C++ application
Hi, I have a question about starting a C# .Net application from another app that is written primarily in C++. I basically want to add a menu option to the parent (C++) app so that when the user selects this menu option it fires and event that will open the .Net application. Some other things I want to control are things like - I only want one instance of the child (.Net) application running at a time. Any suggestions or help would be appreciated. Regards, Wallace One thing I forgot to add is that when I launch the new application which is basically a form I want to be able to pass some data t ...Show All
Visual Studio 2008 (Pre-release) cut , copy , paste in richtext box
Hi can anybody know how to get functionalities like cut , copy and paste by programatically in richtext box thanx I'm not sure I understand your question... But here is an answer: To programatically trigger commands like Cut, Copy and Paste... you simply need to invoke the appropriate command on your richtext control... ApplicationCommands.Cut.Execute( param, myRichTextBox); param depends from command to command, I don`t know the particular format for the Cut, Copy and Paste commands, but I bet that those commands mostly depends on the selection and cursor position for the RichTextBox control... Hope this ...Show All
Software Development for Windows Vista soundcard
i keep getting a message saying i dont have sound card this all started when i had to change my harddrive my pc was working fine i also have built in card so please can someone tell me how to get drivers working im runing xp i just cant play any music or have no sound ...Show All
Windows Forms AppUpdater without directory browsing enabled
Just started using the AppUpdater, and it's very cool. But I'd like to use it with a webhost running linux. I haven't been able to get it working properly. The AppUpdater successfully downloads the manifest off the server, but then doesn't ever download any of the files. I believe that the problem is that "directory browsing" is not enabled. Can the&nb ...Show All
Visual Basic cursor in textbox control
I need some help showing the cursor position in a text box on windows form. I’m using two buttons on a windows form to move a text insertion point to the left or right in a single line text box on the same form. The text insertion point does move left and right as commanded but I get no cursor in the text box to indicate where in the text box the insertion point is located. In VB 6 the cursor (flashing vertical bar) in the text box was shown at the txt1.SelStart location. The same does not seem to be true in VB .net when I use txt1.text.SelectionStart. I’ve tried everything I can think of to get the text cursor ...Show All
