Sven_C's Q&A profile
Windows Forms How to trap the mouse events (move, hover, etc) for the designerhost?
I've implemented a custom form designer based on MSKB 04 sample. I'd like to perform some actions when cursor moves over the designer. How can I trap these mouse events Or should I take a different approach for this kind of task Thanks, Alan Martin, I din't get a chance to try out the global behavior yet. Thereis a bit learning curve I need to go through on it... Behavior seems to play a big role in design time of 2.0. Thank you again, Martin. Alan ...Show All
Software Development for Windows Vista Create new condition rule from the designer
Hello, I am hosting the WF designer (beta 2) as shown in the WorkflowDesignerControl sample. The only difference is that I don't use the property grid for setting activity properties. When I select the IfElseBranchActivity and I try to run the RunConditionDialog for creating the condition rule, I do as following: public RuleExpressionCondition NewCondition(Activity activity, string coditionName) { RuleExpressionCondition condition = new RuleExpressionCondition(coditionName); RuleConditionDialog dlg = new RuleConditionDialog(activity, condition.Expression); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { c ...Show All
SQL Server Inserting multiple nodes as type xml in SQL
Hello, I'm working with SQLXML for the first time and need help! I am working with a customer who passes a CSV from an old accounting system, from which I use XSL to transpose it to a more logical xml document, each row of the CSV matches an item node. <data> <purchase> ... <order> <OrderID>1</OrderID> <item>   ...Show All
.NET Development system.objectdisposedexception
Hi, I have a multithreaded application that crashes with the following msg in event log ... EventType clr20r3, P1 smartserver2005.exe, P2 1.0.0.0, P3 43f6cc52, P4 system, P5 2.0.0.0, P6 4333ae87, P7 3ad8, P8 a5, P9 system.objectdisposedexception, P10 NIL. I have provided try catch block in all routines in the code & still the appl crashes with the above msg. Note that crash is not consistent for a particular sequence of events. Any suggestions -S.Malathi Hi! It appears that one of your threads Dispose() some object and another reference this object later. Disposing doesn't mean obj ...Show All
Visual C# my application talk to another app like Command prompt
Hy there, is there a way to talk to another application like Command prompt greetzzz, Tim You mean pass parameters as you do with the command prompt Yes, if the application supports it. If you mean while an app is running, yes, if the app supports it, or if you can figure it out by sending messages to the app window. I'm not sure how helpful that is, perhaps you need to be more specific ...Show All
Visual Studio 2008 (Pre-release) OuterGlowBitmapEffect on Ellipse
I put an OuterGlow an Ellipse and got the problem that the edges are not round :( It seems that WPF uses the Ellipse's Width and Height as Borders for the BitmapEffect ... My Code: <Page xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 " xmlns:x=" http://schemas.microsoft.com/winfx/xaml/2005 "> <Page.Resources> <Style x:Key="Online" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Ty ...Show All
Visual Basic getting HTML from a website
Hi guys, I'm making a project that requires getting the HTML source from a website. I'm not at all sure about how to go about doing this. Any help would be greatly appreciated! Thank you so much in advance! -Robert Robert.... There are women here too. The other two identical questions you asked are in VBE and you marked your question as answered here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=414318&SiteID=1 ...Show All
Visual Studio Team System Is it possible to install the Trial version and they "upgrade" it to a "real" version later?
I am currently running the RC version of TFS. Is it possible for me to install the Trial RTM version and later on when I have bought a real license upgrade it a "real" version ...Show All
Visual Studio Express Editions No output
Hello Everybody, I just started learning VC++ and openGL.I installed VC++ express edition and sdk plaform. Copied Opengl and glut files resp. I got program compiled but when i try to execute it ,it just opens a blank notepad type file. no output. and I get this messages.. Hill1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded. 'Hill1.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded. 'Hill1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded. 'Hill1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded. 'Hill1.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', ...Show All
.NET Development Problem accessing text file within a resource
I'm using VS 2005 Beta 2. I added a text file ("DefaultInfo") to the Resources.resx file under the "My Project" node (in Solution Explorer). I'm trying to retrieve the text file from a class, but I've been unable to get it to work. I tried: Dim asm As [Assembly] = [Assembly].GetExecutingAssembly() Dim s As IO.StreamReader = Nothing s = New IO.StreamReader(asm.GetManifestResourceStream("DefaultInfo")) but the code isn't finding the resource. I also tried the name "DefaultInfo.txt", and also qualifying the name (such as "MyProject.Resources.DefaultInfo" and "WindowsApplic ...Show All
Visual C# Localization tool
Hi, I am looking for a tool which helps to do a localization of an application. My idea is that it is an interactive tool which is looking for strings in source code and makes them localized. When such tool is started it offers each string found in source and asks if the string is translatable. If yes, some identifier is supplied by user to name this string in resources and new record is created in resources. The string in source code is replaced by method returning the string from resources. Such tool would decrease time needed to localize bigger application with all strings hardcoded in compare of doing all this work manually without an ...Show All
Windows Forms Help:Crystal reports or not
Hi, I'm developing a Winform .net app. I have a dilema on using .net reports or not. I would like expert advices and advantages/disadvantages on using crystal reports, another third party solution like Active Reports or Only the .net framework features. Thank you in advance ...Show All
Windows Forms Module Variables
Hello, I have created a module in my project where i declare some public variables which i use. I used this way so i can reference them globally from other forms. This is my module: Module Settings Public LowThreshold As Integer = 10 Public VAT As Double = 15 End Module Is there any way i can alter the values of this variables& ...Show All
Visual FoxPro connection packet size cannot be set
Good day to all, I am using VFP as my UI and using SQL2000 as my back-end database, I don't have any problem regarding my connection to my database through ODBC using cursoradapter. But when I try experimenting this different approach of accessing the data of my SQLDatabase i got a packet size problem. What is the correct SQL packet size i must set in my VFP connection Below is my code in VFP that got and error "the connection packet size cannot be set" lnHandle = SQLSTRINGCONNECT ([dsn=My SQL server connection;]) IF lnHandle < 1 MESSAGEBOX ( "Unable to connect to SQL Server, check the connection string" ...Show All
SQL Server For each container - performance problem?
I have a for each container configured to iterate over files in a directory (around 2600 files). The for each container contains only one data flow task. The data flow task is very simple. Only 3 steps. Read from file using flat file source (ragged right), format column values (eg. converting YYYYMMDD into yyyy/mm/dd and TRIM spaces - 13 such conversions) using derived column transform and inserting them into a table (23 columns - mostly nvarchar, few numerics and few dates) using Ole Db Destination. The table has one non-unique clustered index on nvarchar(18) column. Each of the 2600 file has at an average 750000 rows. It seems to me ...Show All
