Dan F. Jansson's Q&A profile
Visual Studio Express Editions How do I prevent the console window from popping-up in my Windows Application Project?
How do I prevent the console window from popping-up in my Windows application I mean, if I started from an empty project (or console application), and now I started using windows forms in it, the console window would not stop popping-up when I run the program. Is there some kinda compiler switch or option in the Visual C++ IDE to stop it from opening the console window (OR) How do I convert an empty project (or console project) into a Windows application project (i.e. so that the console window doesn't pop-up anymore.) You want to change the target subsystem from Console to Windows. Go to Project Properties - Linker - System and change the SubSystem drop down to Windows (/SUBSYSTEM:WINDOWS). Doing this should get rid of the annoying ...Show All
Visual C# Referencing .Net 2.0 dll in .Net 1.1 application !?
Hi , I want to refer a dll created in .Net 2.0 in a .Net 1.1 Windows application. How do I do that Thanks in advance Aseem Chiplonkar Software engineer. Well .... My problem is that I have a third party dll which is created in VS 2005. I also have the source code. I want to use that dll in my VS 2003 application. Do you have any suggestions how do i do that Thanks in advance, Aseem Chiplonkar software engineer. ...Show All
Visual Studio 2008 (Pre-release) Dyname MenuItems with Images
I have the following Menu definition. However instead of showing the text of the filenames I'd like to see the actual Images. I can do this by hardcoding the <Image Source=""> inside a <MenuItem> without the binding but I am unsure how to do it with either a Style or Template with the binding. Any help would be awesome. Thanks in advance <Window x:Class="MenuStyles.Window1" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Title="MenuStyles" Height="300" Width="300" > <Window.Resources> <ResourceDictionary> <XmlDataProvider x:Key="menuItemData" XPath="Items/Item"> <x:XData> <Items xmlns=""> ...Show All
Windows Forms MDI child form to maximize to the size of parent free space
Hi When you create a mdi application. You will have your mdi parent. Then you have the child forms. But when you maximize the child form it sort of merges/overlaps with the toolstrip on the mdi parent. is there a way to make sure that the mdi child maximum size is the size of that available dark space in the mdi parent. Not to merge or overlap the toolstrip!! Thanks in advance Wow - thats frustrating. Would be nice if there could be a property like HideIcon that you could set to true for MDI Children. Or the old way where the menu slid to the right of the childs Icon. Maybe VS2008 ...Show All
Visual C# Printing ASCII character set from 127 to 255
Hi i want to print ascii character set from 128 to 255. For that i used the following method Strings .ChrW(int CharCode) or Strings . Chr(int CharCode) but the output i am getting with this method is not similar to the Ascii character. Any help would be thankful. ASCII only contains 128 characters. Then there are a bunch of extensions to ASCII that use the full 8 bits, but you didn't say which one you're interested in. ChrW will interpret the code you pass it as a Unicode character, whereas Chr uses the default ANSI codepage. ...Show All
Visual FoxPro Copy a Text box to the Clipboard
In one of my projects I have a text box and i would like to be able to press a command button to copy whatever is in that text box to my clipboard. Any help would be great! _cliptext = YourTextBoxName. Value ...Show All
Visual C# Playing cd's with mci question
I am trying to write some code to play a CD from a drive and the user can indicate what track to play. I should be using this format, as far as I know: mciSendString("open cdaudio", null, 0, IntPtr.Zero); mciSendString("play cdaudio from 3:00:00:00 to 4:00:00:00", null, 0, IntPtr.Zero); So this would play from the 3rd track to the 4th. This does not work, it seems to start in the middle of the first track or the track that I want to paly (3). Any advice Thanks :-) see if the documentation helps... http://msdn2.microsoft.com/en-us/library/ms709492.aspx http://msdn2.microsoft.com/en-us/library/ms707322.aspx http://msdn2.microsoft.com/en-us/lib ...Show All
Visual Studio 2008 (Pre-release) WindowsFormsHost and AllowsTransparency makes all win32 controls transparent
If I set AllowsTransparency=True on a form, all of my WindowsFormsHost controls become invisible. These controls obviously don't have an opacity property, it there anything I can do to get these controls visible (June CTP) Mark Hey Mark, I also stuck with same problem :( Do you get any idea to solve the problem Cheers, A. Kahn ...Show All
Software Development for Windows Vista Windows SDK on Visual Studio 2003
Hi, I was wondering if the Windows Vista Beta 2 SDK works on Visual Studio 2003 or if it only works on 2005. ...Show All
Visual C# Why can't an interface method be internal?
When I try to make a method in an interface internal I get a compile error. Why is this Thanks in advance, Per Rasmussen. Perrs : I understand now, sorry I had your question wrong. Yes, you are running into a "limitation" of the c# language (or possibly the CLR - but without investigation I suspect it's c#). Can't tell you a "fix", since it's just the way it is. The best work around I can suggest is exactly what cverdon suggested. internal interface ISomething { void Func(); } public class Aclass : ISomething { void ISomething.Func() { this .Func(); } internal void Func() { ...} } &nbs ...Show All
SQL Server Performance degradation in December CTP of AS 2005 SP2
Has anyone had any similar experience with the December CTP of SQL Server 2005 and Analysis Services SP2 We have a simple MDX query which returns 245 rows and 15 columns of data. When running this query through management studio under SP1 it takes 1 second, and when run through an XMLA query it takes 2 seconds. We have now installed the december CTP of SP2 on an identical server and re-deployed / re-processed the identical cubes to this server. When running this first test query it takes consistently 6 seconds and 20 seconds when run through an XMLA query. Does anyone have any hints on what could be different in the new CTP that could be behind this One thing that I have noticed is that running the MDX as an XMLA query produces t ...Show All
Visual Studio Team System CTP5 Schema Compare Errors
Hi I have installed CTP 5 and am having problems comparing the schema of two databases. I have tried altering the schema compare options and also tried using different databases on different platforms to no avail. This did work for me using CTP 4 but now Visual Studio errors and wants to close. I have included the error dump below and have sent several error requests to you. I would appreciate any help you can give on this. AppName: devenv.exe AppVer: 8.0.50727.42 AppStamp:4333e699 ModName: kernel32.dll ModVer: 5.2.3790.2756 ModStamp:44c60f39 fDebug: 0 Offset: 00015e02 Hi Rob, We would expect that you should get the error message telling the reason why schema compare would not wor ...Show All
Visual Studio Team System TFSDeleteProject Doesn't Remove Project From Source Control
I ran the TFSDeleteProject. This appears to finish succesfully. The only thing that isn't deleted is the Project in Source Control. I selected the 'show deleted items' in my VS2005 and can see the deleted files under the Source Control project. Is there a way to totally remove the project from Source Control We want to re-create the Team Project with the same name we used before, but it can't because of the existing Project in Source Control. I see many entries in the Forum that had this same problem, but they were using the beta version. We are using the TFS released version, not the Beta. Is there a way to do this yet Just looking for clarification. I used the TFSDeleteProject.exe to remove a Team Project that we used as a ...Show All
Microsoft ISV Community Center Forums Help with comma separated values in report
Hi! A bit of a stuck-up. It’s no problem in creating a coma separated fields in .txt kind of file. But I have another problem which is probably simple to manage (not for me though - my brains work 24hrs/day and don’t come up with nothing). I want to show several different values from one field (in query) on the report - now check this - They have to be separated by a comma in one line. If anybody is familiar with the solution just show me the direction and I’ll try to solve it by myself. Thanks in advance This works for me. Option Compare Database Private Sub Odpri_cmrjizafakturo_Click() Dim dbs As Database Dim rs As DAO.Recordset Dim fakture As Form Dim tfakture As String Dim strsql As String Dim firstrec As Boolean ...Show All
Visual Studio Visual Studio Installer Hangs
I am trying to install Visual Studio Professional (academic edition) on a Dell 9200 (Intel Centrino 2..1 GHZ 2 GB RAM) with Office 2003 installed. When I run setup I get the splash screen and I select "install visual studio". The buttons go grey, the setup.exe process sucks up about 98% of my cpu, and nothing happens. The DVD eventually stops spinning and the machine just sits there. Any suggestions> Mark Lewus mlewusAToptonline.net have you tried reading this http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=778624&SiteID=1 specifically have you disabled your anti virus software before installing ...Show All
