Veljko's Q&A profile
Windows Forms DataGrid Sort Selections
Greetings, I would like to add a “no sort” selection to the sort options for a DataGrid. I’ve noticed on several 3rd party datagrids that when the column header is selected consecutive times the sort goes from ascending, descending, original order. The& ...Show All
Windows Forms mc++ icon/resource trouble
Hi, I am writing a program in MC++ and am having a problem getting my main form's Icon to display properly... My application is crashing, based on the following process: 1 - I made a custom icon for the form (myIcon.ico) 2 - Right Click on the form (in the [design]), click "Properties", then click the "..." button of the "Window Style"->Icon field... 3 - choose "myIcon.ico" from the file chooser 4 - VS .NET then produces the following relevan ...Show All
Visual C# DLL Files
You can create an DLL so that you can easy deploy this with more projects. There are no performance penalties, when a DLL is needed it will be loaded and it stays loaded untill the application ends. For your development it can be handy to have multiple projects (DLL's) and for the update process it can be usefull to. The user doesn't have to download a very large .EXE file when you only updated one class for example. You can sepperate them ...Show All
Visual Basic Hex function and Byte type declaration problem
I have a program that is supposed to format data into 4 hex bytes and sent thru the serial port. The declaration section contains the following: Dim Addr, MsData, LsData, CkSum as Byte Dim Cmd1, Cmd2, Cmd3, Cmd4 as Byte Data is input to the Addr, MsData and LsData bytes and ChkSum is computed as (MsData and LSData are parsed from a single text box input (0 to 4095 range): MsData = Int(InputData / 64) LsData = InputData Mod ...Show All
Visual C# How do I tie a database into my C# application?
We are creating a data driven C# application and we would like to use the power and functionality (normalized database, stored procs, etc..) of SQL Server Express, but the data that is held in the database is in essence going to make up a large portion of the source code to our application. Is there a way to embed or compile the database into the application so that the end user that installs the application from a CD will not be able to view ...Show All
SQL Server SQL Server user id
When a CLR sproc, udf or trigger calls a webservice, what credentials are passed along with the request I have a trigger that calls a webservice on another server, but when the trigger actually calls the service the service returns a 401 error. If I have the trigger and the service on the same machine, everything is happy and works fine. I have 'Anonymous Access' turned off and 'Integrated Windows Authentication' turned on, on the webservice' ...Show All
Windows Forms Need some event that occurs before "BindingSource.CurrentChanged"
I'm looking for a way to execute some operations before the record changes. I'm already using the "BindingSource.CurrentChanged" but I need some event that hapens BEFORE the record actualy changes. Does this event exists One of the things I'm trying to use this for is to prevent the user from changing record without saving the updates he has done to the data. Maybe there's an easier way to do that, but I'm thinking in use some 'flag' ...Show All
Windows Forms DropDownList SelectedIndexChanged not firing
Is there a trick to getting a SlectedIndexChanged event to fire on a DropDownlist control No matter how I select an item this event does not fire. I ahev checked my code, I can do even handling for any of the other controls in the form but nothing on this DropDownList. Thansk in advance. Hi fhunter, Have you tried getting it to work in a fresh project 1) Add a ComboBox 2) Add some list items by sel ...Show All
.NET Development conn.open in asp.net
Hi I am converting an asp application to asp.net, and I have an access database, now when I am running the converted asp.net application in a browser, I am getting the following error, I am new in this field, hence need help, thanx in advance [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Description: An unhandled exception occurred during the execution of the current web request. Please re ...Show All
Visual C++ Do I need to install .net FX 2.0 on other computer?
As I used VS.net 2005 to write a win32 console application, and it turned out that I couldn't execute it on other computer without .NET Framework 2.0. As I know this is not the case with VS.net 2003(which using .NET Framework 1.1) Now I wanna ask "What can I do to make my program run on other computer without installing .NET Framework 2.0 " Or "There ain't any solution " Thx Now trying to do this with Visual ...Show All
Visual Studio 2008 (Pre-release) XML column support?
Hello! Linq exists in various flavours, e.g. DLinq and XLinq. Is there a convenient way to take advantage of the new XML column features in SQL server 2005 when using DLinq If yes, any hints Best regards, Heneik Dahl Yes - it is like a string. Updates are at the entire string level, not based on difference between before/after XML. Dinehs ...Show All
Visual Studio Team System Web Test Recorder : Can you turn off the replacement of hidden fields by context parameter placeholders?
"When recording is finished, the Web Test Recorder automatically detects the use of hidden form fields." (help) It also replaces the actual data value with a place holder for a context parameter which is great in many scenarios (e.g. viewstate, complex data scenarios, ...). However when you just want to setup some 'simple' load tests and don't really care about the values passed it is rather time consuming to replace all the placeholders m ...Show All
Windows Forms Form's Location resets after showing?
Hello all. Does anyone know why Form.Show() resets the Form's X and Y coordinates after showing (this program uses dual monitors) Bounds before: 1024, 0, 1024, 768 this.Show(); Bounds after: 0, 0, 1024, 768 //trying lots of methods to set the Bounds... arg this.Bounds = screen.Bounds; this.Location = screen.Bounds.Location; this.SetDesktopBounds( screen.Bounds.X, screen.Bounds.Y, screen.Bounds.Width, screen.Bounds.Height ); Console. ...Show All
Windows Forms vb application deployment
STRESS!!!!! I have finished my project/app and now would like to put it on disc to distribute. I have created a deployment project and asigned my app to it. I goto build and get a build error: Unable to build assembly named 'bookings.exe',HRESULT == '8007064F' Can anybody explain what this means and what I should do to resolve my problems. My app is made of various forms with an access db. I have some crystal reports in there as well. Many T ...Show All
Smart Device Development getting error "value does not fall within the expected range" on pocket PC 2003 emu
Hey all, Im stumped at this seemingly easy task. I need to ask a user for a file name. thats it. But im getting the above error. here is the code: (Where UserInput is a basic form with 2 buttons and a text box) UserInput ui = new UserInput(); ui.Parent = this; if (ui.ShowDialog() == DialogResult.OK) <-- ERROR HERE { fileName = ui.FileName; ...Show All
