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

Software Development Network >> Tom bernard's Q&A profile

Tom bernard

Member List

JStemper2
Jeff Patton
giftgirls
mario.muja
Reese Bird
flash.tato
Nick Hart
Goat Spirit
Teggno
netleon
todd_bulky
RussP
CESAR DE LA TORRE
loonysan
Dan Mikkelsen
kinny_k
AJB123
djm-web
VoiceOfExperience
simplex
Only Title

Tom bernard's Q&A profile

  • Windows Forms Global Application error event

    Is there any event that raises anytime some error occures in the application I can manage the errors separate in every event with try... catch, but is there any global event that raises when there's an error in the Application In ASP.NET there is that event in glogal.asax (Application_Error), but in Windows Application I don't know is there any event like Application_Error Thank you for the reply's. I'll try both reply's, but if main method works, there's no need for second one. Thank you for your time. ...Show All

  • .NET Development Parsing a SQL query

    I am trying to parse a SQL select query. The idea is to pull out the field names in the query to use them in a lookup to get the units for each field. The problem is that I need to put units on the columns, but do not know in advance which fields are being queried. People can type in a free hand query using the field names, “as”, “sum(field)”, “count(field)”, etc. I am new to regular expressions. Has anyone done anything like this, or could point me to an example that I could use to get started Any help would be great. Thanks. David Hi there, I am trying to extract the column names their tables from a sql query. I have been looking at writing some code to pa ...Show All

  • Visual C# Representing playing cards

    Ok I am new to programming obviously from this question. I am looking to make a blackjack card counting program, for reasons to help learn the syntax. Now my question is how will I go about representing playing cards How should I define each card How should I build the the playing card deck: an array, hashtable, enum it really depends. I think you need to sit down and think about all this :-) you need to design your program, pencil/paper would be a good starting point. If you are new to C# then I would recommend reading other sample codes and documentation and examples on MSDN as they are really good and the way to learn. As well as this, do a search on your favorite search engine about C# code snipp ...Show All

  • Visual Basic Copy Local Praoblem or bug

    Hi All I am using visual Studio 2005 Standard Edition. I have created a Class Library Add in using VB 2005. Then i added references with copy local= true . The program complies and run smoothly. Then i changed my copy Local =false . It complies well. But to my surprise when i run the application it complains about missing reference and that reference happens to be the one which i made copy local=false. I am sure i have given the correct references paths and so on. Could anyone explain what's going on Thanks in Advace PRash If it is a local reference and you set copy local = false and then recompile the local reference a new version relationship will be created yet the newly compiled referen ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. PC deployment problem (may be off topic)

    I've just completed a small pc-only xna app for a research group. It's a very simple flight "simulator" in which you can use all directx-compatible gamepads/joysticks. I'm using managed directx for the input, since xna only supports the 360 pad. The installer includes the latest directx runtime, xna framework and dotnet 2.0 framework. I've tested it on four local machines without encountering the problem at hand. My customer gets a 100% reproducible "file not found" exception upon starting the app. He's tested it on three machines. They all have XP SP 2, and he completed the xna framework install etc. The strange thing is that the first thing that shows up when you start the app is a form that doesn't load any ...Show All

  • Windows Forms Extending EditingPanel / EditingControl bounds

    I want to expand the area for a DataGridViewTextBoxCell's editing panel when i am editing the cell. So far i've got the editing panel and editing control expanded. I've done this by overriding the PositionEditingControl method in the DataGridViewTextBoxCell class. This works fine when the editingPanel is expanded within the grid but i now want it to expand over the form bounds so it doesn't get clipped when it reaches the datagrid edge. How do i do this Also is my method the best way of extending the editingControl / editingPanel bounds public class MyDataGridViewTextBoxCell : DataGridViewTextBoxCell { public override void PositionEditingControl( bool setLocation, bool setSize, Rectangle cellBounds, ...Show All

  • Silverlight (formerly WPF/E) Widgets/Controls

    Is there any inclusion for controls in the future for WPF/e initial release I know there are none in the CTP which is fine but I am curious to know if this will be expected for the first full release or not Reason I ask is I would love to replace our HTML form system with a WPF/e one. I think perhaps theres some missunderstandings about how WPF/e executes then. I thought WPF/e was executed by a small subset of a CLR that was based off the Compact Framework and that this CTP just does not include a C# coding model (yet). Am I wrong Code-behind does not neccessarily mean server-side code. Atleast it doesn't in my mind. In my mind code-behind just means seperating UI from code so it is not all inline. ...Show All

  • Visual C++ another date related problem

    I wrote a program that asks for a year and a day number between 1 and 366. It returns the date for that year and day number in the format:  "Weekday, nnth Month year" where Weekday is the name of the weekday nnth is the day of the date (with the appropriate suffix: st, nd, rd, or th) Month is the name of the month and year is the year. I wrote this program incorporating the System namespace and using the Console functions. I used the DateTime object to get the current date and set variables for the current year, current dayOfYear and current dayOfWeek. The program is working correctly. I also wrote code using the std namespace. To get the date I used ctime. The following is the code I used: time_t mytime; s ...Show All

  • Visual Basic connection to ms sql server

    i am currently using visual studio 2003 for my project. i need help with the codes in connecting from the vb proj to the ms sql database. i was wondering if i could get help in this area. thanks well it depends really what you want to do as there are many ways of doing a thing you want to do. The above code is placed pretty much in the same place - wherever you are going to be dealing with the database itself. ...Show All

  • Software Development for Windows Vista Windows DVD Maker API?

    I'm afraid I can't figure out which forum I should post this message in so I apologize if this is the wrong forum. I've read various tid bits here and there about an API either open or not open for Windows DVD Maker for Vista, that will allow a developer to "automatically" create a project and burn a dvd all by using XML files. I was wondering if there was an API that is coming, is available or if anyone had any information on any kind of development interface to Windows DVD Maker, either via a real API (.dll approach) or my modifying xml files and executing batch commands. Thank you for your help. Denny B ...Show All

  • Visual C# Understanding array object creation.

    I am still struggling with understanding the creation of objects. For example. int[] x = {4,5,6}; int[] y = new int[x.Length]; Why is it that for the first array, we can initialize it without the use of the new keyword yet in the second line, we need the new keyword Whats the difference Thanks so much. ahh, ok, so the first one is automatically created and sized because the data has to be inserted somewhere whereas the second line doesn't place anything inside of it. It just creates it with a size. VS is smart enough to know that it needs to assign those values into space and makes the size up for the first one as well as fills it. In the second line, VS still has no idea what is going into that array ...Show All

  • .NET Development Socket Exeption No such host is known in PPC2003

    Hi I'm very new to any kind of programming, so please bare with me. I'm trying to connect a PPC to a unit on a LAN using socket, and receive a Socket Exeption: No such host known. I've narrowed the vb.net 2003 code down to: Imports System.Net.Sockets Imports System.Text Dim tcpClient As New System.Net.Sockets.TcpClient Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click tcpClient.Connect("10.0.0.21", 8000) End Sub This code works fine using a PC on the same network, but not on the handheld. Thanks PTV timvw wrote: It means that the hostname "10.0.0.21" could not be resolved to an IPAddress... Use the constructor that accepts an IPAddress an ...Show All

  • SQL Server Clustered SSIS: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

    Hello. I've built a cluster and followed the steps for creating a clustered Integration Services (SSIS) resource... http://msdn2.microsoft.com/en-us/library/ms345193.aspx I chose to put SSIS in its own cluster group, separate from the SQL Server cluster group. However, this webpage makes no mention that this setup works only when the SSIS cluster group and SQL Server cluster group are running on the same node. When SSIS is calling a SQLServer/SSIS/msdb store not on the current node, I get the message: ___________________________________________________________________________ The SQL server specified in SSIS service configuration is not present or is not available. This might occur when there is no default instance of SQL Se ...Show All

  • .NET Development System.IO.FileLoadException: Could not load file or assembly 'OleDb (0x800736B1)

    Hello, i work on a VS 2005 Solutions with 10 projects. One of this profects is a C++ project (OleDb.dll). This C++ project use many external .dll. On my PC a can start the \bin\Debug\project.exe without any problem. But when a copied the \bin\Debug directory in to another PC without VS 2005 it can't start all .dll. I become the following exception (traduction from german): System.IO.FileLoadException: Could not load file or assembly 'OleDb, Version=5.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application can not started because the applicatiion configuration ist not correct. To solve the problem you have to re-installed the application again. (Exception from HRESULT: 0x800736B1) File name: 'OleDb, V ...Show All

  • SQL Server error when connect to sqlserver from another machine

    hi .. i install sqlserver and make app with vb6 using ADO to connect to the database and successfully i put that application on another pc on the network when i open it it says "can't login computername\guest" !! any help thanks in advance. thanks Xinwei Hong for reply the two machines on a workgroup so .. could you explain pcs under domain in few lines now i will create two users on the two machines and tell you later thanks in advance. ...Show All

©2008 Software Development Network