Answer Questions
N Lyons Formatting data before binding
Hello, I have a business object returning a datatable back to a bindingsource, which a datagridview uses to bind the results. However, certain fields are yes/no, which I want to convert to true/false. Is there an event that fires before the binding takes place where I can switch it Thanks. There are several approaches you can take here: Use the System.Windows.Forms.Binding class (extens ...Show All
batin vadim Java to C# Conversion
Hey everyone i used the JLCA that comes with Microsoft VS.Net Enterprise, it only converts 85% of my program. anyone know any good tips for converting the rest manually or any sites that teach how to do the conversion properly thanks! ...Show All
PRedd How do I draw an image at the actual size (pixel-wise)?
I'm using C++ in VS 2005 with the Windows Forms Designer. I create a Bitmap in the code (loaded from disk) and try to draw it to a panel (created in the designer). The problem is, instead of rendering at 320x320 pixels, which is the original size, it renders at about 425x425. I tried DrawImage and DrawImageUnscaled, and both do the same. How do I draw the bitmap so that it's 320x320 pixels Take a good look at ...Show All
Mark Kortink Printing Problem
Hi, I have code the following function for printing with generic text driver: Public Function Print2Printer(ByVal Str As String) As Boolean Try Str = Str.Replace(vbCr, "") Str = Str.Replace(vbLf, "") ...Show All
Maes Ordering Items in a Property Grid
This is really pathetic. I have tried a ton of stuff to try to order property grid items in VB.NET but it seems there is no way. I have heard that it is a VB.Net langauge bug, but very low priority on Microsoft's list... Well, its something everyone with a propertygrid wants, so can't Microsoft just add an Attribute for "Order" pizzayoyo wrote: Ok, i found how to do it in VB, by converting a C# fi ...Show All
Labm1ce Databind textboxes
Hello, I've got several textboxes bound to a dataset. Everything works great the first time but then when I search for another record nothing changes. When I walk through the code the right value is passed into the sql statement, everything looks go ...Show All
SteveNash72 How to add/remove icons to/from the system tray
Is there a way to add/remove icons to/from the system tray using VB.NET without using all of the API calls VB6 required Check out the NotifyIcon component. It's purpose is to reside in the SystemTray. There are plenty of ...Show All
alaar How do you disable the Up/Down arrow in PropertyGrid collection editor
Hello All, I have a property which is a collection and it is displaying correctly in the Collection Editor when I click the ellipses in the property grid. The collection inherits from ReadOnlyCollectionBase which causes the PropertyGrid to disable the Add/Remove buttons. I expose an enumeration to make collection access easy, but this requires that the order NOT be changed. How can I disable the Up/Down arrows so the user cannot ...Show All
foxmcf Datetimepciker
Hi I am setting up a form in VB.net that uses a Datetimepicker control to select the date which is then entered into a SQL Database along with the data from the other controls If I select a different date using the control the date is  ...Show All
AnwarBasha .NET 2.0 on the server or only the client?
Hi, For ClickOnce, does .NET 2.0 have to be installed on the server Or is it only necessary for the client Regards. Or does the server simply need ASP.NET 2.0 You don't need .Net 2.0 or ASP.Net. For web-server to serve the applications all it matters is that the MIME types are configured correctly .application -> application/x-ms-application .manifest -> applicatio ...Show All
jrcdude Copying project to another computer - won't work b/c of 'Microsoft.Office.Interop' not being found...
Hi all, I transferred a project to another computer so another developer can take over the application. Everything is working perfectly except when compiling it gives the following errors in the task list: 1) Namespace or type 'interop'& ...Show All
Chris Lerew How get command line arguments
Hello. I use VB 4 (old fashion, I know). How con I extract the arguments from de command line. Ej: If my application is called like: myapllicationname arg1 arg2 How can I obtain arg1 and arg2. Thank you. In VB 6 there is the Co ...Show All
HLD-Sean Word contacting Versign
Everytime I launch word, it is trying to contact crl.versign.com. For now I block these contacts with my firewall. can anybody tell me why Word would try to contact Verisign Regards Do you have some 3rd party plugin installed, maybe The ...Show All
Jan Heppen GDI+ slow!
I'm writing a drawing application using Visual C#, GDI+. My application has features like MindManager (www.mindjet.com). In my application, each topic is an object and it has Draw() method to draw itself. User can move topics on document by mouse. When&n ...Show All
Gaurav Singh Regionmaster Controls updated
I made an update to the <a href="http://www.windowsforms.com/ControlGallery/ControlDetail.aspx Control=219&tabindex=9">RegionMaster Controls</a> today to fix a bug in the CurvedPanel's designer. Basically, after the first build or code gen, any drag changes to a corner's r ...Show All
