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

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

emau_son

Member List

csharpener
Joe Dawson
Vern Jimmerson
brillox
Gerhardt
Sphere
Martin Vobr
i_rage
James Woodall
Andy_1979
gkousi
MSenthilVel
fabal
gowtham173656
Srig007
Johan Levin141712
Peter Moretti
CurtCBerry
Anthy
Grace Uy
Only Title

emau_son's Q&A profile

  • Visual Basic Help on file append

    what is wrong with this: Private Sub Command1_Click() Dim fso, txtfile Set txtfile = fso.OpenTextFile("c:\testfile.txt", ForWriting) txtfile.writeline (Time) txtfile.writeline (Date$) txtfile.WriteBlankLines (1) ' Write one newline character to the file. txtfile.Close End Sub I want to open "testfile.txt" write a new line with time, date, close it, then open it again and add a new line with the new date and time In .Net 2003: Private Sub Command1_Click() Dim sw As New System.IO.StreamWriter("C:\Testfile.txt", True ) With sw .WriteLine ...Show All

  • Software Development for Windows Vista InkCanvas - CPU Hungry

    I have a UI with an InkCanvas viewed through a VisualBrush. With only a few strokes on the canvas, CPU utilization approaches 60%. When I set myInkCanvas.Visibility = Visibility.Hidden then CPU utilization drops. I may be able to make a small mockup that will demonstrate the behavior, but I would hope it could be solved without that. This is a snapshot of the stack from the offending thread (which I can't make heads or tails out of): ntoskrnl.exe!KiDispatchInterrupt+0x7f MilCore.dll!MilChannel_CommitChannel+0x12b ntoskrnl.exe!KeInitializeTimer+0x107 ntoskrnl.exe!KeUserModeCallback+0x87 ntoskrnl.exe!KeUserModeCallback+0xbd MilCor ...Show All

  • Smart Device Development Is it possible to trigger KeyPress event manually?

    can anyone tell me is it possible to trigger KeyPress event manually if yes can tell me how Private Sub textbox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textbox1.KeyPress         MakeAcceptDecimalOnly(e, textbox1.Text)     End Sub above is my own code which is use to trigger user keypress and let the textbox accept integer only if user key in character the MakeAccpetDecimalOnly function will do nothing (i use e.Handled = True). i want to create a button so when user click on the button, system will a ...Show All

  • Visual Basic Protecting Class Library DLL's?

    I originally posted this on VBForums.com, but haven't received any replies yet, so I thought I'd try here. Anyway, the project I'm currently working on is getting quite large and we are looking at breaking a few components of the software off into manageable class libraries (i.e. DLL's). I've been experimenting with it over the past few days and the problem I'm finding is that the DDL's are insecure. What I mean by this, is that when we distribute our software to the public, anyone with Visual Studio 2005 will be able to create a VB application, then add our DDL's as references and viola, they now have access to the internal functionality a ...Show All

  • Windows Forms Error when executes in window 2000 or Win98 Not on WinXP

    Dear I have a small programme which detect sound from sound card. Because i have to do a work on sound detection. When I run it on Windows XP . It works fine But Problem is that when i run it on Win2000 or Win98 then it gives an error message like "Wave input Device did not Open" I am too much worried abt this. Can any body tell me& ...Show All

  • SQL Server Select Permission Denied on object

    Hello all, I have just begun to develop a simple web application to maintain phone book / contact details of people. I have been facing problems wrt the connection to the database, while trying to execute the reader it throws this error - Server Error in '/phonebook' Application. The user that you are using for connecting to the database, which is specified in the connectionstring is not granted access to the table. By default users don’t have access to any objects, because their only role membership is "public". Grant either dedicated permissions to the user or put him in a SQL Server which has the appropiate perm ...Show All

  • Windows Forms Server setting up.

    Hello, I have a question on setting up and using Terrarium at my place of employment.  I read the FAQ about being behind a firewall.  However, what if one or more fellow programmers want to use the terrarium program too   I can talk to our network admin and see if he will open up port 50000, but how can he forward to all of&nbs ...Show All

  • Visual C++ Windows Services Tutorial / Examples

    Can anyone recommend some good tutorials / examples on creating Windows Services. I would like to use C++ and avoid C#/VB as much as is possible. Additionally, is it possible to control a Windows Service from an external program I have seen some examples of this using the event log to pass commands but never anything that actually works. Thanks Rick Thanks for the articles! They appear to be what I am looking for, however, throughout the authors refer to "NT Services." Are these compatible with the current "Windows Services" in Windows XP EDIT: I am using http://msdn.microsoft.com/library/default ...Show All

  • SQL Server Getting Matching Records

    Hi, I have the following table: *********************************************************************************************** Sheet --- Cycle Init SC --- 89 Post NCOA --- 89 Post Supp --- 89 Revised Final State Counts --- 89 Revised Final State Counts --- 94 *********************************************************************************************** Since "Revised Final State Counts" appears in both cycles 89 & 94. How can I query the table so that I only get that 1 record Thanks You can do query like below: select t.sheet, min(t.Cycle) as Cycle -- max will also do or av ...Show All

  • .NET Development Debug initialization code

    How does one debug the initialization code I have a program written in VS C# Express. It works fine on the development machine (Windows 2000 Pro), both inside the IDE and running standalone. I take the same source code and run it under Windows XP and it fails during initialization (I know this because I have a MessageBox to indicate when I return from Initialization). When I run the program in the IDE on the XP machine, it works fine. How do I find out where the initialization code is failing When I call InitializeComponent() as the first method of my C# program. It fails with a message "There has been ...Show All

  • Windows Forms A Form owned only by MDI child

    Hi, I would like to know how can i display a new form (NOT one of the MDI Childs) above only a specific child, i mean when i will select a different MDI Child form i will not see the new form and when i will switch to the specific form i will see this form. I am looking for a Owner or Parent like feature... How can i do&nb ...Show All

  • Visual Basic VB Selecting the lowest Integer

    Hello again! The program is coming along great... I have a situation where I randomly generated 4 integers between 1-50 What I want to do next is have the program select the lowest and highest numbers from the 4 different dim integers. Can anyone out there lead me in the right direction thanks! Hi, You could write your own implementation of a sorting routine but a neat little thing I found was that you can use the properties of the List class to do your sorting for you like so: Dim ranGen As System.Random = New System.Random() Dim int1 As Integer Dim int2 As Integer Dim in ...Show All

  • SQL Server VS 2005 and Microsoft SQL 2000 DMO on Intel x64 server

    We have written extensive sql 2000 dmo code and we can't get it to run in vs 2005.   What's the trick ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problem installing dxsdk(april 06)

    Hi, Ive got a problem installing the directx sdk (april 06). I go through setup untill right at the end when it says Starting Services. Then it comes up with an error message saying Error 1290.Service DirectX Debug Service (DXDebug) failed to start. Verify that you have sufficient privleges to start system services. Any suggestions Here's another big problem with the April 06 SDK installer. My install seemed to work OK, but actually toasted my msdev 2005 keyboard. I can't copy or paste, etc. No control keys work. The "Tools->Options/Environment/Keyboard" command shows all blanks. No ...Show All

  • .NET Development MethodBase.GetCustomAttributes(false)

    Can anyone suggest why when  two calls are made to  GetCustomAttributes  (right after each other), the second call always throws an exception public void Example(MethodBase source) {     source.GetCustomAttributes(false) ;     source.GetCustomAttributes(false) ; // This one always fails. } Could you provide us some more context Does it fail for all MethodBases that you pass in Can you give us an example of a MethodBase for which it fails Does it fail when you apply a particular custom attribute I tried the following code and it worked like a charm: namespace Cust ...Show All

©2008 Software Development Network