Booge914's Q&A profile
Visual C# Need help on correct input string format
I'm getting the following run time exception below. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 355: if ((TheDataRow["type"].ToString() == "Outage" ) || (TheDataRow["type"].ToString() == "TR Outage")) Line 356: { Line 357: if ( (Convert.ToInt32( TheDataRow["outCurrentCustomersEffected"].ToString() )) > 1 ) Line 358: { Line 359: return false; ...Show All
Visual Studio Team System Problems to create a Test
HI, yesterday I tryed to create a Unit-Test for one of my components. I selected the component and go to the menu point TEST --> New Test. I select there in the drop down "New VB Test project " after that a can't enter a name or select a template. The templates are not show. I also tryed to create in an new solution an test project there I got the message that no templates available. After that problems a did a reinstallation and an repair that installation but nothing works. What is the solution for that problem There is something weird going on with the product you're trying to install or with your machine. You should see templates for test projects in followi ...Show All
Visual Studio Express Editions hmm
Hello.. I am new to all this programming stuff .. Hmm... i am trying to make a simple macro to a game.. I want to repede some text hmm lets say that i press a botton then the program starts a timer.. this timer will take the text from a textbox and will add that text in my game.. i have done that by useing my.computer.keyboard.sendkeys(textbox1.text) and it is puts the text into the game and its nice.. Problem: how do i make my program press Enter in the game cuz i have tryed to use the my.computer.keyboard.sendkeys(ENTER) and it says that enter is an event and someting.. I don't understand that help please.. The short answer is, NO. Not with Visual ...Show All
SharePoint Products and Technologies Visual Studio 2005 Crashes after installing Extensions for Windows Sharepoint services
After installing Windows sharepoint services for VS 2005, I created a web part but then went I attempt to view the Sharepoint solution properties tab in project properties it causes Visual studio to crash. The following error is displayed. "Microsoft Visual Studio has encountered a problem and needs to close" The further error message displayed in the Event log is as follows; Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module unknown, version 0.0.0.0, stamp 00000000, debug 0, fault address 0x0a9f042e. Has anyone seen this error before Hi, I had the same problem but have worked around the problem by running the development environment on a Win2003 server with WSS 3.0 installed. Havent ...Show All
Visual Studio 2008 (Pre-release) Question on .NET Framework 3.0 June CTP
Is .NET Framework 3.0 June CTP == .NET Framework 2.0 + WinFX May CTP Or .NET Framework 3.0 June CTP == .NET Framework 2.0 + WinFX June CTP Thanks! ...Show All
Visual Studio 2008 (Pre-release) Offline binding
Is there any means to initialize "offline" binding for elements I've created in code through .baml/xaml parsing or imperative What if I've <ViewBox/> with some resources+binded elements-all self contained but I created it from "sratch" and it's not displayed on screen.Now I want to simulate "complete" cycle of rendering to get RenderTargetBitmap of my ViewBox...well you get idea All work nice except {Binding} markup expressions dosen't get called.So,how I can "invoke" expression engine to make binding work. I tried: vb.Measure(new Size(1000,1000)); vb.Arrange(new Rect(vb.DesiredSize)); vb.UpdateLayout(); without luck from console app,have I forgot something Thanks. ...Show All
Windows Forms Multi threading
Hi All. I have a question that im hoping to get a little help/advice with. Im writing a forms application (just local - not web or anything) that calls out to a com dll for data processing. The processing may take anywhere from 1 minute to a couple of hours. So of course I would like to be able to display a progress bar - to the user. I tried muti-threading (background worker) the call to the dll - but that doesnt seem to work - either to any dll or at least a com one. So im wondering if anyone can give me some ideas on how to handle this. Can i use multi threading thats a little more sophisticated than the background worker, or can I make the dll - multi threaded (unsure how or even if this is possible). BTW - I am the ...Show All
Smart Device Development Custom Application.Run()
hello, The Compact Framework requires the developers to start the application message loop on a given form. Therefore there is no Application.Run() method that can be called without a form instance as a parameter. For our applicationstructure this is very annoying, and I know that the OpenNETCF variant allows this. The problem is that we cannot use this library in our projects. Does anybody know what is needed to implement this method by hand Thanks in advance. Application.Run () does what a classic Windows message loop would do. The core of the implementation may look like this: while (NativeMethods.GetMessage ()) { NativeMethods.TranslateMessage (); NativeMethods.DispatchMessage () } With some tests you should be able to get ...Show All
Visual Basic php editor
hi there i am making a php editor and i wanna ask about 2 things : 1-what is the regex -not like in the msdn ,coz i got notthing from it,- and can i use something else 2-how can i make the *.php files open with my editor only .NET Framework Regular Expressions: http://msdn2.microsoft.com/en-us/library/hs600312(d=ide).aspx ...Show All
Visual Studio Tools for Office Ribbon Manipulation from VSTO 2005
Hello We have built a word document level addin using VSTO 2005 for Office 2003. It works great using Word 2007 and as you probably know, all commandbar items are displayed in the "Add-In" tab. I do not wish to have two solutions, one for 2003 and for 2007. I want my application to integrate into the toolbar/ribbon regardless. I noticed when I iterate over the commandbar collection in 2007 that there is a command bar called "Ribbon" which contains one element called "Ribbon" of type msoControlWorkPane. But that is as far as I reached. Can I manipulate the "Add in" tab caption using VSTO 2005 Can I somehow cast the "Ribbon" of type msoControlWorkPane to something tha ...Show All
Visual C# multiple backgroundworkers filling multiple datasets at once
I need to fill 2 controls A combobox and Datagridview simultaneously with data from 2 tables in the same access database How can I do this using datasets and backgroundworkers on multiple threads Do the bgworkers need to fire 1 after a time or can they both be fired together from the form load event Thanks Multiple BackgroundWorker components can run simultainously, See MSDN to know how to use BackgroundWorker components for safe invokation on controls! this may help you in some understanding: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=847014&SiteID=1 Best regards, ...Show All
Visual Studio Team System Merge Conflicts for Identical Files ..
When merging between two branches, TFVC displays merge conflicts ("The source and target both have changes") even when the file contents are identical. This probably results from the fact that the changeset numbers are different between the two files. Similar "false" warning show up in massive numbers (for large projects) during a baseless merge (probably due to changeset number difference as well). Is there a way from the IDE or command line to ignore these "false" warnings If not, is it possible to write a program using the object model to obtain a list of files which have "true" changes, and only manually merge those file The identical files could be merged with "AcceptTheirs" option, ...Show All
Visual C# C# Threads
Hi, I have a problem with thread and i'm hoping someone can help me. I start a thread with the following code... Thread m_NewThread = new Thread(new ThreadStart(DoWork)); m_NewThread.Start(); The threaad starts find and executes the code within DoWork, for example: private void DoWork() { ... //Finished work so show thread finished ThreadFinished(); } Again it executes the code within ThreadFinished, for example: private void ThreadFinished() { .... //Thread has finished so show finish form and close frmFinished f = new frmFinished(); f.Show(); this.Close(); } Now this is where it goes wrong. Stepping through this code it show's the finished form as you can see it in the taskbar b ...Show All
Windows Forms Loading font of difrent language
Hi, I have a window application, in which I want user to be able to type in diffrent language according to the translation he choosen. I have a multiline text box showing the text, which has to be converted in to a diffrent language. In the second multiline text box I want that particular language font to be set in which the text is to be converted. I got the destination language name dynamically. Help me out.. Do you really want to change the font of the textbox.... or ... do you want to change the keyboard input language I would recommend that you use a nice font like Arial, Times New Roman or Tahoma and keep it constant. These fonts are available on all OSes and support m ...Show All
Windows Forms How to make an outlook style application
Hello, I want to make a simple thing. Create one bar of menus in the left like Outlook and when I click in something then open that option in the right, I guess I have to use the splitcontainer control and make independent forms for each option Please guide me as a newbie. Hello I have a similar problem, meaning that I also wan to copy something from Outlook ;) In my case is the Contacts list look & feel... I'd like to find a control like the one that shows the person. With a title and a list of elements... My next question is how to make the list of controls I've never created controls dinamicaly... Usualy I create the forms in design time... ...Show All
