Doug 123's Q&A profile
Software Development for Windows Vista set the targetstate the same state in set state activity
Hi, can i set the targetstate to the same state in setstate activity is it correct way of calling the same state multiple times by different users from asp.net page where workflow instance ll be same for the single request not on user basis. any help would be highly appreciated. regards. ...Show All
Visual Basic data grid view header text font size,back color problem
data grid view header text font size,back color problem i have taken a grid and to that grid i am binding a table from the sql server database 2005 the tabel contains 25 columns my requirement is to each column header the header text font size should be different for example the column1 should have font size of 10 for example the column should have font size of 11 for example the column1 should have font size of 12 so ---- on and in the same way for column 1 header backcolor should be different for all the columns for example the column1 should have back color of green for example the column1 should have back color of red for example the column1 should have back color of yello so----on i am us ...Show All
Visual C++ DLL with C++ - Design question
Hi, I come up into a question about which method would be better to write my DLL. 1. Write it purely in C 2. Wirte the class in C++, then use C function wrapper 3. Write everything in C++, and export the whole class Can anyone kindly point out the pros and cons of the above alternatives, and if there're other designs, please kindly let me know too. Thanks! Creating class instance inside every exported function is pretty simple. But this doesn't allow to persist class instance between API calls. If this is OK for you, do this. If you need persistence, take a look at Windows API and handles concept. For example, GetDC, ReleaseDC and DrawText. GetDC creates some object and returns handle to it. Drawing functions li ...Show All
Software Development for Windows Vista TEST CASE 30: Problems with verification on Russian Windows Vista
Our product has Russian language only, and we test it on Russian localized version of Windows Vista. The behavior during TEST CASE 30. Verify the application is Restart Manager Aware (Req:3.1) is not correct. Let me explain. Our product is not a service and is not designed to restart after shutdown, so to test I used the command: rmtool.exe –p dwPID –S The product does close. When I tested on English Windows Vista, I did get only the Information message (in fact there were three Information messages: Starting session, Shutting down the application, Ending session). But when I tested the behavior on Russian Windows Vista (both 32- and 64-bit versions) I did get the additional 4th message of Warning type, saying that ...Show All
Visual Basic Hiding Scroll Bar on AxWebBrowser
Hi Everybody! In my search I have found the following example in C++ code..... but am unable to convert this into Visual Basic .net code. Can anybody help Thanks. The problem with this approach is that it requires you to change the HTML code of the page displayed — something that is not always feasible. A better way to remove the vertical scrollbar is by using one of the IDocHostUIHandler callbacks. When MsHtml interacts with the user interface, it frequently makes calls to these callback methods to see how to proceed. By implementing the method GetHostInfo() , you can disable the vertical scroll bar. The nice thing about this programmatic customization is that it doesn’t require you to make any changes to the content o ...Show All
Visual C# Using timer to determing elapsed time
I want to start a timer right when my program is launched and store the value of the time as a static variable so that I can call the timer function and get the time that the program has been running. My goal is to be able to determine the time from when the program was launched and pass it into a function I have created as the elapsed time. I've seen examples of timers but none of them show me how to call that timer function and take the elapsed time and pass it as an argument. Please help! Thanks in advance. well you can set the enabled property of the timer to true in designer mode, this may start the timer. Alternatively on your form_load event, call the start() method of the timer, but this will run w ...Show All
Windows Forms Which forum for: reducing the size of an icon.
When I put icons (image buttons) into a grid view, they are larger than the font and so the grid view is excessively spaced out. I can't find out how to reduce the size of the icon, to allow the line to be as small as it would be if the command button were just text. Robert Barnes wrote: What software would you suggest for reducing the size of the icon This would be off topic here. :-) And have you tried to set the right ImageLayout property to see whether it works ...Show All
Visual C++ operator overloading
ok, so im trying to cout a string, but i havent suceeded, this is what im trying to do: #include "stdafx.h" #include <string.h> #include <string> #include<iostream> #include<iostream.h> using std::string; class Person { public: string m_name; int age; }; class Student : public Person { public: int m_grade; }; class Worker :public Person { public: int m_wage; }; int main() { Worker MyWorker; cout << MyWorker.m_name << "\n."; //error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion) ...Show All
.NET Development Behavior of LinkedList.Find method?
I want to use a LinkedList<MyClass> collection, where MyClass is a non-trivial class (multiple properties, etc.). I need the LinkedList.Find method to return the correct node based on how MyClass determines if an object matches the item being searched for. I can't see anything in the docs on what LinkedList.Find uses to determine equality between the item being searched for and the items in the list. Is it as simple as overriding MyClass.Equals() It seems like there should be a way to specify a delegate to the Find method which handles checking for equality for that particular invocation of the Find method (as a number of the other generic classes support). Thanks, Donnie AFAIK the only parameter to ...Show All
Visual Studio Can you pass a variable from a Windows Form to a CR Selection Formula?
Hi all, I would like to select a record in CR report by passing a variable to it from a Windows Form so that when I select a record on my Win Fom only the corresponding record is displayed in my report. Or, maybe you have a different way to accomplish the same. I am using VS Pro 2005 in VB language with Crystal Reports for VS .NET. Thanks in advance! Yes you can! Basically, in your report you need to define a "parameter" that will hold the value you want to pass and use that parameter in the filter formula of the report; from your VB program you'll then pass the needed value at runtime. Let's see it in an example (suppose that you need to filter your reco ...Show All
Visual Studio 2008 (Pre-release) Streaming wmv file using rstp:// protocol fails with MediaElement
Hi, I'm trying to embed a MediaElement with the source from a bigpondsport video. The url for the video is 'rtsp://wm9.streaming.telstra.com/wh_cricket0/OnDemand/NWSTest02'. The element doesn't load. The code I'm using is: <MediaElement Source="rtsp://wm9.streaming.telstra.com/wh_cricket0/OnDemand/NWSTest0205V.wmv" Width="482" Height="341" /> If I pull the content from somewhere else, such as: <MediaElement Source=" http://channel9.msdn.com/playground/wpfe/sleekvideoplayer/assets/fabrikam.wmv " Width="482" Height="341" /> It works fine. Any ideas Thanks That's strange because i just tested it in ...Show All
Visual Studio Team System Unanswered questions about a CTP 6 bug
There is a bug in CTP6(fixed in CTP7 apparently) which means schema comparison does not update target files in a datadude project that are write-protected (e.g. they are under TFS source-control). I talked about this in these 2 threads: Bug (I think) on writing updates from Schema Compare Recovering from a CTP6 bug There are some unanswered questions on these threads that I'd appreciate answering please. What exactly is the fix Does it auto check-out the items for you or does it fail the whole process Either is more acceptable than the current behaviour. How can I recover from this situation in CTP6 Where is the information about what is in the design DB persisted And why is the design DB not recreated f ...Show All
Visual C# Playsound loop not working
I need to play a .wav file over and over again. I am using the following code. [DllImport("winmm.dll")] private static extern bool PlaySound( string lpszName, int hModule, int dwFlags ); public int SND_ASYNC = 0x0001; public int SND_LOOP = 0x0008; PlaySound( wavfile, 0, (SND_ASYNC | SND_LOOP)); But it plays only once and stop. Any idea what's wrong Thanks in advance. ...Show All
Windows Live Developer Forums Hide the scale marker?
Is there a way to hide the scale marker in the lower right hand corner of the map JonnyAJAX wrote: Is there a way to hide the scale marker in the lower right hand corner of the map Sure, add this code in the start of your <head> tag <STYLE type="text/css"> div .ScaleBar {Visibility: hidden;} div .ScaleBarLabel {Visibility: hidden;} </STYLE> Hope that helps ...Show All
Visual Studio Team System How to Use FxCop1.35 in VS2003?
Hi everyone: I create a fxcop rules which can used by vs2005,but it is can not used by vs2003 .How to Use FxCop1.35 in VS2003 thanks for your help! --Tiny How do you mean "Use fxcop 1.35 in 2003 like in 2005" I've used FxCop to analyze builds from both versions of VS. The one problem I have had (and I guess this is what you mean) is that when I click on the link to the file where the problem it detected is, and in 2003 it gives me the error of not being able to initialize VS. Interestingly, on 2005, it will open the file, but it opens it in another instance of VS (which is annoying). Your best bet it to just look at the link to see what the file name is and the line number, them manuall ...Show All
