ga2006's Q&A profile
SQL Server Update bad designed table
Wich might be the best way to update this table Table Sub (submenus with the items that belong to them) ID OWNERID USERNUMBER SHORTNAME LONGNAME EXCEPTIONS ITEM01 ITEM02 ITEM03 ITEM04 ITEM05 1000 0 1000 Entradas Entradas 0 1001 1002 1003 1004 1005 1100 0 1100 Ensaladas Ensaladas 0 1101 1102 1103 1104 0 1200 0 1200 Sopas Sopas 0 1201 1202 1203 0 0 1300 0 1300 Cremas Cremas 0 1301 1302 1303 0 0 1400 0 1400 Ex=tico Ex=tico 0 1401 1402 1403 1404 1405 1500 0 1500 Aviant\nCuisine ...Show All
Visual Studio Team System Client side installations required for Custom Controls.
Hi, I am planning to create a custom control. I have installed " Visual Studio 2005 Team Foundation Server SP1 " at my server. I would like to know if I need to do any client side installations, for my custom controls to work. I have confusion on whether I should install the Service Pack for Visual Studio " Visual Studio 2005 SP1 " at client machines, for the custom controls to work. Please clarify. Thanks, Laxmi. ...Show All
Software Development for Windows Vista Base Class and Inheritance
Hi, I have an empty Workflow inherited from StateMachineWorkflowActivity (WFBase). I'm trying to define an inherited workflow to WFBase (WFChild) but can't find a way to do it ! - When i try to set "Base Class" to WFChild from the designer, WFBase doesn't show up in the list of available activities... Why - When i try to set the base class directly from the code and into the xoml file, the compiler complain about an invalid root activity... (It seems that it tries to find WFBase in the System.Workflow.Activities namespace ) Any ideas on how to do this PS : What is the correct path for the workflow xoml schemas definition, http://schemas.microsoft.com/winfx/2006/xaml/workflow doesn't work ...Show All
Visual Basic searching for & highlighting text
hi, i am trying to make my application search for text (in a combobox called "comboboxfind") in a listbox ("showbox") when i click on a button (called "findnow") can someone help me Private Sub FindNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindNext.Click Dim loc As New List(Of Integer) Dim index As Integer = 0 If loc.Count = index + 1 Then FindNext.Enabled = False End If ListBox1.SetSelected(CInt(Val(loc(index))), True) index += 1 FindPrevious.Visible = True CommandsFindPrevious.Enabled = True End Sub ...Show All
Visual Studio Team System How to get across the parameter's check
Hello everyone! In my test project how to get across the special parameter's check e.g.: protected void Page_Load(object sender, EventArgs e) { } I use public override ProblemCollection Check(Parameter parameter) check the parameters.but some special parameter(sender,e.etc) which I need not check them.how to get across the parameter's check HI Todd: With your method some parameters that should be unchecked are not checked,Such as: (object,sender,EventArgs e).And some that should be unchecked are checked ,Such as :(Exception ex),can you give me some help to solve the problerm that lets unchecked parameters again by the way ,Can you give me some document about fxcop I am an abecedarian ...Show All
Visual Studio How to prevent SourceSafe login dialog from prompting up?
I am using MS SourceSafe through MSSCCI to handle file version control and I am new to this area. Follow the document, I call the functions in this sequence : 1 SccInitialize 2 SccOpenProject 3 Other functions 4 SccUnintialize Everything works fine only the annoying VSS login dialog prompts up when I call SccOpenProject. I know I can use SCC_OP_SILENTOPEN but my call will fail with return code 2 ( operation cancelled ) if my user id has password. I can't find any SCC function that expects a userid/password, so really don't know how to let SourceSafe know my userid/password. Can anybody tell me how I can login to VSS silently without the need to input userid/password in a VSS login dialog Thanks, Zheng ...Show All
.NET Development Clustered SQL Server 2005 and ADO.NET
We are considering setting up a SQL Server 2005 cluster. Is there a developers guide to writting applications for this environment What can we expect out of the box(s) Should we be writting additional code in our dataccess components to detect and handle when failover occurs Any advice most welcome. Thanks. BenW Thank you. How does one identify failover is occring has occured Do you have some code or pseudo code for this Thanks ...Show All
SQL Server Syntax for WHERE clause for Access Database
I have used this query statement with a SQL Server 2005 database and need to use something similar with an Access database: SELECT products.*, Category AS Expr1 FROM products WHERE (Category = @Category) When I test this in a table adapter there is no preview due to lack of parameter. I seem to recall that Access uses different syntax in the WHERE filter clause (i.e., not @). Can someone help me out with this As far as I can remeber from my access days, any name is treated like a parameter if access is not able to find it within the meta data fo the tables. If you want to refer to a Form value your will have to do something like = Forms!NameofTheForm!SomeControlValue But you might need to ask in ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Anti-aliasing and framerate
Hi, i was wondering how the framerate and anti-aliasing work, the Spacewars starkit has a line: graphics.AllowMultiSampling = true; that the preceding comment claims enables anti-aliasing, but when i use it my code things still seem choppy. Also, i am having this problem where i have a projectile , and my framerate seems ot be locked at 60 fps for some reason (i don't think i had it synced witht he vertical retrace like in SpaceWars), and during the time between frames, a fast projectile moves a certain distance, distance, quite far aeway from where it was in the last frame, making things look a little discrete/choppy, its probably more of a game dev question than an XNA question, but are there any built in features in XNA to remedy that a ...Show All
Visual Basic Page_Load called twice.
Hi, Does anyone know why a Page_Load would be called twice on a page when requesting an aspx page I am using .Net 2.0 with the new .net 1.1 compilation model installed. Whenever I request a page, the Page_Load on the aspx page appears to be called twice, so does the Page_Load on and user controls added to that page. Without some source it is difficult to know exactly when and where your problem is occurring. It could be you having the Page_Load function wired up twice, or even you causing a postback without knowing it. That being said though you may have better luck in asking your question over on the ASP.NET forums where the folks there tend to think in a more ASP.NET centric sort of ...Show All
Visual Studio 2008 (Pre-release) Optimistic Concurrency Issue
I've been running into an issue lately where after an unknown set of circumstances, my access to the database becomes completely unreliable. For example, I fetch an item with an ID of 12, change its "Name" property to "Modified", and then SubmitChanges() on the database. The query submitted to SQL as shown by the profiler shows the system submitting a query for an entirely different item, with a different ID. When this symptom occurs, additional failures happen - such as error messages saying things like "1 of 3 updates failed" due to optimistic concurrency issues. When I reboot, this problem disappears and I can go about my business. What I'm looking for is whether someone here knows what event / code / error ...Show All
.NET Development WSE XmlWriter and Server Side exceptions
I'm getting an exception after I return from my service function because the dataset I am attempting to serialize has some strings with control characters in them. The WellFormedTextWriter does not like this and throws an exception. 1) I'd like to catch this exception in the server and do some handling there before passing it back to the client. Is there anyway to catch an exception in WSE after you have already returned from the web service function 2) Is there anyway to specify to WSE I want it to ignore control characters in string and just go ahead and escape them in the XML (maybe one way to do this might be to instruct WSE to use something besides XmlWellFormedWriter, any way to do this ) thx. ...Show All
Visual Studio Team System Team Explorer -> Sharepoint binding
For some reason the link between Team Explorer and Sharepoint appears to have broken and I can't work out how to fix it. I can access my TFS project portal from http://tfsserver/sites/project/ but if I expand the project in Team Explorer the 'Documents' folder has a red x in it and is empty and the 'Show Project Portal' option is greyed out. Interestingly, if I open Visual Studio and do not expand the project in Team Explorer but just right-click on it then 'Show Project Portal' is enabled and links to the correct place. As soon as I expand it it gets greyed out. Any ideas You can see the URL's that are used by looking in the database. Take a look at the 'TFSIntegration' database, the dbo.tbl_servic ...Show All
Visual C# Capturing Key Events
Hi, I have a form that I want to respond to some key events. On the form is also a numericUpDown. It seems that the numeric is picking off the key events so that the code that I want to run for some specific events is not happening. Any know of how to deal with this Thanks Much. Jeff Hi, setting form's KeyPreview property to True should do the trick. Also, you can prevent up/down keys ever get to the NumericUpDown control...: private void form1_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .Up) { // Process a key here e.Handle ...Show All
Visual Basic Connect to MS Exchange Server?
Hi, I'm really clueless on where to start on this one. Are there any ways to connect to an exchange server and get ones emails and appointments Thank You, Bryan St. Amour yes, use the system.net.mail namespace to achieve your goals: Namespace System.Net.Mail Member of: System Summary: The System.Net.Mail namespace contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery. ...Show All
