batman900's Q&A profile
Windows Forms ... cannot be set on a data-bound DataGridView control
Hello, I am begginer and i Have application that is displaying querries in datagridview. But in some part of application i want to display more custom data (SUMS, SUM of certain column where only negative numbers are summed etc.). I am displaying more simple data with : grdDataAll.AutoGenerateColumns = True grdDataAll.DataSource = objDataSet grdDataAll.DataMember = "my table" and more custom data with manually filling same dataGgridView from scratch.. I got error: cannot be set on a data-bound DataGridView control. is there any vay to change that property or i will have to use two dataGridViews on same place, one for da ...Show All
Visual J# Pet peeve of the day
Hi all; When will we have Documentation for the classes and listing the methods in the classes J# doesn’t support (ie exist but throw a NotSupported exception) thanks - dave Hi; I looked. Only http://msdn2.microsoft.com/en-us/library/hyx4hd7e(en-US,VS.80).aspx had links to some of the standard java classes and it has the disclaimer "but only the most important classes in the following packages are documented at this time". When will you have something like the standard javadocs Sun has At the moment the best way to code under J# is to use the Sun documentation and then see if the methods you write compile. Which is not a good a ...Show All
Smart Device Development listbox and datasource problem
Hi i have one problem with data in the listbox. if i assign Listbox1.datasource = ArrayList1; and then if i work with arraylist items (add, remove), in the listbox is no change. why That is expected as ArrayList produces no notification events, so control is unaware of changes. To refresh the list you can rebind the array list after each change. To do so change the data source to null and set it back to ArrayList. That makes ArrayList a very poor data source, plus it’s very slow as reflections will be used to access data. You also can use data source which supports notifications. For example, DataTable, BindingList (V2), ...Show All
SQL Server access SQL2005 MOBILE database in a VS2003 mobile app
It is possible to access a Sql Server 2005 Mobile database in a VS2003 application (compact framework) Thanks Robson Not via managed provider, no. You might be able to P/Invoke, but that’s not an easy task. ...Show All
Windows Forms How to avoid dragging a form
Hi everybody! I have a main form in my Windows applications that contains other form as a Explorer of folders. I don't want to allow to drag the Explorer form (FrmExplorer). FrmExplorer has a TreeView. I have been looking for information about it and have written the following code: public partial class FrmExplorer : Form { public FrmExplorer(string fileName) { InitializeComponent(); this.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.FrmExplorer_CancelDrag); } private void FrmExplorer_CancelDrag(object sender, QueryContinueDra ...Show All
Visual Studio Express Editions VBasic, VC#, VC++, VJ#
I program mostly in VBasic. Is there information somewhere that compares the four languages as far as which is more appropriate or better for certain types of programming tasks I am not aware of any information like that. VB, VC# and VJ# only targets the .NET platform. VC++ can target both .NET and Win32 and makes a great tool to link those platforms together. If you need to target .NET any of VB/VC#/VJ# or VC++ will be useful, it is more a preference what language syntax you want to use. If you need to target any platform besides .NET you only have VC++. What language syntax is most effective i ...Show All
Smart Device Development Pick directories!
in .NET CF 1.1, is there a way to show the Directory dialog to choose directories It appears there isnt, perhaps there is another good alternative Does anyone have this information I am creating my own using treeview but I prefer something more solid, than mine, from MS, or other close solutions What platform are you targetting For Windows Mobile (Pocket PC and Smartphone) there isn't a FolderBrowserDialog supported, but there is native support with the generic Windows CE shell, which can be wrapped for .NETCF:- http://www.peterfoot.net/FolderBrowserDialogForWindowsCE.aspx This article will give you an idea of how to creat ...Show All
SQL Server Concatenate 2 date fields to show longdate format
How can I concatenate 2 date fields so that they show the date in long format i.e 18 March 2006 to 21 March 2006. I can get the expression to concatenate but I want to format the dates as above. Thanks I believe you can use this... =CDate(Fields!date1.Value).ToString("dd MMMM yyyy")&" to "&CDate(Fields!date2.Value).ToString("dd MMMM yyyy") where you can replace the fields where appropriate. Craig ...Show All
SQL Server decimals
I need to learn to format text boxes in the report design to not have any decimals but to have commas when needed. Any help is appreciated. I dont understand very well your question but to remove decimals you only have to convert to int =Cint(Fields!field.value) ...Show All
Windows Forms Transparency in imagelist images
This has been a bugbear of .NET since V1.0 so I hope it has been addressed in .NET 2.0! Do the Windows Forms controls (ImageList and List/TreeView) now fully support images with multiple levels of transparency In my instance I use PNG files with an alpha transparency but also have the option to use 32bpp BMP format files. Our application needs to target Windows 2000 as well as Windows XP. Using Windows 2000 (my development machine), I can see that there is at least one improvement in alpha channel support over .NET 1.1 - assigning an image to a PictureBox control from an ImageList containing PNG format images with alpha channel transpar ...Show All
Visual Studio Team System Getting FxCop violations to cause a build failure
I'm using fxcopcmd.exe 1.35 as a post-build event and I want any FxCop violation to cause the build to fail. I know that the ability to treat FxCop warnings as build errors is limited to the FxCop that comes with VS 2005. I've been working around this limitation by checking for the existence of a Xml report file after each FxCop run. If the file exists, violations occurred. Otherwise, the code is clean. I'm just wondering if there's a simpler way to determine if violations occurred. Hi Craig, Checking for the existence of an output report is the recommended way to go. Alternatively you can add an extra s ...Show All
Visual Basic Colour Change
wnen i click button_1, i want form1's background-colour to change from Tan to orange, how would i go about this yes....those are made up variables Dim MyOrangeColor as Color = Color.Orange Dim MyTanColor as Color = Color.Tan ...Show All
Visual Studio printing with a Word object
Hi!! I have a problem with the Word document as an OLE object. I need to know how could I change this Word object dynamically, I mean, I have 4 Word documents and I want to select the Word document (for example document called "One.doc") before the crystal report is called, and then tell to the crystal report that the document I want to report is "One.doc". I'm using VB.NET. Thanks for the help. Hello, Which version of Crystal Reports are you using My guess is that this won't be possible for you using the Crystal Reports object model. One way that you could do it is to setup your OLE Object as a ...Show All
SQL Server sqlserver installation problems
sqlserver installation problems I tried to install sqlserver on my 2nd desktop. It said a beta version still existed. I went to add and remove, and there were no references to sqlserver ctp. However looking at all programs, sqlserver and all its tools were there. How do I uninstall them dennist685 Dan, I sent the email, thanks. At worst, I was thinking of uninstalling vsstudio 2005, reinstalling beta2, reinstalling sqlserver 2005 beta2, then uninstalling sqlserver beta2 and then vsstudio beta2, according to the order specified. Somehow the automatic tool messed up. I'm just afrai ...Show All
SQL Server File System Task: Move/Rename
I can use the File System Task to Move a file from one directory to another and to rename a file, but is there a way to do this in one step, i.e., move file named 'c:\foo.txt' to 'c:\backup\foo_bkp.txt' Raul, You can use a script task to do this. See here: http://blogs.conchango.com/jamiethomson/archive/2005/09/14/2149.aspx -Jamie ...Show All
