Globalog's Q&A profile
Windows Forms Starting processing after form-load
How can i get proccessing to begin after the form has displayed If put in the Form_Load sub it waits till after it has finished before displaying the form. If you being processing something after the form has been shown then it will have the effect of 'freezing' it which is not a nice user experience. It might be worth consideri ...Show All
Windows Forms Add spaces to drop down list
i am developing an ASP.Net application. i displayed 2 fields from the database in a drop down list. my query was: select EventCode+EventDescription from Event. it works properly but i need to add spaces between the two fields so i used the sql function SPACE. my query become select EventCode+SPACE(5)+EventDescription from Event i get only one space between the two fields. how& ...Show All
Visual Studio 2008 (Pre-release) Ho to scale JPEG images
I've scaled Jpeg images using something similar to the following code (GDI+): System.Drawing. Image previewImage = new System.Drawing. Bitmap (fullImage, ( int )(fullImage.Width * factor), ( int )(fullImage.Height * factor)); previewImage.Save(previewImageFilename); where fullImage is of type System.Drawing.Image and factor is of type Double. How to come to the same result (preview JPG file saved on disk with the given scaling factor) when fullImage is of type BitmapSource (or BitmapFrame) Scaling for the UI is simple in WPF but does not scale the source image itself. The JpegBitmapEncoder provides several transformation ...Show All
Visual C++ Strange C2664 in VC 7.1, VC8
Hi, While porting some C++ code from VC7 to VC8 (2005.NET) I encountered a strange version of compiler error C2664. The actual code was of course much more complicated, but I have managed to reduce the problem to this 40-liner: // CODE BEGIN class Class1 { public: virtual Class1 * Copy() const = 0; }; class Class1Deriv : public Class1 { public: Class1 * Copy() const { return (Class1 *)(new Class1Deriv(*this)); } }; class Class2 { public: Class2(const Class1 &arg1); }; class Class3 { public: Class3(const Class2 &arg2); }; void main(void) { const Class2 *p ...Show All
Windows Forms How to populate a listview?
Please help, i want to populate my listview from a datasource, how do i do that all i can find in the web is adding single listitems and subitems, i'd appreciate any help. and also, deleting multiple items.. thanks in advance. As much as I want to, I am re-installing my Visual Studio 2005. The current version of Visual Studio installed on my machine is Visual Studio 2003 and Visual Studio 6.0, neither of the versions I have rightnow has support to "grouping" in ListViews. Regards, -chris ...Show All
SQL Server Problem during the process database
This is the error when i execute the code for the association algorithem. "Errors in the high-level relational engine. The data source view does not contain a definition for the 'receiptid' column in the 'receiptdesc' table or view.". Dim ds As New RelationalDataSource( "miningas" , "miningas" ) ds.ConnectionString = "Provider=SQLNCLI;Data Source=localhost;" & _ "Initial Catalog=miningas;Integrated Security=SSPI" db.DataSources.Add(ds) ' Create connection to datasource to extract schema to dataset Dim dset As New DataSet() Dim cn As New SqlConnection( "Data Source=localhost;" & _ "I ...Show All
Windows Forms disable horizontal scrolling of datagrid
does anyone know how to disable horizontal scrolling of datagrid that has databinding Hi. There is no property in the V1.1 DataGrid that disables horizontal scrolling. If you can upgrade to V2.0 then consider using the new V2.0 DataGridView control where you can disable horizontal scrolling. The V2.0 DataGridView control has the ScrollBars property which you can use to control both vertical and horizontal scrolling. Hope this helps, ...Show All
Visual Basic Visual Basic 2005 Question for Calling Another Program
Hi All, I have a question I'm trying to figure out - I'm writing a simple little VB app where I want to have a button or some type of action that when activated, it will call another application. I can get this to work, however, I need to be able to use switches with my application and that is generating an error when I try to run my app. The following is the code I'm using (I'll use notepad as the sample program I'm trying to run) Dim test1 As String = "C:\windows\system32\notepad.exe" System.Diagnostics.Process.Start(test1) This works and will start the notepad app but if I use something along the lines of the ...Show All
Windows Forms Help: Set value to one single cell in DataGrid (WinForm)
Hi all: I use myDataGrid[RowNum, ColNum] = "MyValue"; to set a value to a single cell. It seems that by running this statement the CurrentCellChanged event will be triggered. Is there a way I can use to set value to single cell while avoid to trigger that event Thanks! Just tried it, and it sure does&n ...Show All
Visual Studio Team System Publishing test results failing
Hi, We have deployed TFS in a lab environment in a single-server configuration. ie: We have SQL 2005, TFS on one server and Team Build server on another server. The firewall is disabled on both the TFS Server as well as the Build server. The account that the Build Service on the Build server is running under has admin rights on TFS as well as the TFS Server as well. I had given this account full rights to the team project as well. The Publishing service is still failing. Please help me identify where I am going wrong with this. cheers, Garnet. Hi, once I added the (domain\userAccount) that the ...Show All
SQL Server Load a SSIS package via Web Service: The package failed to load due to error 0xC0011008 "Error loading from XML.WHAT IS THAT?
Hello, I have a big problem and i'm not able to find any hint on the Network. I have a window2000 pc, VS2005,II5 and SQLServer 2005(dev edition) I created an SSIS Package (query to DB and the result is loaded into an Excel file) that works fine. I imported the dtsx file inside my "Stored Packages". I would like to load and run the package programmatically on a Remote Scenario using the web services. I created a solution with web service and web page that invoke the web service. When my code execute: Microsoft.SqlServer.Dts.Runtime.Application. LoadFromDtsServer(packagePath, "." , Nothing) I got ...Show All
SQL Server Query Issues Pt.3
myCommand = New SqlDataAdapter("SELECT tblWatchInstance.WatchID,tblWatchBrands.Description,tblWatches.Serial_Number,tblWatches.OwnerFName,tblWatches.OwnerLName, tblClients.Name FROM tblWatchInstance INNER JOIN tblWatches ON tblWatchInstance.Watch_Key = tblWatches.WATCH_KEY INNER JOIN tblWatchColors ON tblWatches.COLOR_KEY = tblWatchColors.COLOR_KEY INNER JOIN tblWatchBrands ON tblWatches.BRAND_KEY = tblWatchBrands.BRAND_KEY INNER JOIN tblWatchTypes ON tblWatches.WATCHTYPE_KEY = tblWatchTypes.WatchType_KEY INNER JOIN tblClients ON tblWatchInstance.Instance_Key = tblClients.CLIENT_KEY WHERE tblWatchInstance.RepairNumber LIKE '%" ...Show All
Visual Basic Storing a form in a dll
In my project I have four forms. Is there a way to store a form in a dll file instead of storing it in the exe file. I want to be able to call the form to show just like I would normally. If there are any links on how to do this in vb.net that would be great also. Thanks. Hmm that was too simple. Maybe that is why I never thought of that. I'll give it a try. Thanks. ...Show All
SQL Server Missing Distinct Count option in Measure's Aggregate Function property
I am trying to get a "distinct count" aggregate function specificed for a measure that is non-numeric. Is this possible When I use the cube editor, the Distinct Count appears in the drop down list only when the measure is numeric or datetime. If the measure is varchar, the Distinct Count option is not there. Any thoughts Scott, Thanks for helping me, i did what you told me and worked fine. ...Show All
Visual Basic How MSCOMM object sends white spaces on modem?
Hi, I am facing a problem now a days. I am implementing TAP protocol using AT Commands in C#. I am using MSCOMM object to send AT Commands on modem. At one point while sending these commands, I need to send Carriage Return character (\r) on modem. When I send this character on modem keeping it in a string it doesn't give proper response. Can anybody tell me that what is this problem. I have tested it on hyper-terminal (Windows Utility), it works fine there. Thanks you can use CHR(13) instead mscomm.output = String & chr(13) ...Show All
