hvanwijk's Q&A profile
.NET Development Multithreading question
Hello, I have a small program with a form control and two threads. These two threads are identical with only difference is the first one reads the top part of the SQL table, while the other one reads bottom part. Both use the same DLL (that I include using imports statement) and instantiate the same class within their code areas. Now, I want these two threads to use dll and do the work simultaneously. But, they seem to take turns. (I have a counter on the form for both ). I see that when one starts, the other one stops. When the second starts, the first stops. How do I make both run at the same time. They use same table for reading and updating the DB. Thanks in advance, Noorul No they do not. Processes a ...Show All
Visual Studio 2008 (Pre-release) Binding and RichTextBox
i wonder if i can binding in RichTextBox. i didnot find any suitable property for binding. i can get binary data from database and set to RichTextBox manually but cannot binding. if anyone know, please share your knowledge. thanks so much. I'm unable to bind to the Text property of a Run, since it's not a dependency property. I alos cannot find a suitable DependencyProperty in its ancestors. Is there no way to bind my Inlines to a data source ...Show All
Visual Studio 2008 (Pre-release) Forcing refresh of a Window object
Hi at all I want to ask, if it is possible to force a repaint on a wpf Window object With WinForms there is possible to call Refresh() on a Form object. Is there a similar method to do this on the Window object Thanks for answering. The way with the worker thread i've canceled because i want a solution with a just one thread. the reason is when i have a second thread in which the UI component will be (time consumed) created, the application will throw an exception because the second thread is not STA. That means i need a solution with just one thread. But the when creation of the UI component is in the main thread (UI thread) it blocks during the creation time of the UI component the repainting of the first UI component. I've trie ...Show All
Visual Studio Team System Permissions Problems!
I have huge problems with the permissions for TFS. I have created a project in which I add an AD group (Projekt) to the Contributers group. My problem is that the members of the the AD group aren't allowed to add work items to the project. I have tried to add the group directly to the security system, added a single member to Contributors, add the AD group to the Area node and assigning permission, all to no avail. Please help! Do I need to synchronize the warehouse in some way Regards Thomas Petersen good grief, you've opened a can of worms! There were many errors! Below are the errors I cound estigie, dom dk, g+ bi ksn stbfrt mrf 1: Event Type: Error Event Source: TFS Warehouse E ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Missing effect.Name and effect.Tag
Hello I’m getting stucked in designing a ResourcenManager for XNA GS. Some basic thoughts : - For bigger scenes it is not wise to load just models and manage them, because they hold Effects and Textures. It would be a better idea to manage Effects and Textures separately, so that you can share them between ModelMeshes. In some cases it would be even better to share ModelMeshes too. - To export a model, for example from a model tool to a x-file, you have to handle the material convertion problem (since the time of shaders). Maybe your model tool supports fx shader, but these are mostly not compatible with those in Game ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D Map Editer?
I've been working on a small and simple xna 2d map editor. i'm planing to save the positon information (in vector2) and what to draw (Texture2D). I'm having a problem drawing or storing the information. i'm planing to save the positon information heres some code: Dictionary<string, Sprite.sprite>tiles = new Dictionary<string,global::MapMaker.Sprite.sprite>(); ... Update: if (Mouse.GetState().LeftButton == ButtonState.Pressed) { tilepos = new Vector2(Mouse.GetState().Y, Mouse.GetState().X); string aKey = "tile" + (drawntiles += 1).ToString(); string sprite = "t" + currenttexture.ToString(); tiles.Add(aKey, new Sprite.sprite(new Rectangle((int)Mouse.GetState().X, ...Show All
SQL Server How do you grab keys from dimensions and store them back into your table
I have run into an issue that seems very simple but I am new to SSIS and DBs in general and therefore cannot solve it. I would like to take data from a SQL Server table, lookup a key from a dimension table and update the same SQL Server table with this data. Is there anyway to do an update using SSIS Thanks, Curtis ...Show All
Visual Basic [Console Application] Event when user logout/shutdown windows?
Hi, I need my console application to execute a last command when a user logout or shutdown windows. Is there a way to catch those events or is there a specific event when windows try to close your application (you logout => windows want to close everything including your app). I found such thing for a windows form but not for a console application ... Thanks for your help. N. I've been looking at this and it doesn't seem possible. I tried getting various process info, but that doesn't work. And Jared's link specifically says: Important: Console applications do not raise the SessionEnding event. There doesn't seem to be a way to "see" a console app ...Show All
.NET Development RijndaelManaged and Base64 - overflow characters after decryption.
Hello fellow developers! I have a problem in two routines for encrypting and decrypting text files, it works fine except the decrypted file contains 3 extra characters " i ". Is there anyone out there that has experienced the same problem or has an idea for a solution I have tried using different PaddingMode settings but without getting closer to a solution. PaddingMode.None - Exception during encryption, "Length of the data to encrypt is invalid." PaddingMode.ANSIX923 - Ok but "i " at end of file. PaddingMode.ISO10126 - Ok but "i " at end of file. PaddingMode.PKCS7 - Ok but "i " at end of file. PaddingMode.Zeroz - Exception during decryption, "Invalid character in a Base-64 st ...Show All
Windows Forms Unable to open the publish page by default
I have my open Deployment web page after build checkbox "checked" still when I publish its not opening the publish page by default, Is there something I need to verify my IIS, I dont remember any changes but looks like its not working now... apart from that I can still manually click the page and install everything fine... ...Show All
Visual Studio Express Editions Combobox and Datagridview
HI, I apologize if this has been covered. I'm sure there is a quick solution for this. I'm want to be able to take a selection from 2 comboboxes and display this data in a DataGridView. The Comboboxes are filled with data from a Database. Also I only want the GridView window to display data from the selection not everything in the table, so it would remain blank until a selection is made. One last thing, how do I stop duplicate data from being displayed in the comboboxes. Should I setup separate tables and make the tables relational Thanks in advance. Peter ok...my mistake about the code, i was just typing it from my mind. should be: Dim theResults as DataRow() And a ...Show All
Smart Device Development All labels disappear when I compile
If a certain user control has been shown during editing since the last time I compiled all labels disappear when I compile from that user control. If you edit the designer file, save it and go back into designer mode they reappear. Actually they are moved behind the user control. All pages in my application are user controls. I tried to report a bug but I couldn't find my way there, too complicated. It's a Win CE 5.0 project. ...Show All
Visual Studio Express Editions WSS Web Parts
Can VS Express be used to build WSS web parts ...Show All
Silverlight (formerly WPF/E) "Loading" Support
Does anyone know of a good location for an example of how to add a "Loading..." sort of support to WPF/E My assuption is that some small XAML is loaded to do the "Loading" screen, then another XAML object is loaded via AJAX or XmlRequest to do the loading of a larger amount of XAML or code. Ideas WPF/E Pad does this. It shows the main UI which is fairly small from a download perspective and then use XMLHTTP to download additional XAML. A textblock updates the user of which files is being downloaded and is hidden after the last file has been downloaded See it here . Source is here . ...Show All
Windows Forms UserControl with ComboBox
My aplication needs a usercontrol consisting a combobox. So I have to provide the commonly used propertiesfor the comboBox for this usercontrol as well. I build this UserControl DLL and using in some other Windows Forms, but then some problems arises. I have few problems in that: 1. There is a property called "FormatString", I have attached the editor "FormatStringEditor" also with this while declaring this property. But when I try to use this property in the "property-pane" I am getting an error Object Reference not set to an instance of an object" 2. I have also exposed the property for "Text" and "Items" and attached these properties to the ComboBox corresponding prop ...Show All
