him19010's Q&A profile
Visual Studio 2008 (Pre-release) Exception in MeasureCore
I'm simply trying to set the Button.Content property to the value of a string, like myimage.jpg. The Measure method on the FrameworkElement seems to be failing with: "Overflow or underflow in the arithmetic operation." Is this a bug or what's the issue here See exception stack below. Thanks! "at System.Double.Equals(Object obj) at System.Object.Equals(Object objA, Object objB) at System.Windows.DependencyObject.Equals(DependencyProperty dp, Object value1, Object value2) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEn ...Show All
Visual C# Simple text to html parser
Im trying to build a small application where you can copy text from word into a richtextbox it will then look for text written in bold, underline and if there are any bullets and simply put the text out in another box with the html tags. The way the program works it that is scan each word in each line and see if it's normal, bold, underline or if there is a bullet infront of the line. Right now it works with normal text and bold. How ever I cannot get it to detect when there is a bullet. some of the code: for ( int i = 0; i < lines.Length; i++) //loop for each line in the text { string [] words = lines .Split(delimiterChars); richTextBox2.AppendText( "<p>" ); for ( int j = 0; j ...Show All
Windows Forms How to create a unique visual interface for my application.
Hi. Merry Christmas all! I am in a quandry here. I am creating an application and am trying to figure out how to enhance it visually; i.e.....change the look of the form, buttons, overall outlook of the program. I know how to change background colors and such but I need to have the ability to manipulate and change the look of my visual studio program at will. Right now mine looks like the normal gui interface Visual Studio .Net comes with when designing a program. Take McAfee Security Center.....they have changed the shape of the form and added colors and cool graphs......get it Someone please help. I have been asking everyone I can from store employees about applications that can do this to my ex-VS instructor who "doesn't ...Show All
Software Development for Windows Vista Problem with (SDK Samples)DynamicUpdateFromWorkflowSample
Hi everyone, i study the SDK Samples "DynamicUpdateFromWorkflowSample" but the dynamic update workflow not work correctly. the code. yes i configure sqlpersistenceservice but not work correctly the output: just Workflow 1: PO Request Amount of $750.00 Background check delay Workflow is in idle state Ending workflow... Workflow 2: PO Request Amount of $1,200.00 Background check delay Workflow is in idle state Ending workflow... in my pc the sqlpersistenceservice db have CompletedScope and InstanceState Tables and UnlockInstanceState RetrieveNonblockingInstanceStateIds RetrieveInstanceState RetrieveExpiredTimerIds RetrieveCompletedScope RetrieveANonblockingInstanceStateId RetrieveAllInstanceDescriptions I ...Show All
Windows Forms Creating an array of objects
Alright, I feel like a doof for posting this, but I figure somebody here will be able to give me a quick response. I used to use Visual Basic 6.0 a few years back, and I remember you could create any object on your form, lets say for instance a Text Box. You could create two of those, give them the same name, the program would automatically create an array for you of that object, making it easy to create new text boxes @ run-time for your user if necessary. Or, for instance, I could add two labels to the form, and name them both Label, and so the first one I added would be reference-able by Label(0) (or maybe Label[0]) from the code, and the second and Label(1). The point being that I could create new labels and access them more easily ...Show All
SQL Server microsoft visual studio cannot shut down because a modal dialog is active
if i get this message one more time I am going to put my fist through my monitor I am also getting this error on occassion. I am developing a report with several subreports that use a string parameter (@parameter | Fields!fieldname). MS VS 2005 8.0.50727.42 (RTM.050727-4200) MS .NET FRAMEWORK 2.0.50727 MS Windows XP Professional Version 2003 SP2 MS SQL Server Developer Edition 9.00.1399.06 ...Show All
Visual Studio 2008 (Pre-release) ScrollViewer - trigger`s setters for HorizontalScrollBarVisibility and VerticalScrollBarVisibility do not work?
I have the style below, but the trigger`s setters for HorizontalScrollBarVisibility and VerticalScrollBarVisibility do not work (Padding works well). < Style x:Key = " ZoomWindowStyle " TargetType = " {x:Type Window} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type NavigationWindow} " > < DockPanel > < StackPanel HorizontalAlignment = " Right " Orientation = " Horizontal " DockPanel.Dock = " Top " > < TextBlock > Zoom </ TextBlock > < Slider Margin = " 5 " x:Name = " _zoom " Width = " 100 " Minimum = " 0.5 " Maximum = " 3 " Value = " 1 " ToolTip = " {Binding Value, RelativeSour ...Show All
SQL Server Server: the operation has been cancelled. a memory bug?
When I highlight a few partitions and start processing, the process occasionally stops with a message that operation has been canceled, like this: Response 3 Server: the operation has been cancelled. Response 4 Server: the operation has been cancelled. Response 5 Server: the operation has been cancelled. ..etc... (no further error message details are provided) SQL profiler shows that batch was completed (but rowcount shown in process progress log is too small). Analysis Services profiler shows no messages at that time at all. It just shows messages when it started, and when I restarted the processing. The Analysis trace appears to be stopped when processing stops with " Server: the operation has been cancelled.&quo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to take advantage of DirectX debug mode?
The DirectX SDK use to give an option of installing in debug/release mode, but the latest SDK doesn't suprisingly. In VC++ 2005, I have the debug option on. I'm curious how I can tell what the SDK installed as Also, I remember there was an icon in the Control Panel that aloued me to set Direct3D as debug mode. The icon isn't there anymore. Does DirectX now assume I am debugging when the debug option is set in Visual Studio Try this: Start | Programs | Microsoft DirectX SDK | DirectX Utilities | DirectX Control Panel You should see options for selecting Retail/Debug versions there. ...Show All
Visual Basic use FileSystemWatcher to look for 2 tyeps of files?
Riiiiiihgt! I've been on this a week, and I'm getting a bit sick. Can you set a FileSystemWatcher to look for "*.csv" & "*.zip" or do I need 2 FSWs to achieve this Please say no, or I'm going to convert to Delphi and start hating MS Use two, write your own, move to delphi: your choice. Get results, curse and complain for 2 months, complain about all the things Delphi doesn't do...again, your choice. ...Show All
Visual Studio 2008 (Pre-release) Can you create and view glassy apps on XP?
Can you build applications for XP that use the new glassy windows Of course the end user would have to have the runtimes installed. But how can I create a window with that style Thanks Lee I actually was able to figure it out. But it would be great if someone could take a look to see if there is a better way to do it. http://thewpfblog.com/ p=27 Lee ...Show All
Windows Forms Using function key to focus on other component
Hi, I have a problem here is that I have a grid which I am keying in value. What I need to do is that how can i use the function key any will do be it F1 to F12 to focus on some other combo box. Hi, Is your project a WinForms or a WebForms application Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .x file
I posted another question about converting 3d pixles to a .x file, but no one seemed to know the anwser, so I have the go the down and dirty route: Can some one please explain to me, or point me to a page that explains how a .x file works I want know how a .x file works so I can make the conversion software my self, but just incase some knows how already: I want to turn a bunch of pixles of this or simular format: r, g, b, x, y, z into a .x file, I know direct x use triangles, not pixles, but i guess you can see what I'm trying to do X File Format Reference ...Show All
Visual Studio Express Editions Validation
How do i set the textbox feilds enter must be only integer and another alpha onli any code IsNumeric should be used with caution. It will return true if the input *can* be evaluated to a valid numeric value. 1E2 *can* be evaluated to a valid numeric but is unlikely to be considered valid input... ...Show All
Internet Explorer Development IE 7 opening to Run Once page with error on it.
I downloaded updates last week. I have been using IE7 for a while with no problem. I dwnloaded the updates. Now when I open my browser the page tries to go to http://runonce.msn.com/runonce2.aspx . There is an error reported for this page and it will not open up I get a blue screen. How do I eliminate this I have my home page set in the tools section but when opening it won't go to my home page until I hit the home button on the tool bar. I tried the solution I typed in gpedit.msc and the run box and windows error appeared that said that windows could not fine the file. I searched for the file and it was not located either. ...Show All
