iMo's Q&A profile
Windows Forms How to fill empty bound DataGridView with empty rows
I'd like to have my empty and partially empty bound DataViewGrids be filled with empty rows (so none of the gray grid background is ever showing). Is there any way to do this Thank you No. You'll either have to manually paint the appearance of rows or manually add rows to your datasource. -mark DataGridView Program Manager Microsoft This post is provided “as-is” ...Show All
Windows Forms Adding an eventhandler to a control created at runtime
I need some help. I'm creating an application where I add control on runtime to a form. This works fine and I can set all the properties I want. But my problem is how to add a procedure to those controls. I have several controls using the same procedure for handling some specific events (e.g. MouseUp, MouseDown). Can somebody provide a sample or some hints how to solve this Hi, if you want to add a new event handler to your component do something like this: myControl.MouseDown += new System.Windows.Forms.MouseEventHandler(this.myControl_MouseDown); and then define your event handler: private void myC ...Show All
SQL Server replace first few characters
how do i replace "Building" with bld i will getting the data like this: Buildling 100 Buildling 200 Buildling 300 Buildling 400 Buildling 500 i want like this: Bld 100 Bld 200 Bld 300 Bld 400 Bld 500 in other words, where ever building replace with BLD i'm using SRS 2000 thanks a lot Hi, You can do this either in the query or in the report. In the query you can use the SQL REPLACE() function http://www.sqlteam.com/item.asp ItemID=7386 if you are using a SQL data source. Or in the report you can use an expression like =Fields!MyValue.Value.ToString().Replace(& ...Show All
SQL Server stored procedure return/result behaviour change from 2000 -> 2005 ?
Hello, Can someone please help explain if the way MS SQL Server 2005 returns result from stored procedures is different from MS SQL Server 2000 The problem i am having is that i have lots of code that used to connect to SQL-2000 and did this: SqlDataAdapter da = new SqlDataAdapter(sqlCmd); ds = new DataSet(); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) //process rows SqlCmd Type is a StoredProcedure btw, in SQL-2000 if the stored procedure result is empty, i still get one table in the dataset tables collection "table[0]", and the table is empty; in SQL-2005 however i get NO tables at all if the result is empty, whi ...Show All
Visual Basic How to Disable a tabpage in a tabcontrol?
i need to disable a tabpage in a tabcontrol. Is there any good solution to this the tabcontrol doesnt have a selecting event. Please help. Hi, Try to hide it, if you can't disable it, it's so simple!! ...Show All
SQL Server Simple migration from MySQL to SQL Server Express 2005?
Normally I'd go and write a bunch of code for doing it manually... But instead of that, maybe there is a smarter way What I know is that you can get some kind of dump out of MySQL but I would be very surprised if that could be directly read into SQL Express So if you have a few step guide to migrate from MySQL to SQL Express, I am all ears (and eyes)! Thanks! (Yes I am aware there is some DTS thingy for this but could not find it in the Express folders) There is no real direct ways to do this that I'm aware of, but I have a few ideas I'll share with the group. While SQL Integration Servic ...Show All
Windows Forms DataSet Encryption
What is the best method to achieve DataSet encryption I know of serializing it to XML and then encrypting the resultant XML. I need to send this encrypted DataSet on the wire, so I am looking at performance issues also here. Kindly suggest. Thanks, Kunal Thanks for the links Vikram, I had already done what was there in the first link, but the second link is real helpful. ...Show All
Visual Basic Jpg to Tif convert
Does anyone know how to convert a 32bpp image to a 1bpp image so I can save it as a compressed TIF I know how to save a compressed TIF, but I do not know how to convert a 32bpp image to a 1bpp image. PLEASE HELP. Thanks; Ben Thanks for the reply. .Net do not allow you to create a graphics object for a 1bpp image. How do you draw a 32bpp image on a 1bpp image without a graphics object Thanks; Ben ...Show All
Visual Basic Visual Studio 2005 Standard vs Professional
Hi, I am trying to decide between the Standard and Professional versions of visual studio. The only information I can find on the Microsoft web site with a product comparison is ... http://lab.msdn.microsoft.com/vs2005/productinfo/productline/default.aspx this lists several differences which may/may not be of concern to me. Does anybody know where I could find more information on.... 1. The difference between the 'streamlined' and 'full' user experience (I assume this means IDE) 2. What is extensibility available in the professional edition above the 'consume extensions' of the standard edition 3. Does 'remote' debuggi ...Show All
Visual Basic How to remove items from a sorted list in ListBox
In an application in Visual Basic 6, I add items (which include dates) one at a time by using AddItem, and display them in a ListBox. Works great. Turn on Sorted property in list box and they display chronologically listed by date - even greater. BUT, when one item is selected from the list and then REMOVED by RemoveItem, it does not work correctly. The items seem to retain an array number from when they were added, and do not change to the ListIndex number of the row in the sorted list. In other words, in most cases, selecting one item (e.g. the fourth down in the sorted list) removes another one (e.g. the second, which was the fourth ...Show All
SQL Server Need help running .dtsx package from web page
I'm trying to get the syntax right to run a sql agent from my server that in turn will run a .dtsx package when the user clicks a button. So far I have: in my .aspx page: < form id ="form1" runat ="server"> < div > < asp : button id ="contact_submitted" onclick ="Run_Process" runat ="server" cssclass ="submitbutton" Text ="Click here to start Processing" PostBackUrl =""> </ asp : button > </ div > </ form > In my Code-Behind: Imports System.Data.SqlClient Partial Class _Default Inherits System.Web.UI.Pag ...Show All
Visual Studio Team System Can I disable Deployment?
Deployment seems to be a great idea, and will go a long way in providing a robust testing environment. But in a TDD environment where developers are running tests very often it is not very practical. Not to mention the problems with Deployment Items (attributes do not work on the class, solution deployment options under Run Configuration settings have quit working for everyone in my department), and the fact that VS does not clean up after itself in the deployment root (over a few weeks of development these folders and files are beginning to take up a signigicant amount of space). It has become a *very* major headache for me and others that ...Show All
Visual Studio Express Editions Connecting to access mdb file problem.
I am having some trouble connecting to my Access Database from Visual Studio Express 2005. I can add a connection if it is a sql database, but when i change the Datasource to the access option and hit ok i get a window that allows me to change my Connection string, and thats it. If i cancel it exits the wizard. Also the only data provider i have is .net framework provider for ole db. Should i have a second provider The other software i have installed is access 97,and access 2003 both with their corresponding developer software. I also have an educational version of visual studio .net 2003 and i can connect to the db using . ...Show All
Visual C++ Deployment Problem
Hi All, I have create a managed DLL (for dotnet 2.0) using visual C++ 2005 (work with windows media format). I have problem on deployment in windows 2000 server. It's error code is 0x8007007e seems like it's lost some library or thing. Is there any prerequisite installed in client computer wen using managed c++. Any one please help. Thanks Tutnik Tutnik wrote: I have problem on deployment in windows 2000 server. It's error code is 0x8007007e seems like it's lost some library or thing. Is there any prerequisite installed in client computer wen using managed c++. One way to examin ...Show All
Visual C# Serilization of a generic List of a custom type, how?
Well, hi all. This is my first post here, since I haven't been able to find the required information anywhere else, so I will give it a go here... I am trying to make a generic list of a custom type and serializing it. Sounds simple but apparently its not. I have now boiled the problem down to a very simple example, and tried to get consistency in the problem. The problem occur every time the assembly holding the custom type is rebuild. Naturally, I can make a list of some .NET type and it works, and I think thats because the .NET assemblies are not rebuild in between. Is it a feature in .NET that it is not possible to do generic list ...Show All
