steve19's Q&A profile
Visual Basic Timezone change not updating ???
How can I get TimeZone.CurrentTimeZone to reflect changes to the computer's time zone (Windows Control Panel) without restarting the program To demonstrate this, I created a form with one button and three lables and added the following code to the button's click event Dim tz As TimeZone = TimeZone.CurrentTimeZone Me .Label1.Text = tz.GetDaylightChanges(Now.Year).Start Me .Label2.Text = tz.StandardName Me .Label3. ...Show All
SQL Server creating users in sql eypress
Hi, wanted to add a login in via c# to sql server express. Is this possible I treid this: String connString = "data source=xtrlt027;Initial catalog=master;Integrated Security=true;"; SqlConnection conn= new SqlConnection();; conn.ConnectionString = connString; try { System.Console.WriteLine("Opening Connection..."); conn.Open(); System.Console.WriteLine("Conne ...Show All
SQL Server SQL Native Client Issue
I downloaded and installed Visual Basic 2005 Express Edition, followed by Sql Server 2005 Express Edition. When I ran the command SQLCMD -S SERVER/SQLEXPRESS I got the following error: **** HResult 0x35, Level 16, State 1 Named Pipes Provider: Could not open a connection to SQL Server [53]. Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this fa ...Show All
Visual Studio Express Editions Visual C# Keeps asking for Registration
As of this moment I already have 2 "Thank you for registering Visual C# 2005 Express Edition!" e-mails in my inbox and just now, Visual C# asks again to register I'm OK with registering, but not if it keeps asking for it every day or two. What could be the problem Eric On further investigation, it appears that installs from the .img files do not require registration. ...Show All
Visual Studio Using existing Enumerations
We got the great 'Domain Model Enumeration Designer' in the DSL tools to design new enums and use them as value properties of classes. But I have some value properties on my DSL elements on which I want to use an already existing enum type. Like for example the 'System.DayOfWeek' enum. There is some kind of mechanism for this for the simple types: you can point to a namespace and type in the name of the type. Is there something similar f ...Show All
Software Development for Windows Vista MenuStrip is still missing from UISpy
Hi! My problem is that MenuStrip does not appear in UISpy. I generated a simple WinForms application (not using WinFx), then put a menu strip at the bottom of the Form. The menu lookes like this: | File | Help | . Clicking on the File, a drop-down menu appears with Exit1 and Exit2 items in it. There is nothing else on the Form. Running this sample application, in UISpy the menu does net appear, just this AutomationElement: " ...Show All
Visual Studio 2008 (Pre-release) Feb CTP TemplateBinding\Property issue
I keep getting this error Error 7 Property elements cannot be in the middle of an element's content. They must be before or after the content. for the following < Rectangle Fill = " {TemplateBinding Property=Background} " /> Thanks Andy I noticed in one of the posts about the changes in the Feb CTP that all bindings needed to use the property syntax, which may be your issue. Tr ...Show All
SQL Server .ne Store procedures & Functions
hi, what is the different between store procedure and function when it is right to use sp and when functions thanks in advanced http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=233961&SiteID=1 This is link for post about difference between UDF and SP. You can use scalar-valued function anywhere when T-SQL command is expecting a value. Thanks. ...Show All
Visual Studio Express Editions Microsoft SQL Server 2005 Express Setup - Installation / Incompatible Components
Hi, I'm having trouble installing SQL Server 2005 Express. It keeps giving this message: "SQL Server 2005 Setup has detected incompatible components from Beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and then run SQL Server 2005 Setup again. . . ." I installed a Beta version of Visual Studio over a year ago, and this may be causing the p ...Show All
.NET Development Localized Month and Weekdays names in spanish
Any idea why the capitalization for localized months and weekday names for spanish cultures changed in the .NET 2.0 framework from the way it was in .NET 1.1 For example, the following program: CultureInfo c = new CultureInfo("es-CO"); Console.WriteLine(c.DateTimeFormat.MonthNames[1]); will print "Febrero" in .NET 1.1, but "febrero" on .NET 2.0 (and so on for all months and names". ...Show All
Visual J# TreeMap and TreeSet bug
Hi I believe you have a severe bug in java.util.AbstractTreeMapImpl that is effecting both java.util.TreeMap and java.util.TreeSet. This bug can be easily recreated by just adding and then removing a large ammount of items from these collections. The remove() operation results in an exception, and, in some cases causes full consumption of cpu. This bug occurs both in Visual J# 1.1 and 2.0. "bug form #1" causes a more severe ...Show All
Software Development for Windows Vista What registry entry to unblock a VC application in XP Firewall
Hello, Not sure if this is the right place for my question. While installing our VC based application we'd like to make an entry in the registry for XP SP2 systems such that the Firewall doesn't popup the block / unblock dialog box at runtime. Our application needs internet to run and the EULA mentions it and the user must accept the EULA to install the software. What registry entry do we add to make a rule for the Firewall to allow the appl ...Show All
.NET Development I have trouble updating a table in my SQL database from my updated Dataset
Hi, I populate my dataset, that has more than one table, the first time using dataadapter and a view like this: cm.CommandText = "SELECT * FROM vwFeat where SubNmbr=5142062279" da.SelectCommand = SqlSelectCommand1 da.Fill(ds, "TblFeat") Then, I update my dataset "ds" with an internal process by adding, deleting and updating rows (for now i m interested in updating rows) Please ho ...Show All
Visual Studio Tools for Office LoaderLock exception thrown when calling Delete method on CommandBarButton
I've got a very simple add-in (pretty much cadged from the how to article about building managed addins in C#). However, due to security requirements for where it'll be deployed I'm using a VC++ shim (totally cadged from a how to article) to sit in between Word and the managed addin In the OnBeginShutDown I'm calling something like GetVariablesButton . Delete (t emporaryTrue ); GetVariablesButton is a member CommandBarButton variable ...Show All
Game Technologies: DirectX, XNA, XACT, etc. running windows media player on top of directx app?
I have a really broad question here ... need some feedback to point me in the right direction before i embark on this project. I want to use windows media player control in a fullsreen directx app. How would you guys go about it I was thinking of making two windows, and running the wmp control on top of the directx app. Now, what if I were to use directshow Would I be able to get the same functionality out of it any direction would help .. th ...Show All
