Salomi's Q&A profile
Windows Forms DataGridView: How to remove focus from read-only cells?
Hi, In my three-column DataGridView I set the first two columns to be read-only, only the last column is editable. I also set CellSelect as SelectionMode to enable the user to select any particular cell in the third column. This did not prevent the first and second column's cells from being selectable in the UI, so I execute ClearSelection() whenever a cell from those columns is selected. However, what remains now is a slight rectangle aro ...Show All
SQL Server Instead Of Trigger considerations for Multi-Row Insert
I would like to know how to, if at all possible, to reconstruct the following trigger as to be able to handle multiple row insert when a single insert command is used - because the trigger will only be called once...I'm not familiar and don't know anything about cursors and i've read that its not the best way to go. TRIGGER ON childtable INSTEAD OF INSERT AS BEGIN DECLARE @customkey char(16); DECLARE @nextchild int; DECLA ...Show All
Visual Basic How to stimulate a mouse left click when the x, y co-ordinates are provided
Hello All I am trying to make an application in Visual Basic.NET which stimulates mouse left click. I am using SendMessageA API with message WM_LBUTTONUP PRE.clsCode { font-size:110%; } PRE.clsSyntax { font-size:100%; } TD DIV.clsBeta { display:none;} A:link { color:#0000ff; text-decoration:underline;} A:visited { color:#0000ff; text-decoration:underline;} A:hover { color:#3366ff; text-decoration:underline;} MSHelp\:link { ...Show All
Windows Forms A new way of drawing the forms and controls on screen.
The existing releases of Microsoft Windows, and the .net controls are designed to use GDI and GDI+ for drawing them self on the computer screen. As you may know, every control or form is responsible of redrawing itself when necessary, using the exis ...Show All
Visual Studio 2008 (Pre-release) WCF XCOPY deployment?
Is it possible to deploy the assemblies for WCF (ServiceModel, etc) to a server using XCOPY deployment I'd prefer not to run the full WinFX installation on our servers if possible - it is far easier to move to a beta if the exposure to bugs is limited to a single app domain. dneigler wrote: Is it possible to deploy the assemblies for WCF (ServiceModel, etc) to a server using XCOPY deployment I'd prefer ...Show All
Visual C# sql connection
I haved installed SQL Servver 2005. I am trying to make a connection to it in VS.NET. I get a error that says "Can notr make a connection to sql server. This may be due to the fact you have remote connections turned off. I change this settings and still have the same problem. Do you know why Cisco I got exact same error, and remote connections were enabled for my server too. This error message w ...Show All
SQL Server Can This Be Accomplished in My Time Dimension in my AS2005 Cube?
In my AS2005 cube, I have a time dimension with the following attributes: year, quarter and month. Also, there is currently no hierarchy by design. Is there a way to make a custom attribute/time period that reflects the last 12 months (R12M) and work in the same manner such as year, quarter and month The time dimension would then have: years, quarter, month and R12M. As a result, a user can drop a measure such as Sales Amt and then add ...Show All
Windows Forms Databinding to Combobox
I have a dataset with two columns, a Name and an ID. I bound the dataset to the combobox so that it displays the Name and the Value returned with a name is selected in the combobox is the ID. However, I also want to know wha ...Show All
Visual C++ (/Za) Option
Hey, what can I do to have my code as much anci C(I have set an option to compile as C) as possible I think /Za turns of MS extensions. Where can I find document describing those extensions Do I have to set some more options I code C using Visual C++ 2003 Standard and testing C++ Express edition. And 1 more simple question. When I turn off /Za "getch();" returns me an error. I have to change it to "_getch();", why Will _getch compile with gcc o ...Show All
Software Development for Windows Vista Getting Vista File Open dialog with .NET application
Our application is written in C# 2.0 and using standard file open/save dialogs. In XP, these are pretty basic dialogs, but on Vista they remain the xp-style dialogs and not the Vista-specific open dialog. I've noticed with MFC based applications, if you use the common dialog you can get the Vista specific open dialog when running the same app on Vista. Any idea how we can get the OS-specific open dialog in C# ... if not possible withou ...Show All
.NET Development How to use inherited classes in web method?
I have two classes as below: public class BaseClass { public BaseClass() { } public BaseClass(string name) { this._name = name; } private string _name = "BaseClass"; public string Name { get { return _name; } set { &n ...Show All
Visual Basic How do I use timers, and make the mouse "be" clicked
Hello, could any of you tell me how I could use the timers I looked at the help for visual basic express 2005, and it didn't help at all, in fact, it made me more confused. And how can I make it so that when the certain line executes, it will left click, i want it to do this while being minimized, so that it will left click into another program, is this possible A timer has a start and stop associated with it. ...Show All
Visual Basic How to show a filename without showing filepath
I want to display a filename without displaying the path that it is on. Example: Instead of: C:\Program Files\somefile.txt Show: somefile.txt System.IO.Path has a few handy methods for retriving bits of paths. Dim filePath As String = "C:\Program Files\somefile.txt" Console.WriteLine(IO.Path.GetFileName(filePath)) ...Show All
Smart Device Development Synchronization of PIM databases on IPAQ filestore so data not lost.. I can't turn it off!
I recently was cleaning out my IPAQ files to salvage memory. A choice appeared to save / synchronize my PIM data bases with the IPAQ filestore so it wouldn't be lost with hard reset. It seemed like a good idea. However, it synchronizes with each soft reset and takes 2-3 minutes. The ActiveSync sees the files as all new so a huge synchronization takes place with my desktop PC. How can I turn this off I can't find where the option is located. It m ...Show All
Visual Studio Express Editions Help Please on Visual Express Database Saving
I just recently downloaded visual basic express and i've found it to be a very powerful tool despite being free. I've been moving right along through the tutorial and ran into a simple problem..... I got to this page on the "How Do I" help training: "Adding or Modifying Your Records: Updating Data" I created a project and connected it to a database. When I run the form and "update" the database on the form( ...Show All
