Software Development Network Logo
  • Visual C++
  • Game Technologies
  • Visual C#
  • SharePoint Products
  • Visual Basic
  • IE Development
  • Windows Forms
  • SQL Server
  • VS Team System
  • Visual Studio
  • .NET Development
  • Windows Vista
  • Smart Devicet
  • Visual FoxPro
  • Microsoft ISV

Software Development Network >> Terry Smith's Q&A profile

Terry Smith

Member List

Anand Raman - MSFT
Benin
darthziv
Garrett Serack - MSFT
markusb9
Wee Bubba
SimonJohns
Chuck Cobb
Robert Kozak
Giridhar Damodaram
Kimmers
Mateus1223
Zoiner Tejada
Vaish
Salim Hemdani
GenesisX
Vybez Cartel
Joseph Stalin
ygermain
Peter Ritchie
Only Title

Terry Smith's Q&A profile

  • Windows Forms Window class name is not valid

    When I create a new WindowsApplication project, add any control to the main form and run the project - I get the following exception on Application.Run(new Form1()); I am using VS 2005 beta2.050215-4400. This haven't happened until now. What went wrong Any help will be appreciated Gabriel The exception data follows: System.ComponentModel.Win32Exception was unhandled   Message="Window class name is not valid."   Source="System.Windows.Forms"   ErrorCode=-2147467259   NativeErrorCode=1400   StackTrace:        at System.Windows.Forms.NativeWindow.WindowClass.RegisterClass()        at System.Windows.Forms.NativeWindow.WindowClass.Create(String className, In ...Show All

  • SQL Server Programatically create and configure a FlatFileConnectionManager

    I am writing some C# code that builds a package programatically. the package contains a flat file connection manager. I have referenced Microsoft.SqlServer.Dts.Runtime.Wrapper in order that I can use the ConnectionManagerFlatFileClass class. Here is some of my code: Package p = New package(); ConnectionManager sourceCM = p.Connections.Add("FLATFILE"); sourceCM.Name = "some-name"; ConnectionManagerFlatFileClass cmffc = sourceCM.InnerObject()   I get a compilation error on the last line saying I cannot implicitly cast as ConnectionManagerFlatFileClass . Fair enough, so I change the last line of code to: ConnectionManagerFlatFileClass cmffc = ( ConnectionManagerFlatFileClass )sourceCM.InnerObject() ...Show All

  • Windows Forms Databindings mastered by a textBox...

    Hi! I'll be very thankful to all who can help me in following regard! I am developing an application having a few textBoxes binded with an Oracle Database using bindingsource and dataset etc. What I need to do is if the data in a textBox changes, rest of the textBoxes' data should change accordingly automatically. Example: If text of textBox1 changes by user, texts of textBox2, textBox3, textBox4 should change according to the text of textBox1 automatically. Plz try to help me out this regard. Thanks alot... I think this thred will help your ...Show All

  • SQL Server Find out about "used" dimensions

    Hi, is there any way to find out for a calculated measure if a dimension is used in the query or not Background: We have a calculated member which should display other results if the user adds a special dimension to the query. We tried to use a level function but it returns (All) regardless if you have choosen to display the all level of a dimension or not to display it at all... This behaviour is correct but so it doesn't help me... Thanks, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. InvalidCallException on SetCursorProperties call

    I am having a terrible time getting the cursor to work. I keep getting this error on the SetCursorProperties call: Microsoft.Xna.Framework.Graphics.InvalidCallException was unhandled Message="External component has thrown an exception." Source="Microsoft.Xna.Framework" ErrorCode=-2147467259 StackTrace: at Microsoft.Xna.Framework.Graphics.GraphicsDevice.SetCursorProperties(Int32 hotspotX, Int32 hotspotY, Surface cursorBitmap) at ElectricBliss.Game.Components.Game1.Game1_Starting(Object sender, GameEventArgs e) in C:\_projects\XNA\Camera\Game1.cs:line 124 at Microsoft.Xna.Framework.Game.OnStarting() at Microsoft.Xna.Framework.Game.Start() at Microsoft.Xna.Framework.Game.Run() at ElectricBliss.Game.Co ...Show All

  • Visual C++ How to acces picture in the resources

    Hi, I want to add pictures to my project so I go to Project->resource->add resource than I import the picture I want. But now the problem is, how to access my picture from my class for example my picture is pict.bmp, so after I added it to resources how to call it Thank you in advance :D MFC CBitmap bmp; bmp.LoadBitmap(IDB_BITMAP1);// IDB_BITMAP1 will be the existing bitmap in your resource. Win32 HBITMAP hbmp = LoadBitmap(hinst, MAKEINTRESOURCE(IDB_BITMAP1)); ...Show All

  • Software Development for Windows Vista "Tracking workflows which are already tracked" - Problem

    Following screnario: I have business objects of the type Order and OrderItem. For each of these a workflow is started. I use the SqlTrackingService, so running workflows get written to the db, and I am able to track them with the WorkflowMonitor (included in the Windows SDK I think). If such an Order- or OrderItemWofklow gets aborted or canceled the chance of restarting the workflow with the same objects is still present. The only problem is that the Guid of the started workflows was chosen by myself to be the same as the Order / OrderItems. But if a workflow gets aborted, or canceled, it is still in the tracking database. And when I restart the workflow for the same Order / OrderItem (which is possible by the design of the applic ...Show All

  • .NET Development Why this kind of exception handling

    hi, Please see the below code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try fun() Catch ex As Exception MsgBox(ex.Message) MsgBox(ex.StackTrace) End Try End Sub Private Function fun() Dim a, b, c As Integer Try a = 0 b = 0 c = a / b Catch ex As Exception MsgBox("Reached fun_catch()") fun1() Finally MsgBox("Reached fun_finally()") gan2() End Try End Function Private Function fun1() Dim s, s1 As String s1 = s.IndexOf("a") End Function Private Function fun2() Dim s, s1 As String Throw New EntryPointNotFoundExce ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creator's club payment problem

    Hello, I have a problem with adding my credit card as a payment option I guess it's because I live in country that's unsuported by XBox. I've heard that I can call to support so they can add my card themself I tried that but after talking with the bot I am being disconnected. 3 tries cost to me about $10 :(. Then I've tried to write e-mail to XBox360 support but they told me that I need to call in support... So the question... Is there some way to become Creator's Club member by living in unsuported country Somewhere I saw that I can... But how Thanks Hi Yip, edit your live account location to a country that is supported (UK) and go to any UK based website, go to the contact information and get the postal code as y ...Show All

  • Windows Forms New Row Creation Problem

    Why dosent this code create a row in the database CookBookDataSet . CookBookRow row = cookBookDataSet.CookBook.NewCookBookRow(); row.Titlu = txtbxTitlu.ToString(); row.Reteta = txtbxReteta.ToString(); row.Ingrendiente = txtbxIngrendiente.ToString(); this .cookBookDataSet.CookBook.Rows.Add(row); this .cookBookTableAdapter.Update( this .cookBookDataSet.CookBook); row.AcceptChanges(); I created the dataset visually, with the dataset wizard ... it consists of a single table, three columns, Title, Ingredients and Recepie. A main form with an add entry data, it pops out a modal dialog, just add an entry, press add, and the above mentioned code validates. The database engine is SQL Expr ...Show All

  • .NET Development Creating a generic stack at runtime using reflection

    Hi, I want to be able to create a generic stack and push object onto it at runtime. I have the following code: type t = Type .GetType(nameOfType); Type type = typeof ( Stack <>); Type [] args = { t }; Type constructed = type.MakeGenericType(args); object stack = Activator .CreateInstance(constructed); This works but I cannot cast the object to a generic stack in order to Push something onto the stack. The only way to do it is to use InvokeMember on the stack but that is slow and cumbersome.. Any suggestions Best regards Alex Lehmberg You can't. You cannot cast it to Stack<T> because this is not a type by itself and you canno ...Show All

  • Visual Basic Running 'user selected' applications

    Hi there, A fair while ago I started a project, to try and launch a specific set of applications. Not windows programs. Inititally through their own command buttons, then by checkboxes and a single command button, however I could never get the thing to work. Also the application locations woudl have to be the same as on my system which is never the same to any other system I have used. Now I've been asked by a friend to actually make it, I have tried code like this; Dim NameOfProcess As String = "app.exe" Dim p () As Process = Process . GetProcessesByName ( NameOfProcess ) If p . Length > 0 Then MessageBox . Show ( p . Length & " Process(s) Named " & NameOfProcess & " i ...Show All

  • .NET Development Missing DWMAPI.dll causes problem with COM interop in c#

    I have recently installed IE7, and am now experiencing a problem with COM interop in one of my c# projects. It seems that there is a dependency on a dll called DWMAPI.dll from the COM dll. I have read a bunch of posts about similar problems, and it seems this dll comes with Vista, but is missing on XP machines. For some reason, installing IE7 makes it become a dependency for things like .NET interop. The only solution I have been able to find in the forums and posts is to uninstall IE7. Microsoft has not yet posted anything that I could find in regards to this issue. Does anyone know something I don't Any help is greatly appreciated. Thanks, Dan Well, as long as you know what's going on. There's ...Show All

  • .NET Development Some useful classes in .NET

    I have ideas about some useful classes to be created in future versions of .NET. I don't know where to post it so I post it here. Here they are: 1) Generic hashtable (it's useful when you have objects of one type in it, it helps to avoid many typecasts) 2) Array with arbitary intexes(including negative) 3) Math.Max(params ...) - Max function for many variables (int. arrays of variables) There is not GenericHashtable like thing but a Dictionary class which is used to store objects of same type with a unique ID, the other Generic Colleciton is List<T> in contrast to Dictionary there is not Unique key used in this collection type. The Above classes are Present in .Net 2.0 not the previous version! Best R ...Show All

  • Windows Forms got made of app.config

    i have the followinf connection string inside app.config <connectionStrings>         <add name="connection_string_test.My.MySettings.frtConnectionString"             connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\frt.mdb;Persist Security Info=True"             providerName="System.Data.OleDb" />     </connectionStrings> how can i call it inside a form .   Dim ss As String = My .Settings.frtConnectionString Dim conn As OleDbConnection = New Data.OleDb.OleDbConnection(ss) actually i called it but i was jus ...Show All

©2008 Software Development Network