jrock2468's Q&A profile
Windows Forms Date Format in DataGridView
Hello everyone, Can anyone tell me if I'm being really stupid here or maybe missing something really simple I have a datagridview on a windows form that is populated by various data tables from an SQL Server 2000 database. When a Date field is loaded in to the dataset the values are shown in the format MM.DD.YYYY which I would call American format. In VS2002/3 the dates were always displayed in the system default, which in my case (in Scotland) would be DD.MM.YYYY. I can't seem to find anyway to change the way the DataGridView displays dates. Is there a way to do this Or is this specific to the Beta Versions Cheers C-Ya Aly ...Show All
.NET Development Programmatically retrieving remoting settings from app.config...
Other than loading up the XML blob from app.config and manually traversing thru the XML, does anyone know of a better way of retrieving Remoting settings (e.g. port, scheme, etc) from an app.config file Kind rgds, Patrick Try System.Configuration.AppSettingsReader. The method GetValue() reades out of a config file. greetz dya ...Show All
Visual Studio Edit & Continue while remote debugging: worked in VS.NET 2003, but not 2005?
I've fully RTFM, but can't figure out how to get E&C working while plain-TCP/IP remote debugging into my VMware guests against native-code DLLs. Has anyone gotten E&C to work while remote debugging in any flavor at all I welcome hints, etc. Thanks! ...Show All
Visual C# delete blank rows in csv
hello, I import a csv file into a mssql database. It seems that operates good. But there is a problem. The file includes blank rows in irregular order. How can I delete such rows thx dabro Hi, can you show your sqlString You can set your sqlString so that it take only non-zero value to account Abongs ...Show All
Windows Forms Creating an .exe file
Is it possible to create an .exe file without creating an Install Package For example, I want to create a simple .exe file that is to be executed by a .bat file. The .exe file will ftp to a site, get a file and if the file is retrieved, send out an email. I do not want to install the .exe on a machine, I just want to ...Show All
Visual Studio Tools for Office Removing and Adding controls in the same name
Hi, We are working on Word Customization using VSTO 2005 and binded XML Schema. At runtime we are adding labels inside a tag like this, this .Controls.AddLinkLabel(nodeRange, 50, 10,"labelname1") At some point we need to remove the label in the document and we are doing it like this, this .Controls.Remove("labelname1") and it is removed. Again in some cases we need to recreate the label again which was removed previously by like this this.Controls.AddLinkLabel(nodeRange, 50, 10,"labelname1") It throws an error saying that {Microsoft.Office.Tools.ControlNameAlreadyExistsException ...Show All
.NET Development How to make a copy of a list?
I wish to make a copy of a list, where the elements of the list are also copied, instead of just the references, so I can then change them without affecting the original elements. It seems a very simple thing, it should be like: MySecondList = MyFirstList.CopyAll(); but I cannot find it. Come to think of it, I don't know how to copy the elements one by one either if they aren't simple types. Strange, I never needed to do this before. Help is appreciated, Guido Unfortunately, there is no automated way to do this, as far as I know. I assume that your list contains objects of classes that y ...Show All
Visual C++ Help with ODBC connection
C++ unmanaged Using ODBC: My app prompts the user for a DSN connection. It then stores the connection string and uses it later. Getting the connection string (this works): m_sDSN.Empty(); CDatabase db; if (db.OpenEx (m_sDSN, CDatabase::forceOdbcDialog)) { m_sDSN = db.GetConnect (); db.Close(); } This brings up the DSN selection dialog. Although I could choose differnent DSNs, for testing m_sDSN ends up with this connection string: "ODBC;DSN=RaptorSQL;APP=Raptor Client;WSID=SCOTT1;DATABASE=RaptorTest;Trusted_Connection=Yes" Later, when I want to open this connection (does not work): CDatabase db; if ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Generic GraphicsBuffer
From what I've been able to find, there is supposed to be a generic GraphicsBuffer. I have been unable to find it, and it is starting to get very annoying. I'd like to make something in managed DirectX, but it's a little difficult when you can't get anything to draw. Would anyone happen to know why it does not appear for me Microsoft.DirectX.Generic.GraphicsBuffer< T > is only avaliable in MDX 2.0 beta, your prob running MDX1.1 but dont use MDX2.0 caz its beta (and other reasons) ...Show All
Visual Studio Express Editions Visual Basic 2005 Express Format Painter
Hi, Does Visual Basic 2005 Express have a Format Painter function like Word, Access, Excel... I would like to be able to make all of the buttons on a form the same colour, without having to manually change the background in each button's properties box. I realise I could copy and paste the buttons. I have tried a search for format painter and read throughmany pages of these threads. Cheers, Phil Format painter makes perfect sense. You would copy all attributes from the source control along with their attribute names as the keys. Then when painting on a new control, you use refle ...Show All
Visual C++ error C2065 System::String^ PROBLEM HELP!!
When i put a string^ object into a String::Concat object and hit compile, VS 2005 Pro .NET(WinForms") gave me this error: ------ Build started: Project: 7, Configuration: Debug Win32 ------ Compiling... 7.cpp c:\documents and settings\jonathan baldwin\my documents\mycpp\projec\7\7\Form1.h(146) : error C2065: 'str1' : undeclared identifier Build log was saved at "file://c:\Documents and Settings\Jonathan Baldwin\My Documents\MyCPP\PROJEC\7\7\Debug\BuildLog.htm" 7 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Here is my source code: (I kno ...Show All
Windows Forms Setup Project in VisualStudio.NET(2003)
Hi All, I made Setup Project in VisualStudio.NET(2003) and this Setup copy the text file which is reside in msi and install it in selected instllation folder. My Problem is I want to select that text file from that specific folder and want to install in in selected instllation folder because that text file changes every time. Please suggest me the best solutions. Regards Amit It's a bit confusing to me because once you've run the setup you cannot run the same setup again - you'll get the usual message "another version of this product is already installed". Therefore you need to build a new MSI file anyway (and use RemovePr ...Show All
Software Development for Windows Vista SQL Persistence, Loading Workflows and Workflow Properties
I have a workflow that has a bunch of properties on it. One of those properties is the name of the user that initiated the workflow (it is passed into the workflow via the Dictionary<string, object> class. I have SQL persistence working just fine (well, I can't figure out how to 'auto persist', so I am manually calling 'Unload' when the workflow idles), and I run through the list of workflow IDs persisted when my application starts up. What I want to do is access the properties on that workflow (they're public) once I have the instance ID. I just can't seem to find a way to access those properties. Anyone Ok, I found out ho ...Show All
Visual C++ Managed method in native class
Is possible to have a managed method within a Native(un-managed) class within a \clr project E.g. class myClass { public: #pragma managed void myMethod(void); }; I get an error when attempting to compile above about #pragma managed must be used at global scope! Is there some way to achieve this If not, why not Thanks in advance. In a nutshell Brandon. I have since resolved this problem, exactly as you have stated. Thanks. ...Show All
Visual C# new browser in C#
Hi, I just started learning how to use Visual C# and I am having trouble creating a new web browser from a button. I currently have a button that I want to click to open a new web browser window, which will go to my homepage. I can't find anything on how to open a new window. The closest I have is webBrowser.NewWindow, but it doesn't seem to do anything. Any help is appreciated. Thanks edit: wait wait, there's more! I also have a combobox and I want to be able to type in new items and have it add to the item collection. When I run it, the Item.Add in my program works and I can see the new additions in the combobox, but after I close the prog ...Show All
