joseadolfo's Q&A profile
Windows Forms Unable to replicate Windows Volume dialog using .NET 2.0
I'm trying to create a form like the one that you see when you single-click the volume icon in the status notification area (aka system tray), but I'm running into a couple issues. First off, I can't seem to get a trackbar to display without tick marks and with the both style, in order to accomplish the rectangular slider bar without tick marks. These are separate setable properties in the Win32 world, but they've been lumped together for WinForms. Anyone know any workarounds Secondly, I'm unable to create a form with that small of a width. Initially, the form designer wouldn't let me enter a width below 123 for the form, even with the control bar turned off and the caption bar hidden altogether (Text = ""). This doesn't se ...Show All
Visual C++ Intercept the PASTE message
Hi: I want to know how to intercept the event which is generated when the user do : CTRL+X or a paste. I don't find a message like SC_PASTE in the documentation. Is there any message related to the Clipboard Thanks. A.B. Hi: I want to tell you that my application is a service that intercept system messages like doing a paste or a CTRL+X what I want to tell you is that I do not have a window or any other GUI, however The SetClipboardViewer requires a HWND. How can I get this handle ...Show All
SQL Server Backup cant find database name
I was trying to backup my database file using My.Computer.FileSystem.CopyFile but because SQL keeps the file locked this doesnt work (I am using VB.NET 2005 Express and SQL 2005 Express). It seems that the Backup command is what I want to do but it doesnt recognise my database name, which otherwise appears in the Database Explorer tab of the IDE I wrote a function to use the Backup command as follows Public Sub MyDbBackup() Dim sqlconn As New SqlClient.SqlConnection(MyConnectionStringdb) Debug.Print(sqlconn.Database) sqlconn.Open() Dim Backupcommand As SqlClient.SqlCommand = New SqlClient.SqlCommand("BACKUP DATABASE MyDatabase TO DISK = 'c:\Mydatabase.bak'") Backupcommand.CommandType = CommandType.Text Ba ...Show All
Windows Search Technologies WDS 3.0 ADM
Does anyone know if/when ADM files will be released for WDS 3 to manage through GPO I currently have the 2.6 ADM files but the settings don't work on the new version. JHurt, Microsoft currently is not supporting group policies with 3.0. We are working on adding group policy support in the near future. In the mean time, we are suggesting that our enterprise customers continue using WDS 2.6.5 as that will better meet your needs. Paul Nystrom - MSFT ...Show All
Windows Forms PropertyGrid Adding EventsTab
I am having problems adding the EventsTab to the propertygrid. I have not been able to find much information on how this is done and documentation is very rare. My code adds the EventsTab to the propertygrid but it never gets displayed. I am setting the Site of the propertygrid to that of my designer as I have seen that you should do this but still It doesn't display the EventsTab. Any help would be much appreciated. Thanks Hi Giftednewt, Thanks a lot. Can you please add the structure of DesignSite and type of m_serviceContainer and objSurface . I have the similar kind of requirement. I am not able to bring custom control's events collection in form design mode. Thanks in advanc ...Show All
Software Development for Windows Vista SHaring Data on PC and across the Local network
So after about 30 setups my application actually installs on windows vista now. If you haven't tried to install a database on vista yet that can be shared amongst 2 or more users on the same machine you just haven't lived <g>. Its really fun! If you want a fun test, try to take a simple microsoft access database and install it on a windows vista machine so that 2 users can read and write to it. Despite days of work, hours of cussing and many posts on the msdn forums with other angry developers with this same issue, we actually managed to get this to work. We placed our database in a subfolder of the system defined Microsoft Common Application Data folder (CSIDL_Common_AppData) like so c:\programdata\[applicationname] ...Show All
SQL Server SQL Server 2005 Data Encryption Issues
I read a couple of articles related to encryption topic in this forum and I feel that's really helpful I don't know if anyone has some knoeledge about the encryption issues in replication and clustering environment. I read some documents from Microsoft web site that explains how to move an encrypted database from its original server to another new server instance. That cause a lot manual works, if the database master key has been encrypted by the original service master key and you still want to enjoy the auto-open feature in the new environment. As we know the Microsoft SQL Server 2005 has a hierarchy encryption key structure and its top level service master key is really service oriented. For what kind of mechanism or set up, Microsoft ...Show All
Visual C++ Specific MFC functions wont load / unresolved
Hello again, i have a running thread here but that didnt descibe the problem the right way so im restarting. im using some mfc in my C++ app for Pocket PC 2003(ARMv4) Compiling of the project is no problem but when i build i get loads of link errors... Mainly it cant find: CListCtrl::InsertColumn CListCtrl::SetItemText CDC::ExtTextOutW CWnd::Create CWnd::CreateEx CFileException::CFileException and some other functions are also missing but your getting the point. I have Use of MFC as dynamic so it is included, and what i find even more confusing: Found "public: int __cdecl CListCtrl::Create the uafxcwd.lib holds the ClistCtrl, and when I open the lib, it also contains InsertColumn and SelItemText, but some ...Show All
Visual C++ built-in variables for VC?
Hello everyone, I always notice that some guys are using some VC built-in variables to specify some properties, like OutDir, ProjectName, SolutionName, etc. Then we can use the built-in variables to specify, for example, the generated library name, like $(OutDir)/$(ProjectName).lib. I think this way is very convenient compared with hardcoded names. I am wondering where can I find a list of all such built-in variable names and meanings thanks in advance, George So I need to find a way to get visual studio 2003 for my other computers Without an MSDN subscritpion, buying two visual studio licenses for every installation point could get pretty expensive. But even buying 2003 from a reseller is very difficult ...Show All
.NET Development Bug in List<T> and MemberwiseClone ???
MemberwiseClone is supposed to create a shallow copy of the object, right But this little experiment shows that that is not the case when subclassing List<T>, I must be missing something here... Calling Test() will throw, adding "3" to the third list will also change the second list! public void Test() { StringList first = new StringList (); first.Add( "1" ); StringList second = first.Clone(); second.Add( "2" ); StringList third = first.Clone(); third.Add( "3" ); if (second.ToString() != third.ToString()) throw new Exception("Bug!"); } public class StringList : List < String > { public StringList Clone() ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My first game... Asteroid Defense.
In this game you are a ship protecting a planet from incoming asteroids. Controls: 360 controller: Left Joystick -- Move ship left and right. A -- Shoot Right or Left Trigger -- Change Weapon. Keyboard Left and Right Arrow Keys -- Move ship left and right. Up and Down Arrow Keys -- Change Weapon Space -- Shoot The weapon you are using is shown in the top left corner. The stronger the weapon you use, the less points you get for destroying an asteroid. Levels progress at timed intervals and more and more asteroids come down. You lose when one of them reaches the planet. Screenshot: http://www.rocketsoft.gm-school.uni.cc/uploads/ADScreen.JPG Game File: http://www.rocketsoft.gm-school.uni.cc/uploads/AsteroidDefense1.1.rar All in ...Show All
Windows Forms Multiple Monitor/Screen Setup
Hi, sorry this is a noob question, but i cannot figure out which screen the form is on and i cannot find any property such as Me.Screen....... (Also is there a predefined function to check if a region lies inside another region i ask this because in that case i can check if the drawing region of my form is inside the working region of a screen ) Thankyou very much Use the Region class/object. It has the Intersect method for combining to regions. You can determine which screen has most of the form by comparing the AREAS(h x w) of the resulting intersections of the form with each of the displays/monitors. ...Show All
Windows Live Developer Forums Showing multiple route on the same map
Hi, I am wondering if I can show multiple route on the same map, for example: from A to B, then from B to C, then from C to D,...from Y to Z. The reason that I am doing this is because sometime the route from A to Z that I want is different from Virtual Earth calculated. Thanks in advance! slackfishcrab That is also something we wish to do is have multiple routes on one map. They display all the flags but only one line is drawn. As a work around we have a menu allowing the user to choose which route they wish to display, eagerly watching for the waypoints! Cheers, Steve ...Show All
SQL Server count of null values in columns
Hi, I would like to ask how can I get count of null values in each column together I know I can use COUNT(*) - COUNT(<col>), but I need to explicitly name every column in the query.... is it possible without it here is the sample code (please note that this can be writen in a better way.): declare @tableName sysname set @tableName = 'TableWithFewColumns' -- you can create a proc with following code with above one as param declare @strSQL varchar ( 8000 ) if object_id ( 'tempdb..#columns' ) is not null drop table #columns create table #columns ( colName varchar ( 255 )) insert into #columns exec ( 'select name from syscolumns (no ...Show All
SQL Server Reporting Services procees Analysis Services cube with 100% CPU for too long time
Hi all, I use SQL Server 2005 Developer Edition version 9.00.2153 on Windows XP SP2. I build two cubes, process them and browse throw "Browse" tab in Analysis Services - time for loading was 5-10 seconds. When I build Reporting Services project with same cubes as data sources (on same computer), CPU was increased to 100% for more than 30 minutes (process msmdsrv.exe) ... and I interpurt it. Transfer project to Windows 2003 SP1, but same result. Do you have any idea what happens and how can I fix it Best regards, Siol En Hi, I am trying to join a cube with reporting services 2005 so i created a report template but could not figure how to join the cube and the report template made. I am hoping ...Show All
