Jiaozi's Q&A profile
Visual Basic problem with datagridviewcheckbox column
Hi, I have a checkbox column (bold) in my unbound datagridview control. When the user clicks on this the contents of another column of the same row apear as bold or regular based on the value. how to do it I tried in cellcontent_click event. It's not working. If e.ColumnIndex = 6 Then If CBool (dgrView.Rows(e.RowIndex).Cells(6).Value) = True Then dgrView.Rows(e.RowIndex).Cells(2).Style.Font = New Font( "Arial&quo ...Show All
Windows Forms Centering column header text in DataGridView
I'm trying to center the text in 2 column headers in a DataGridView. Can't find a way to do it in the designer, so I've written the following code to accomplish the task... deptDataGridViewTextBoxColumn.HeaderCell.Style.Alignment = DataGridViewContentAlignment .MiddleCenter; branchDataGridViewTextBoxColumn.HeaderCell.Style.Alignment = DataGridViewContentAlignment .MiddleCenter; This *almost* works. The problem is - the text isn't ex ...Show All
Windows Forms Timing Textbox Events
Hello, I am grapling with what I thought should be a simple task but is becoming baffling to a learner. I have a textbox, and I need to change the text within the textbox at 5 second intervals. eg the textbox shows aaaaa, waits 5 secs&nbs ...Show All
Windows Forms How to get information about the user name of Logged User in Windows
Hello everyone, How to get information about the user name of Logged User in Windows and show the result with Message Box in C# Hey, you can get the information about the user (thus, username) by using the WindowsIdentity namespace (System.Security.Principal.WindowsIdentity). For example (in VB.Net though): Imports System Imports System.Windows.Forms Imports System.Security.Principal Public Class Sales Privat ...Show All
Windows Forms Cannot modify DataGridView properties in inherited control
I have a WinForms UserControl (A) that contains a DataGridView. I have another control (B) that is a subclass of A (B inherits from A). Everything works fine, except that I can't make any changes to the properties of the subclassed control (B). Is there any way to allow this I need to resize/move the DataGridView on the child control (B). I added the DataGridView to a Panel, and I could resize that, but I'm using this pattern a l ...Show All
.NET Development Assembly cant load for Policy Assemblies - .Net 1.1
Yes I know this is typically for 2.0 but I hope someone can help. I can add the assembly in GAC. when I try to add in Runtime Security Policy\Machine\Policy ASsemblies, I get: --------------------------- Cannot Add Assembly --------------------------- Unable to add the selected assembly. The assembly must have a strong name (name, version and public key). --------------------------- OK --------------------------- but it is ...Show All
Visual Studio LocalReport Error - A data source instance has not been supplied for the data source
I have just installed VS 2005 RC. Tried using the LocalReport control using the exact sample code provided in the help for the Render method. I keep getting an error during the LocalReport.Render method call - InnerException = "A data source instance has not been supplied for the data source". The dataset and table supplied is valid as it works with the Reportviewer control. Is there something I am missing or is the sample code wrong ...Show All
Windows Forms tostring or as string
Hello, I have simple question; Why this works: string computerID = dg1.Rows[dg1.CurrentCellAddress.Y].Cells["computerId"].Value.ToString(); with value from numeric id column and this dont: string computerID = dg1.Rows[dg1.CurrentCellAddress.Y].Cells["computerId"].Value as string; cheer's Erno The first example calles ToString() method on the Value property. It will always return a strin ...Show All
Visual Studio Express Editions Package and Deployment problem
Dear Guys, I am a new VB Programmer. I have developed a saimple database application using some activeX controls. Now I want to distribute my application to some of clients or friends who don't have Visual Basic or other activeX control files are not installed. So I went through Package and Deployment tool and Build a setup file for installation. I am using Windows Xp platform to package the application. Now when I run the set ...Show All
Visual Studio Express Editions Where I can find link to download VS2005 Express?
I tried to find link to download Visual Studio 2005 Express. I coulnt find it.. Where I can find link to download VS2005 Express Thanks If you develop a web application that has certain requirement you will need to host that fulfills thos requirements. You should contact your ISP to find out if they can host your application, alternativly find a new host. ...Show All
Windows Forms ClickOne on the latest Community Drop
If you have the latest community drop, there is a bug that you will likely hit. If you have the community drop, set the following regkey: HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ .NETFramework\ DeploymentFramework "SkipSignatureValidation"="True" & ClickOnce & VS Publi ...Show All
Windows Forms How To Obtain a DataGridViewTopLeftHeaderCell?
I have an unbound DataGridView and I am trying to set the SortOrderGlyph of the topleft cell. I'm showing the row index numbers in the row headers, which appear below it, and I'm providing sorting services. Anyway, I am puzzled in that the DataGridView.TopLeftHeaderCell property is returning a simple System.Windows.Forms.DataGridViewHeaderCell, and not a DataGridView TopLeft HeaderCell as one would expect. HeaderCells do not have a SortOrderGlyp ...Show All
SQL Server Dynamic ad-hoc reports
Is there a way to pass parameters into the Report Builder so that the available fields of an entity can vary depending on a parameter value (for instance, a group or user id) We have a situation where each group of users can have a variable set of custom properties to report on and we'd like to let them access these custom properties through the Report Builder. Any suggestions on how to go about it Thanks. ...Show All
Visual FoxPro SELECT statement is showing unwanted display of data and is not passing data to a table.
I'm using a SELECT statement to pull out data from a table... that is working great. What I'm trying to do is feed the selected data to a different table using REPLACE so that it can be used by a report. All of this is triggered from a command button on a form. Here's the code for the CLICK property of the button: SELECT store, stock, year_1, make_1, model_1, auction1, transport, recon, sold_for, fees, net_check, result ; FROM wholes ...Show All
Windows Forms Running application online
Hi , When I running my windows form application online, the dll's of my application download first or download while my application needed them Files of your application will be downloaded when you run your online application for the first time. Next time you run the app, the files won't get downloaded again since they are already copied to the local machine. Thanks, Patty ...Show All
