Rania_TOPIT's Q&A profile
Software Development for Windows Vista How to detect if Process executed in Thread is waiting for input?
Hi there, I hope someone can help me with the following scenario: I have a Windows Forms application (C# 2.0) which is a GUI frontend for a DOS batch script. (This problem is not Windows Forms related, though, therefore I am posting it here). The script has two modes, an automatic mode and an interactive mode. I use a Process to run the script. The standard output of the Process is redirected and I have an asynchronous event handler that reads the output and adds it to a textbox in my GUI. The Process itself is executed within a Thread, so that the main application is not blocked. For the automatic script this works without any prob ...Show All
Visual Studio Tools for Office adding a button to the email message window in outlook using vsto
ive done a bit of searching on the net and this forum, but i can't find any definitive examples for doing this. i came across a few hacks, but someone must a simple and good example for how to do this thanks I would look at the ShortcutBar example for an example of how to add a button to a CommandBar. After that, you want to set an event on New Inspectors, much the same way the example sets them on Explorers, and add to those CommandBars. ...Show All
Visual Basic Print an image
Hi, I have created a picturebox and drawn some lines in it to build a grid : Dim bit As New Bitmap(570, 400) Dim g As Graphics = Graphics.FromImage(bit) Dim i As Integer g.DrawLine( New Pen(Color.Black, 2), 5, 5, 5, 395) g.DrawLine( New Pen(Color.Black, 2), 5, 395, 565, 395) For i = 385 To 5 Step -10 g.DrawLine( New Pen(Color.Gray), 5, i, 565, i) &nbs ...Show All
Windows Forms Implementing RadioButton Clone
I'm building a control that seeks to mimic the behavior of RadioButton. It's basically a RadioButton with a different visual representation. It also implements a few rules around when a particular item can be selected. I'll probably inherit from RadioButton to implement mycontrol, but thinking about it got me curious about how a RadioButton instance knows to u ...Show All
Visual C# (INTEGRATE) Convert a string to a Function
I am trying to integrate a math function 'func' which will be entered(typed) by the user, but I cannot figure out how to convert the string to a function which would be called by the integtal function. double integral(double xLeft, double xRight, double func(double), int nDivs) { int i; double area = 0.0; double deltaX = (xRight - xLeft)/nDivs; double midpointX; midpointX = xLeft + deltaX/2.0; for (i = 0; i < nDivs; i++) { area += func(midpointX) * deltaX; midpointX += deltaX; } return area; } Thanks for any help Hi. what you need is someth ...Show All
SQL Server Restore Analysis Backup to new DAtabase Name
I have backed up an AS database. Now I want to restore it to a new name so I have two copies to play with. How do I do this Thanks, Chris How do you get around the problem of credentials of multiple domains. Dev machine on one domain, server on anther (via VPN at client). I know I could problably copy all the files to the server and change the configs. Anybody researched this Thanks ...Show All
Visual Basic VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler.
VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler. I have a fairly large project that I migrated from VB6 to VS2005. This is the RTM version of VS2005. There are many issues that I need to fix up in the code, but every time I change one line of code, my system runs 100% CPU for 30 seconds. This is not even close to usable. You might think I have a slow machine, but I am running this in a P4 3.5 GHZ with 1GB of RAM, and a SATA 150 hard drive. I will be forced to abandon use of VS 2005 for this project unless I can find a work around for this issue. Please help! ...Show All
.NET Development New install of VS
I got a new machine and installed Vis Studio 2003. It worked fine on my ole one. Now, whenever I create a web project it waits and waits and then returns the error - Cannot open or create this application because your browser is configured to use a proxy server for the local server. Anyone know what this means - how I change it Thanks, Dave This is just a guess-- Check your LAN settings in Internet Options (in Internet Explorer: Tools -> Internet Options -> Connections (tab) -> LAN Settings). In the Proxy Server section, select (check) the "Bypass proxy server for local addresses" opti ...Show All
Software Development for Windows Vista Going-Live and Persistence
Hello I am happy to see that you are providing a going live license with beta 2, but there is one thing that I would like someone from the product team to comment on before I actually dare using it: What's your plan for upgrading persistent information from beta 2 production environments to the release version Are the DB schemas of the persistence and tracking services already fixed How about if I provide my own persistence service, will there likely be conflicts in the serialized process data Are you planning to provide upgrade support (tools/advisories) in case any persistent format gets broken Are you committing to it ...Show All
Visual C# Windows Service - multiple instances
I want to run multiple instances of the same service on one machine. So I wrote a service installer that looks for three parameters which can be passed in via the installutil.exe. So far so good, I can install multiple instances, but of course it makes no sense that they all do the same and use the same configuration. So I thought I could use the service name (property ServiceName) in the service itself to e.g. look for a configuration section in the machine.config or under a key in the registry, but if I do not set this name inside the service it is unset. Does anybody has an idea how I can get the service name from inside the servi ...Show All
Visual Studio Uninstall VS 2005, SQL 2000 broken
Hi; I thought I got the VS 2005 Beta 2 uninstall correct - maybe not. After the VS 2005 uninstall - When I try and run SQL 2000 I get snap-in error (snap-in failed to initialize). I uninstall and when in the re-install of SQL 2000 the setup not really hangs but kind of ignores any input in the Authenication Mode dialog. To proceed through this I can only cancel this panel of the setup wizard. The setup appears delighted at this and goes on its merry way. (I would like to set the SQL Authenication password here - but I fear the previous SQL 2005 Express install may have something to do with this). The VS 2005 Beta was a clean install th ...Show All
.NET Development How to implement safehandle for an Intptr variable
We are working on customization of Word 2003 using VSTO 2005. To handle keyboard events we implemented keyhooks. In keyhooks class we used a variable named keyHook of type Intptr. When we run code analysis tool the following error is coming. "CA2006 : Microsoft.Reliability : Review usage of 'localHook' (a System.IntPtr instance) to determine whether it should be replaced with a SafeHandle or CriticalHandle" Tried with samples given by some links, but they are not really helping. Any pointers would be greatly appreciated. Basically i need to implement handle for the localhook variable. What th ...Show All
Visual C++ Lib Size difference
Hi, I have created a "Static Lib" using Visual Studio .NET 2003, as "Use of in a shared DLL" . Each and every time when i try to build this lib. i got different sizes. Plz find the following configuration settings that i have used during Lib creation: Configuration : DEBUG Runtime Library : Multi Threaded Debug DLL Precompiled Header: Use Precompiled Header Building the Lib in Machine A: 4,986,628 bytes Building the Lib in Machine B: 4,986,733 bytes Building the Lib in Machine C: 4,986,973 bytes Operating system : XP Pro Could you please tell me why i am getting this size differences If you have any articles/links ...Show All
SQL Server How can I show kpi's to final user?
Hi, I try to show kpi's to final user but I don't know to do this, which tool is the best for this Can I use Excel You can use Excel 2007 (Office 2007 Beta 2 was anoounced earlier this week), which has built-in support for AS 2005 KPI's: http://blogs.msdn.com/excel/archive/2006/01/10/511487.aspx >> In Excel 12, KPIs are listed in the field list in a special KPIs folder. Here is an example of a KPI for Profit Margin. (Click to enlarge) Each KPI component can be added to the PivotTable Values area by checking the checkbox just like any other field. Let’s take a look at an example, specifically, ...Show All
Software Development for Windows Vista Activity Property values not available at runtime
I am currently experimenting with a custom activity. We have a number of business rule objects which implement various, relatively complex data validation rules. The custom activity allows these business rule objects to be assigned to the activity and for parameters to be assigned as part of a workflow that links together a number of these business rule classes into a sequential [potentially brancing] workflow. So I basically have: BRActivity RuleClassReference ClassID ClassName ParameterCollection Parameter1 Name Value Parameter2 Name Value I've integrated these activities into an end-user design ...Show All
