White Hawk's Q&A profile
Visual Studio 2008 (Pre-release) WPF Beginner Question
our user base currently uses an ASP.NET web application. they are really happy with the 'look and feel' of the web pages. we want to move our users over to a .NET smart client application. however, my main concern is that our users will view the user interface as taking a step back from the existing web page layout. is it possible to build a .NET 3.0 application which has a friendly, scrollable user interface which looks closely akin to our existing web page layout, so that the users will not be put off or is this not recommended practice is this not standard practice where can i look at some demonstrations showing some recommended practice user interfaces for .NET 3.0 apps thanks These links ...Show All
SQL Server Running job error in schedule
Dear All, I set the scheduler to run a stored procedure and it casyes error. Failed to run the stored procedure but when running it manually from the query analyser it works just fine. This is the error. SQL Server Scheduled Job “Job ABC” (0xE708F39963C95A4390BC3C99E6A029AC) – Status: Failed – Invoked on 2006-12-10 03:00:00 – Message: The job failed. The job was invoked by Schedule 7. Could anyone please advise what should be the problem Regards, LG Refer to the KBAs:http://support.microsoft.com/kb/269074 - to schedule a dTS job and resolve the issues and http://support.microsoft.com/kb/290077 fyi. ...Show All
Visual Studio Windows installer problems
I ran into some virus problems a few days ago and thought that I had fixed them. I then received access to install Visual Studio 2005 and Windows XP PRO embed SP2. I checked for comapatibility of XP PRO with my computer and everything checked out fine. I was too hasty in the install of XP PRO and forgot to make a system restore point before the install. After the install everything seemed to work just fine but then windows installer popped up. The windows installer box just says "initializing installation" and does nothing else. If i click cancel on the box, it says "canceling installation" but does not go away. Eventually it will give a message that says "retry or cancel" and I hit cancel and then ...Show All
Visual C# Region.IsVisible - relative or absolute coordinates?
When using the IsVisible method for a region with a PointF as argument, i.e. PointF p = new PointF(...,...); if (myControl.Region.IsVisible(p)) .... to test, if a given point is within the region, shall the coordinates for p be relative to the control or absolute for the form with the control Testing seems to indicate, that it must be relative, but since it does not always work as expected, I got doubts. The Help description for the IsVisible method says nothing about this. Both Region and PointF must be in the same coordinate system. It depends on your code, how you create them. PointF and Region classes don't know anything about control or screen coordinates, they just keep supplied ...Show All
Software Development for Windows Vista HKCU and HKEY_USERS issue
Normally, HKCU is just an alias of HKEY_USERS key under Win2k/XP/2003. Information in HKCU is a copy of that in HKEY_USERS\username, right Our program works OK under Win2k/XP/2003. It will register some information when program is installed. After installation, we can find same data in HKCU and HKEY_USERS\username. However, problem occurs under Windows Vista. No data is set in HKCU. After checking, we find the cause as below: For current user, username should be S-1-5-21-.... But we found data is set in HKEY_USERS\S-1-5-18. And HKEY_USERS\.DEFAULT will reflect information set in this sub-key. It seems RegOpenKeyEx() will get sub-key of S-1-5-18 first, then set data for this sub-key. So I want figure out which user S-1-5-18 stands ...Show All
Internet Explorer Development browser client that maintains session state (posts, gets, cookies)?
Hello, I have been researching this on the web for about 2 hours now and I have not come up with anything. I'm hoping that someone can point me in the right direction or provide sample code. I would like to write an application that will automate logins to websites. It will require a post, followed by parsing the values returned (cookie, querystring) followed by a second post based on the values returned.. (I would like to maintain state) ...Show All
Microsoft ISV Community Center Forums [Excel] How to convert Excel to jpg, gif image?
How to convert MS Excel to jpg or gif and paste/insert to MS Word thank you very much I had no idea we could copy a range and paste as a graphic... I do the chart gif thing all the time for userforms (load the .GIF in to an image frame or the background of multipage, etc.). Copying a range as graphic and saving is as GIF and then using the image would reduce so, so much code writing. I see many great uses for this!!! So --- once we copy the range, can we: 1) export as a graphic file and save to the hard drive (like we can with GIF export for the charts) 2) control the file fomat (aka - .GIF, .JPEG, etc) I did follow the link the gentleman's website and all his code sho ...Show All
Windows Search Technologies WDS 2.6 does not index mailbox and PST while Office Group Policy is used
We have a MS Office 2003 Group Policy (GPO) that turns on many of the Outlook controls. (This is not the GP for Desktop Search...but for Outlook, Word, etc.). Windows Desktop Search 2.6.5000.5401 will not index emails in the Exchange mailbox and the Outlook PST files until I "turn off" the Office GPO. Can you help me determine which particular policy/rule within that Office GPO is affecting WDS And what might we do so that we can keep our Outlook/Office GPO as it is but have WDS be "accepted" and get past the GPO rules Thanks. Abe, Sorry - we are not ignoring you. We're just having difficulty reproducing this problem and getting the solution completely pinned ...Show All
Visual Studio 2008 (Pre-release) Mouse Position Relative to Desktop 0 0
How to get the mouse position relative to desktop I can get the mouse position relative to the window bounds or to a control but how can I get the mose position relative to the desktop 0,0 point SystemParametes has lot of properties that give some info which might be useful I dont think this is recomended way, but someone worked around this in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=567074&SiteID=1 ...Show All
Visual Studio Express Editions ToolboxBitmap problem
Does anyone know why the following does not leave me with a Custom ToolboxBitmap. I have included a 16 x 16 Bitmap called C_Button as an Embedded Resource in the Library. I have a set of controls in the library all with their own Custom bitmaps, but I just get the default Gear bitmap. Is this a restriction because it is an Express Version All comments gratefully received. namespace CcNet2005 { [ToolboxBitmap(typeof(C_Button))] public partial class C_Button : System.Windows.Forms.Button { // Some Code } } Hi StoneTheCrows_ , i'm having exactly the same problem. I'm using VS2005PRO and I can't get a custom icon in the toolbox... I'm searching all over the internet, but can't find a soluti ...Show All
Visual Basic Cannot Create ActiveX Component -- in a service
Hello, I'm having an issue concering the CreateObject method and a service I've been developing. I've written a DLL that executes the statement: CreateObject("CognosImpromptu.Application") When I reference this DLL through a regular app this statement executes easily and the rest of the function completes. However when I reference this DLL from a service running under a domain account I get the error "Cannot create ActiveX component." The domain account has been given Full Controll permissions over the executable (ImpAdmin.exe). What could be the problem here Thank you in advance for any help. What you can do is use RegMon to verify that you are able to get to the registry information ...Show All
Software Development for Windows Vista Determining user access level
Hi I am writing a function which needs to check if the currently logged in user has admin access, in C++, but I need to do it without using .NET functions. The only things I've managed to find after some extensive searching all seem to use .NET. Does anyone know how I can determine if the current user is an admin or not without using .NET functions, or has a link to any relevant information Thanks ...Show All
SQL Server Can I use the foreach loop to obtain the sub folder names within a folder?
I have a set of folders with the following structure: MainFolder 1999 SpreadsheetA.xls SpreadsheetB.xls SpreadsheetC.xls 2000 SpreadsheetA.xls SpreadsheetB.xls SpreadsheetC.xls etc. Is there a way that I can use the foreach loop container to loop the sub folders My plan was to get the folder name and path into a variable, use this to build the connection string for each file in this folder, carry out the upload for that folder, then move onto the next folder and do the same thing, but I cannot see a way to do this. Thanks, Sam If the list of folders is known and finite then you can just type them into the ForEac ...Show All
Visual Studio 2008 (Pre-release) XamlReader.Load Error
Can anyone tell me why I am getting this error XML from file... <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <TextBlock FontSize="22" TextAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Top" Width="Auto" Height="50" Name="TextBlock" Text="Request Search" TextWrapping="Wrap" Foreground="#FFFFFFFF" FontFamily="Verdana" FontWeight="Bold"/> <Grid Margin="35,35,35,15" VerticalAlignment="Top"> <Grid.ColumnDefinitions> ...Show All
SQL Server Divide by zero error only with top
In the following expression, the query executes with no errors (there are sometimes 0's and nulls in IRON and ENERGY): SELECT * FROM gff2vg WHERE ( gff2vg . ENERGY > 0 and gff2vg . IRON > 0 ) order by IRON / ENERGY desc but when TOP is added there is a divide by zero error. Is there a way to avoid this SELECT TOP(64) * FROM gff2vg WHERE ( gff2vg . ENERGY > 0 and gff2vg . IRON > 0 ) order by IRON / ENERGY desc Thanks. This works but perhaps there is something more elegant: select top ( 24 ) a .*, b . IRON / b . ENERGY as IRON2ENERGY FROM gff2vg a ,( SELECT * FROM gff2vg WHERE ( gff2vg . ENERG ...Show All
