Carles Viaplana's Q&A profile
Windows Forms Keeping Selected Row in DataGridView always Visible..
Hello All, Is there a way to keep the selected row in DataGridView always visible I keep on inserting rows at random positions in the datagridview. But always want to make sure that the selected row is within the visible area of datagridview and always visible. Any code or sample will be helpful. thanks, Ritesh. Try this DataGrid.FirstDisplayedScrollingRowIndex = dgvr.Index; Where dgvr is the Row you want displayed ...Show All
Smart Device Development Emulator communications error
Emulator used to work, but now I no longer can communicate to it from VS2005. Reinstalling VS2005 didn't help. Using DMA transport When I try to connect to the emulated device I get the following error message: To 'Windows Mobile 5.0 Pocket PC Emulator' Connection failed. a specified communication resource (port) is already in use by another application. Hello, 1. Can you please try clear ...Show All
.NET Development Beginner: Q on using XSL to convert from XML to XML
My first time dealing with XML/XSLT I have to take a XML file(that is HUGE), and convert it into another XML format (the purpose being to get rid of most of the unwanted information and retaining just the ones our program needs) I was told that I can do this easily using XSL. I took some examples from the web and tried it on my machine. (I am using notepad and IE6.0) Here is the XML < xml version="1.0" encoding=" ...Show All
SQL Server Pipe Dream : SQL Express access from VB6
I know this is a long shot, but does anyone have any code for accessing a SQL Express database from VB 6.0. I have an app that uses COM extensively to communicate with several 3rd party products. I haven't taken the plunge of translating it to .net yet because some of the 3rd party products only have COM based SDK interfaces and I'm not into self-abuse. Now I'm thinking about adding an interface to DotNetNuke 4.0 which uses an SQL Express dat ...Show All
Windows Forms DataGrid column with a different..
..embedded control on each row. I know a column can be created that will show a combobox, then all rows of that datagrid will have a combobox in that column. BUT... Is it possible to have a column that will allow you to show different controls& ...Show All
Visual Basic Reading Registry Key
I am working on a VB.NET application that can take a computer name and connect to that computer over the server and check several of the local security policies and create a log of what policies are incorrectly set. In a nutshell, it is an automated way of going through a security checklist rather than manually looking at each policy at each computer. I am currently trying to read the "Audit Policies" such as "Audit Policy Chang ...Show All
Windows Forms Newbie C# form question
how can i load a form... im usin one form and i want to open another form as a modal one, how can i load it <b>//from inside the button click event on Form1</b> Form2 temp = new Form2(); temp.ShowDialog(); ...Show All
Visual Studio Reference to DTE
I have a component which sits in the component tray. When the user clicks the control I want to add a file to the project. How do I get a reference to the DTE object I want to essentialy have a control (in the component tray) which adds code into a solution. I can only see how to get a reference to the DTE at runtime or via an addin - can you get a reference so at design time (I know the control will be running) - I can add a file to the ...Show All
Windows Forms Disregard changes to DataSet
The following commands commit the changes to the dataset. myChangedDataset = DS.GetChanges(); DS.AcceptChanges(); //accept the all changes However, how can I disregard the changes made to the dataset ...Show All
Windows Forms FocusRectangle Problem
Hi everybody, I need to change the button FocusRectangle colors in my Forms, because I have Flat type Appearance with a background image. Which is the best way to do it I tried with an override of the OnPaint method and DrawFocusRectangle, but I just get an strange behaviour... Thanks in advance, Demian Hi Paul, I confirm you that DrawString rectangle is also inflated by -4. R ...Show All
SQL Server Management Studio Express CTP update now available
There is a new Management Studio Express CTP download available at http://www.microsoft.com/downloads/details.aspx FamilyId=82AFBD59-57A4-455E-A2D6-1D4C98D40F6E&displaylang=en . This update fixes the defect where installing the full Books Online documentation prevented Management Studio Express from starting. With the update, Management Studio Express and Books Online no longer interfere with each other. To update Management Stu ...Show All
Windows Forms A few newbie questions
Hi all, I'm an accomplished web software engineer of 6 yrs. with pretty tight knowledge of asp.net, however I'm entirely ignorant when it comes to windows development and windows forms. There are a few basic questions which I'm sure could easily&nb ...Show All
Visual Basic Allow Drag&Drop between GroupBox
Hi again. I have a Windows Form with 12 GroupBoxes (and inside the groupbox 2 texbox). I want allow Drag&Drop between all the GroupBoxe's. I need do a funtion that handles all the DragDrop events .. This work only for GROUBOX2. I need transform this function to work with Groupbox3, GroupBox4.... etc. A big thanks from Spain! Private Sub entradaDrop( ByVal sender As System. Object , ByVal e As System.Windows.Forms.DragEventA ...Show All
Visual Basic Need some advice in solving....
Hi guys, I have an application(MDI form with 4 forms in it). I want to do the following: 1. Checking whether my application is active(focused) among others(like winamp,word,etc) 2.If it is active, i need to find the number of minutes it was idle(ie. without mouse movements,etc.. I donno how to check for all the 4 forms and MDI form). 3. if the appln is idle for 2 minutes, i need to open another form from the appln(which has a ...Show All
SQL Server KPI value expressions
I'm trying to understand what forms the value expression of a KPI can take. All the sample I've seen so far have been very simple, like a simple measure expression, e.g. [Measures].[Internet Sales Amount] I've also had success specifying a simple tuple, e.g. ([Measures].[Internet Sales Amount], [Product].[Product Model Lines].[Model Name].&[Bike Wash]) But what if I want something more a little more sophisticated For example, what if I want ...Show All
