ZopoStyle's Q&A profile
Visual Studio Express Editions Multithreading and and "encroachments"
Hi, I'm developing on a new vb.net-application with the Visual Basic Express Edition . Now I have to use a backgroundworker for a longer process. But I'd like to keep the user up-to-date, what the application is currently doing. So the Backgroundworker has to change some labels in the main Form. Now the Question is: How to get the backgroundworker changing the label in another thread I know, that I have to use invoke and delegate , but I don't know, how. Can someone explain this to me Thanks, Greetings from Germany and Regards, Fabian micronax Because the backgroundworker uses another thread than the GUI (General User Interface) you are not allowed to write directly to the label. Instead you must make a display routine - D ...Show All
Windows Forms how to create a debug version install
hi, so, i managed to figure out how to get a C# project to reference either a debug or release assembly. i thought it might be the same for the installer, no go. i really would like to be able to package up the debug version of the built application when the configuration is set to debug, and the release versions when the config is set to release. can this be done if so how /* what i did for the assemblies was to change the following <HintPath>..\Docking\bin\Release\Docking.dll</HintPath> to <HintPath>..\Docking\bin\$(Configuration)\Docking.dll</HintPath> this is located in the .csproj file and it had to be done manually. */ thanks, scott When adding a Project Output Group to a set ...Show All
SQL Server Where to find detailed error report when setting up mirroring fails
I had a problem with mirroring that I only was able to resolve when I attempted to replicate instead. Replication gave me an error message that expained the problem; mirroring simply failed. Is there any place where mirroring logs the details of what it is doing & why it is failing BTW, the problem was that the server name was changed after SQL was installed. Although i knew this, the forums indicated taht SQL 2005 automatically picks up the new name after it is restarted. This apparently is not true... Thanks Dave S You can get the mirroring's eror log file from this path. C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG Hope this can help you. Best Regards, ...Show All
Software Development for Windows Vista Create "Custom SetState" activity
Hi Im am trying to create my own SetState activity. My goal is that the activity is to validate a property on the workflow and the go to 1 of 2 states defined on my CheckParameterAndGoToState Activity. I have look at the SetState with reflectot and have created my own version of the internal StateDropDownEditor which allows my new activity to have two TargetStateProperties. This works. But this does not draw the lines on the state machine since i am not using the originally SetState activity. How do i do that Should i implment my own ActivityDesigner for my activity If yes. Which one should "look at" eg. with reflector Thanks in regards Anders Are you using a custom CompositeActivity ...Show All
Visual Studio Tools for Office COM exception when trying to add picture as inline shape in Word 2007 RTM
Environment: Windows 2003 running under VPC, Office 2007 RTM, VS2005 I have a schema attached to the document in question and here is the code snippet which errors out with a COM exception. Dim nd As MSWord.XMLNode = wordDoc.XMLNodes.Add("dummyNode", <<namespace>>, CObj (rng)) Dim img As MSWord.InlineShape = nd.Range.InlineShapes.AddPicture("c:\blah.jpg", SaveWithDocument:= True ) 'COM Exception occurs here when trying to add a picture NOTE: The 'rng' object points to a bookmark inside a text box placed under the first page header section The exact exception trace is shown below: System.Runtime.InteropServices.COMException was caught ErrorCode=-2147467259 Message="Error ...Show All
Visual C# Show Startup Programs
How can i show the startup programs from: HKLM, HKCU, and the startup folder i made this, but it's totally wrong, neve tried switch before ! private RegistryKey GlobalReg; private void Read() { switch (startup) { case "HKEY_LOCAL_MACHINE" : GlobalReg = Registry .LocalMachine.OpenSubKey( @"Software\Microsoft\Windows\CurrentVersion\Run" ); break ; case "HKEY_CURRENT_USER" : GlobalReg = Registry .CurrentUser.OpenSubKey( @"Software\Microsoft\Windows\CurrentVersion\Run" ); break ; } foreach ( string programas in GlobalReg.GetValueNames()) { ...Show All
Visual Studio Express Editions fatal error RC1015: cannot open include file 'winres.h'
I've read several forum posts that are similar to this question, without help. I'm using VC++ Express My winres.h is located in: C:\Program Files\Microsoft Platform SDK\include\mfc I tried adding the above to my dependencies and also tried this: C:\Program Files\Microsoft Platform SDK\include\mfc\winres.h I have tried adding these Lines to Project->properties->Linker->General Project->properties->Linker->input Project->properties->C/C++->General I tried different combinations of the above, just one or all etc. I even copied winres.h to my solution and put it directly in my include folder. It still can't open the darn file. Any idea why, it can't open this file Second but relat ...Show All
SQL Server MDX Sort ASC - on property that has datatype integer - result 1,103,2,203,...... ?
Hi, i want to sort my Client dimension on its property Client-ID, for example Client Client-ID A 1 B 2 C 103 but this query: SELECT NONEMPTY(ORDER( [Clients].[Clients].[Clients], [Clients].[Clients].Properties( "Client-ID" ), ASC),{[Measures].[Sales]}) ON COLUMNS FROM Sales sorts them like text. Client Client-ID A 1 C 103 B 2 Some ideas First, you probably want BASC instead of ASC, but that is not the problem here. The problem here is that .Properties always returns string data type for b/c reasons. You can do one of the following: SELECT NONEMPTY(ORDER( [Clients].[Clients].[Clients], [Clients].[Clients].Properties( "Client-ID", TYPED ), ASC),{[Measures].[Sales]}) ...Show All
Visual Basic Create new Webbrowser
I want to create a new webbrowser and display it in a tab I tried this Dim browser as New Webbrowser in TabControl1.SelectedTab But that doesnt work... hopefully based on that code you know what i'm trying to accomplish.. it doesnt compile at all because of the errors but your solution works, but I also have another problem there is a button for a textbox I have the button saying webbrowser1.navigate(textbox1.text) But when there's a new tab, the browser in the window won't be called webbrowser1, it would be called webbrowser2 or something like that so how would i specify the button to navigate using the selected tab's browser ...Show All
SQL Server Analysis Service data source
I have a problem with the connection to the data source from analysis in report designer. After I deploy to report server i got this error: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'xxx'. (rsErrorExecutingCommand) Either the user, , does not have access to the yyyCubes database, or the database does not exist. I have sucessfully deployed the cube to AS. and the funny think is i can connect sucessfully in the report designer and display correctly in preview section, however not in the report server itself. Thanks. Regards Alu ...Show All
Windows Forms Extending DataGridViewTextBoxColumn to DataGridViewHtmlColumn
I'm tring to create a better way to present data in data columns. I've decided to extend the d.g.v.TextBoxColumn, although perhaps I should be using a higher level base class. The fist thing I've decided to support are newlines or [br] ( breaks ). this done, Im not sure the best way to calculate row height, or how to effectively set it. I've tried inside the overridden Paint method to set [ this.DataGridView.Rows[ index ].Height ], but it doesnt seem to be affecting anything perhaps I have to change a related flag so the problem, is that I now have a multiline text column that is cutting off the text because the row height is not appropriatly set. any help is greatly appreciated! -stellar ...Show All
SQL Server importing flat files to many tables
I'm trying to input a few thousand flat files into a few thousand tables in a sql database im using integration services with a for each loop to read all the files in a directory the problem is i can only insert the data from all the files into one table does anyone know a way to do multiple tables maybe using some sort of variable Yes you can, although the approach differs based on what you are trying to accomplish. If each file goes to a different table, use table name variable as your data access mode. If you want each file to go to each table, use nested foreach loops. Foreach file, foreach table, input data. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ModelProcessor
hi is the a way to use openfolderdialog and you select a xof mesh and then the modelprocessor get to work that way in my 3d scene editor you can open a xfile and the xfile is automation of processor so the xna contentpipeline can use is tanks Hi Michael, If you're asking whether you can use the content pipeline at runtime to process user-selected meshes, then I believe the answer is: not elegantly. If you read this documentation , you'll see that the kind of support you're asking for isn't implied in the design. You may want to check out this thread in the forum, since it answers your question in better detail, and includes code to help you accomplish what you're after. If you're asking how to use ModelProcessor to ap ...Show All
Visual Basic How do I make a variable available to another form?
How do I make a variable available to another form I am trying to use a variable from one user control on another. Can anyone help As per the example provided if you are actually using an type of integer you would actually check for non zero value as the integer will be initilaised as zero. If retrievedObj > 0 Then End If ...Show All
Visual Basic Combo Box Cross Threading
ok I Know there are several Threads on this but I cant seem to figure out how to apply it to my situation On my Main Form I have a Combo Box call FolderLocation that takes input from a Folder Browser Dialog and a Text box called txtSFileName, I have a For Each method for Searching folders on a Users System and i'm wanting my Background Worker Do Work to process it in the For Each foundFile As String In My .Computer.FileSystem.GetFiles( Me .FolderLocation.Text, FileIO.SearchOption.SearchAllSubDirectories, txtSFileName.Text) Line of Code it gives me a Cross-thread operation not valid: Control 'FolderLocation' accessed from a thread other than the thread it was created on. Error I have read that it is best to use the Invoke Me ...Show All
