Software Development Network Logo
  • Windows Live
  • SQL Server
  • VS Express Editions
  • Microsoft ISV
  • VS Team System
  • Visual C#
  • Visual FoxPro
  • Visual J#
  • Visual Studio
  • Game Technologies
  • .NET Development
  • Visual Basic
  • Windows Forms
  • Windows Vista
  • Architecture

Software Development Network >> Nasenbaer's Q&A profile

Nasenbaer

Member List

Martin_McNally
kendi
rborders
LegacyOfHerot
akodad
learn25
CPRKris
prenney
GrahamM
gill cleeren
Rose123
RedPhoenix
Uncle John
formerly of the exchange forum
chris04920
Busy Dragon
Marc Jacobs108426
siewnauh
kiranla
Aton A
Only Title

Nasenbaer's Q&A profile

  • Windows Forms Testing Methodology

    I was wondering if the experienced developers out there would mind sharing their thoughts on how they test their critters.  I'm currently planning on creating some test harness' so that I can write some nunit tests, but I can foresee some potential pitfalls related to code access security etc.   What I'd like is: 1.  If you have some code out  ...Show All

  • Windows Forms Usercontrol customproperties

    Hi fellow dev's I got a question  (duh) I create a simple control (subform) inherit from usercontrol and added a few properties I inherit from subform (subformtest) , filling the properties .. so far so goed now i drag (instance) subformtest on the surface of a form (testform).  Build and run,  works great!! now i go back and change a few properties on ...Show All

  • Visual C++ How can I solve below template partial specialization problems?

    I want to specialize template when return type is void. ========================================== template <char const*& T, class U, class X> class CSpecialize { public: CSpecialize(X (U::*pfunc)()) : m_pFunc(pfunc) { } X (U::*m_pFunc)(); }; template <char const*&T, class U> class CSpecialize<T, U, void> { public: CSpecialize(void (U::*pfunc)()) : m_pFunc(pfunc) { } private: void (U::*m_pFunc)(); }; compiler error message is error C2755: 'CSpecialize<T,U,void>' : non-type parameter of a partial specialization must be a simple identifier a worka ...Show All

  • Windows Forms How do you refresh data bound to a DataGridView

      This should be easy... but I don't know how to do it. I have created a DataSet that is bound to a DataGridView so that the DataGridView displays the data in my DataSet.  If my DataGridView is called dgvStudents, the following code DOES NOT do the job: dgvStudents.Refresh(); I can see the grid itself flash and refresh(), but the data behind the grid is not being refreshed, so new items in the database (added by another process) are not being displayed in the grid. How do you do this   Possibly I should post this as a new thread but I believe I'm running into a similar situat ...Show All

  • .NET Development how to check if datetime in SQLDateTime range

    I want to validate some dates. I was just using datetime.parse but I can still get a sqldatetime overflow error if the date is not in the permitted range. How can I check for this The SqlDateTime data type has static MinValue and MaxValue members, which return the minimum and maximum SqlDateTime values. So you could convert the string to a DateTime, and then use the static MinValue and MaxValue properties to write code like... DateTime mydatetime = ... if (mydatetime < SqlDateTime.MinValue.Value)   MessageBox.Show("Too small"); else if (mydatetime > SqlDateTime.MaxValue.Value)   Messag ...Show All

  • Smart Device Development Activating speakerphone on Windows Smartphone

    I'm trying to activate the speakerphone on my HTC-derived (Qtek-8300) Smartphone 2003 with no success. So far, I've tried the following approaches. TAPI: After initializing TAPI and veryfing the device's capabilities I made the following call: phoneSetHookSwitch(hPhone, PHONEHOOKSWITCHDEV_SPEAKER, PHONEHOOKSWITCHMODE_MICSPEAKER). The call fails with PHONEERR_OPERATIONUNAVAIL despite the fact that the device should support this feature. In fact any phoneSetHookSwitch call fails regardless of the parameters supplied. Synthesizeing key strokes ..by using keybd_event with both VK_F3 and VK_TSPEAKERPHONETOGGLE (VK_F16) alth ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. error 1304 and error 2350

    Hi durirng the install process it gives the error messages listed in the subject but i get them the following way: during the coping of the files it comies up with and "Error 1304.error writing to file microsoft.xna.ui.xnastudiopackage.dll verify you have access to that directory" it tels me to cancel or rrtry and i clikc retry as i am the computer admin and it then pops up with the "internal error 235" and i am forced to click ok where it cancels how can i fix this thank you in advance. Note: i tried this with the installer files under my documents and first shared documents. Is this th ...Show All

  • Visual Studio Team System Portal Documents CheckIn Checkout Via TFS Client

    Hi, I have a question regarding Documents checkin and checkout via TFS Client. As you know, methodology docs are created on the Team Portal. Document checkin checkout mechanism works perfectly fine if you perform it through the portal. But the problem is, we can not perform the same exercise in TFS Client. It is not possible to checkin and checkout a document and put your comment related to it if you perform it in TFS Client. You can save a document in TFS Client but it only creates a new version of the document without any comment on the portal. We need to perform checkin – checkout mechanism of a document in TFS C ...Show All

  • Visual Studio 2008 (Pre-release) Speed of XAML

    Is it possible for you guys to give us a realistic timeline on when XAML wil be ready to be a actual viable option to develop applications for E.g when will the whole framework standardize and when will we be able to develop apps that won't run at snail speed Thank you very much, Jaco There are many applications in development today, and some are even available for evaluation. The February CTP is the build you should use. There are companies that have been developing WPF applications since PDC 2003, and they are fairly well into their development at this point. Is there some specific iss ...Show All

  • .NET Development Business object design

    I have the following sample class where the property value will come from the database and in the database the value can be null. I believe this is a common problem if one wants to design bisuness objects. I have read about the concepts in many books but no one talks about to solve this problem. public class SampleClass { private string stringProp; private int intProp; private DateTime dateProp; public SampleClass() { // // TODO: Add constructor logic here // } public int IntProp ...Show All

  • Smart Device Development VS 2005 + CF2.0 - Invalid Warning when implementing Paint event

    Can anyone verify this strange warning for me   Create a new project in VS2005.  Use VB, Windows Mobile 5.0 PPC, and Device Application (CF2.0).  Then go into the empty code page for the default Form1, then create a handler for the Paint event.  Build the project and you'll get a warning... "An internal error occurred in PlatformVerificationTask. System.TypeLoadException: Illegal definition for runtime implemented delegate method....." It does not appear to happen with a CF1.0 app. Is anyone else getting this warning   Is this a bug Thanks The only other thing in the&nbs ...Show All

  • Visual Studio Express Editions Winsock Socket Help

    Are there any premade multisocket classes All I have seen are ones that accept one connection. Are there any that allow multiple ones Are we talking about TCP If so, the programming model is that you create a socket that listens to incoming connection. Each time someone connects to your socket, you call AcceptSocket or AcceptTCPClient and get a new socket where you can communicate with the client. Check out TCPListener and TCPClient respectively... Best regards, Johan Stenberg ...Show All

  • SQL Server Schema Ownership

    Hi, I have this user that was given ownership of a couple of schema's and now I want to delete the user but an message appears saying I need to transfer ownership before doing so. The boxes that where ticked in SQL Server won't untick so how do I go about removing ownership of the schema and which user would of had ownership prior, it would have been the inital default user. Anyone...please... Thank you Steve, I undertand the concept of ownership and why the user cannot be deleted. What I don't know is what user had ownership of the schema before I gave it to the user I'm trying to delete. Who owns the schema by default when ...Show All

  • Visual C# Resource: Loading an HTML page into a WebBrowser control

    Hello, I've created a resource file and I stored some HTML pages and some images in it. And now I want to load the html page when a button is pressed into a WebBrowser control How can I do that How the link between the HTML pages should look like How can I show the images stored in the same resource file Your help would be greatly appreciated. ...Show All

  • Visual C# Procedure or function has too many arguments specified

    Hi everyone, I have a web application in C#. When i run the appl i get this error " Procedure or function xqxqxq has too many arguments specified", and I am passing just one parameter.. the only one the stored procedure needs. Pls help, I am stuck. Thank you. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Procedure or function has too many arguments specified. Source Error: Line 26: { Line 27: sqlSelectCommand1.Paramete ...Show All

©2008 Software Development Network