Al.Vazquez's Q&A profile
Visual C++ CWinFormsDialog in MFC
Is there any way of instantiating a CWinFormsDialog directly from an MFC MDI application's MainFrame object I have studied your MFC Windows Forms integration sample and noticed that the forms are instantiated either as doc-templates or created from a CFormView in an external DLL. I was hoping to open a winformdialog directly from the mainframe menu, but I am starting too see the limitations of the integration of winforms in MFC. Is there any other way of dealing with this issue Does the winform have to originate from a dynamically created document or could it be instatiated directly. I am trying to use it as a floating setti ...Show All
Smart Device Development installing .NET CF 2.0 on a Pocket PC
hi how do I install the CF 2.0 on a Pocket PC it's currently running Windows Mobile 2003 SE thanks, well, i try to uninstalled from 'Control Panel', however, in my ppc, .net cf 2.0 still exist I use this way to check: http://msmobiles.com/users/1/archives/2005.4.20_19046/netcf2.gif does it have any affects when I using vs.2003 to write code because I think I am just gonna use cf 1.1 at the moment as I don't have vs.2005... ...Show All
Visual C# System.Web.HttpUtility
Hi! I'm currently using the VS Beta 2 to reprogram a project first done in the 2003 version. The problem is when I'm trying to use the HtmlDecode method in System.Web.HttpUtility class, the only thing I get up as possible methods are the three ASP... methods. Is there anywhere I can download an upgrade for this Or is there maybe an alternative method to use Thanks! /rosin Rosin, For what it is worth I have Verion 8.0.50215.44 (beta2.050215-4400) installed and my System.Web.HttpUtility has a HtmlDecode method. Could there be some sort of name clashing going on or references/using state ...Show All
Visual Studio Team System Source Control - default working Path
Hi! Is there a way to set the default local working path If someone opens the project, he has to set the working path, but I want to set a default path! regards Simon Sort of. If you have a workspace you want other people to mimick, they can create their workspaces using the command ‘tf workspace /new <WSname> /template:<templateWS>;<username> /server:<server>’ ...Show All
Visual Basic Drawing Lines on a form
Ok I've given up trying to draw on a user control ! that seems a right mess seems very buggy to me! So i've transferred my code to drawing on a form surface and it all works ok But!! i have to do it twice for it to work I single step thru my code and can actually see the lines being draw on a Black surface then right at the end the form is repainted with its background colour and all my lines vanish! I've tried re-ordering my code around , setting background colour before doing the drawing etc but nothing seems to work. I am probably missing something obvious so if anyone knows what i'm not understand i would appreciate being enlightened ...Show All
Visual Studio Express Editions vb express limitations
I haven't been able to find any docs on what you can't do with vb express. I'm hoping to be able to automate the process of importing a .txt to an excel spreadsheet, and saving it to a shared drive with that day's date in the file name. Does anyone know if that's possible Thank you. There are absolutely no limitations on what you can do in VB 2005 Express with regards to language. It still uses the VB 2005 language so whatever you can do with that language you can do in the Express IDE. The limitations are in IDE features. that just means that in some cases you'll need to write more code yourself, ...Show All
SQL Server Frustrated: Error Output in Source and Destination Editor.
Hi Is there anyway I can multi select rows when I'm changing the value for either Error or Truncation I'm finding it frustrating having to change 2 values for each row in the output. for example redirect row, when I have 10,20,30 columns. It would have been nice to have a global drop down at the top of each column so that I could then selectively change rows back. Any hints and tips on making this easier would be gratefully appreciated. Thanks Hi doug, I'm using The June CTP downloaded from MSDN and that doesn't have aany buttons. What release are you running And thankyou for your re ...Show All
Visual C# Nested Generic Approach
The following is my class definition public abstract class FieldDefinitionBase<AttributeType> public abstract class FieldDefinitionCollectionBase<T> : List<T> where T: FieldDefinitionBase<Attribute> public class DataFieldDefinition : FieldDefinitionBase<DataFieldAttribute> public class DataFieldDefinitionCollection : FieldDefinitionCollectionBase<DataFieldDefinition> The DataFieldDefinitionCollection cannot be compiled: the type 'DataFieldDefinition' must be convertible to 'FieldDefinitionBase<System.Attribute>' in order to use it as parameter FieldDefinitionType in the generic type of method ' ...Show All
Windows Forms Adding an icon to the form taskbar when using a form with no border?
Hello, I am making a form in Vb.net using a skin so I do not have a border on my form, but I would like an icon to show up in the taskbar when the form is opened. Is this possible I haven't been able to find anything that says you could. Can someone please help, point me in the right direction, or confirm that this can't be done Thanks, Marc Hi, I'm not sure how this can be done, but I can confirm that this CAN be done, since WinAmp is doing it (try setting skin and show WinAmp in taskbar, you'll see that WinAmp in taskbar has icon). I'm also trying to figure out how to do th ...Show All
SQL Server Insertion / updation problem in SSIS
“I have a scenario where i am trying to insert 200,000 lac records & update 200,000 lac record in destination table using SISS Package (SQL SERVER 2005) but I am not able to neither update nor insert the records . while executing the package its not showing any error also . what could be the problem “ We have business logic in Package creation 1) Insert New records and 2) Update Existing Records using the follow Data flow diagram For update we are using OLEDB command, for insert we are using OLEDB Destination. We are using merge join for spliting record into insert and update. ...Show All
Windows Forms The order of files returned by the OpenFileDialog
I have a question about the order of files returned by the OpenFileDialog. I have four files (File1.txt, File2.txt, File3.txt and File4.txt). In the OpenFileDialog I select them in the order of: File1, File2, File3, File4. However in the OpenFileDialog.FileNames array they are in the order File4, File1, File2, File3. If I select them in the order File4, File3, File2, File1, then in the array they are in the correct order (File1, File2, File3, File4). Why, and is there any way they can be forced to be returned in the order selected, or at least alphabetical order I’m using VB .NET v7.1 and .NET Frame ...Show All
Visual Studio Express Editions Install C# Express Edition?
"An instance of setup is already running. Only one instance of setup can run at a time." What is this error message mean I have VS 2003 install on my local computer. Also, .NET framework 1.1. Is it anything to do with the VS 2003 Also, I never install any version of VS 2005 or Express edition. PLease Help... Thanks, Ron. Have you tried using the uninstallation tool referenced in the following link http://msdn.microsoft.com/vstudio/express/support/uninstall/ The preview version(s) of VS2005 maight not have been completely uninstalled. Thanks, Scott Currie DDCPX Program Manager Microsof ...Show All
Windows Forms Transparency in imagelist images
This has been a bugbear of .NET since V1.0 so I hope it has been addressed in .NET 2.0! Do the Windows Forms controls (ImageList and List/TreeView) now fully support images with multiple levels of transparency In my instance I use PNG files with an alpha transparency but also have the option to use 32bpp BMP format files. Our application needs to target Windows 2000 as well as Windows XP. Using Windows 2000 (my development machine), I can see that there is at least one improvement in alpha channel support over .NET 1.1 - assigning an image to a PictureBox control from an ImageList containing PNG format images with alpha channel transpar ...Show All
.NET Development Datasets aren't finalized after leaving the scope
Hi, we discovered a strange behaviour concerning garbage collection of datasets. Because our application needs a tremendous amount of memory and constantly allocates more and more of it we are counting the instances of our objects in memory. Thus we able to determinate if an object is finalized by the garbage collection. Basically most of our objects contain these code snippets in the "new" and "finalize" methods: Public Sub New () MyBase . New () TestClass.SharedCounter += 1 'Shared variable of integer End Sub Protected Overrides Sub Fina ...Show All
Visual C++ Software controlling mouse in WinXP
Hi, I've been trying to write a program in VC++ .NET which controls mouse movement in WinXP. Sadly I'm a little lost as to how I should achieve this. All I want to be able to do is to set the position of the mouse cursor to an arbitrary place on the screen. I was hoping there was a straight forward system call I could use to fake a mouse interrupt, but I haven't had much luck finding that. Does anyone know how this is done, or if the approach is wrong, what's the alternative JP. wrote: Hi, I've been trying to write a program in VC++ .NET which controls mouse movement in WinXP. Sadly I'm a little lost ...Show All
