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

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

SimonOng

Member List

pessi
JLesch
CFIG
DougInGeorgia
mendi
Michael Vainer
stombiztalker
StSt
Ccm1st
Todd Biggs - Windows Live
Kamii47
KyawAM
Mapa3matuk
Jasper22
andris11
needToLearn
ruk_walled
giarnz
Colin Josey
Greg Visscher
Only Title

SimonOng's Q&A profile

  • Gadgets Bandwidth Monitor

    Does anyone if it is possible to create a bandwith monitor sidebar gadget and if so has anyone got any examples I could look at. Regards Ian Anything is possible! So long as you're willing to get into coding ActiveX COM DLL's. We've tried getting acccess to this sort of information before via WMI and ran into security issues, likewise the sysmon.ocx ActiveX COM can't access it unless you're running as Administrator. SNMP is an option, I don't know if you'll run into security issues with that. You'll need to either code your own ActiveX COM or file a freeware one. For some strange reason, Microsoft restricted access to performance stats to Administrators only. So you've got a problem from the start! ...Show All

  • SQL Server SQE vs. SQL 2005 .mdf formats?

    Hi, My ISP says that the file format for SQE .mdf files is different than a regular sql2005 .mdf file. So, what I am told to do is backup my SQE file, and send it to them to restore into a SQL2005 format. Does that make sense Or should I simply be able to upload a .mdf file to their SQL2005 server without backing it up for them to restore Thanks, -JS The file format is the same but sometimes you may have problems attaching a mdf file from another computer due to a different path and probably that's why they told you to backup it and send them the backup. It's easier and safer. ...Show All

  • .NET Development Print word document to specific try

    Well I am coding an application using C# for my company which requires multiple printing  Word Docs, at a specific Printer of the installed Printers, and at a specific tray. So, i used word object ( Microsoft.Office.Interop.Word) for print the document but i cant see any tool that indicate how to print to specific tray in my printer. There any way to do that or still stay with the same way (word object) Thank's Try using the Document.PageSetup property. It has the FirstPageTray and OtherPagesTray to determine which tray gets the printed pages... ...Show All

  • Visual Studio Express Editions define host application to debug a dll

    Hello, I'm using visual studio c# express edition and I want to debug a dll using a host application. I didn't find that options in the project properties Is there an option thanks, I'm not sure if this is available in Express: Project + properties, Debug tab, Start action = Start external program. ...Show All

  • Visual C# Attenuating SoundPlayer Volume

    I use SoundPlayer to punctuate long file downloads and other processes and give me sound cues of the app state in broad sense. One problem I have now is that the volume is so loud that after a long pause it might frighten me a bit with some sounds. Manually adjusting volume in SoundPlayer 10 does not seem to help. I cannot get a hang of it although I tried numerous inroads. SendKeys.Send ( "VolumeDown" ); did not work. I tried to exploit Volume.exe: Set Volume Control Levels Using Visual Basic at http://support.microsoft.com/default.aspx scid=KB%3bEN-US%3bQ178456&%5d and another related sites to no avail so far. It may all boil down to controlling volume in MS kernel sound mixer or something, I do not know. Please, h ...Show All

  • Windows Forms drop down combobox via code

    hi i need to open a combobox via code. how do i/ Private Sub myDGV_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles myDGV.KeyDown If e.KeyCode = Keys.Enter Then If ( Me .myDGV.CurrentCell.OwningColumn.CellType.ToString = "System.Windows.Forms.DataGridViewComboBoxCell" ) Then 'ctype(me.myDGV.CurrentCell,DataGridViewComboBoxCell) 'code to open the combobox and display the values End If End If End Sub Private Sub myDGV_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles myDGV.KeyDown If e.KeyCode = Keys.Enter Then If ( Me .myDGV.CurrentCell.OwningColumn.CellType.ToStri ...Show All

  • SQL Server SQL CE Private v. Shared Deployment

    I have a couple of questions on the nature of shared and private deployment of SQL Server CE 2005 on mobile devices: 1. I've read that with a shared install, SQL Server 2005 Compact Edition files are automatically updated and serviced by Microsoft Update. I take it that this only applies to installations on desktop computers -- if you're installing on mobile devices, there IS no automatic update. Right 2. I've also read that in order to do a shared install of SQL Server 2005 CE, the user must have administrative rights. How does this apply to installs on a mobile device There is no such thing as an administrative user on a mobile device. However, mobile devices CAN require different levels of privilege to install certain programs -- ...Show All

  • Visual Basic How to make a program run in the taskbar?????

    I want to have my program run at all time in the taskbar.  Is there any way to do this   Im using VB2005. In the settings tab: Name: Myfont Type: System.Drawing.Font Scope: User Value: Microsoft Sans Serif, 12pt, style=Bold (Or double click the white area in value for a dialog) Name: MyColor Type: System.Drawing.Color Scope: User Value: Tomato (Or double click the white area in value for a dialog) Then some code: Public Class Form1 Private Sub Form1_FormClosing( ByVal sender As Object , _ ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing My .Settings.myfont = TextBox1.Font My .Settings.mycolor ...Show All

  • Visual Studio Express Editions Regarding delegates?

    Hi, I have a class (class A) that has a delegate defined-for e.g. public delegate void func(); Could i create an object of this class in another class (class B) and call the function of class B using this object. For example: class A { public delegate void func(); } class B { public static void sample() { console.writeline("hi"); } public static void main() { A obj=new A(); obj.func ptr=new obj.func(sample); ptr.func(); } } Also, how is it possible to delete objects. Is there any keyword as in C++ called delete to delete objects created Thanks in advance. Regards, Anil Narayanan Thank you.. nobugz wrote: I had no trouble running my code. Note th ...Show All

  • SQL Server SQL Server Login Problem

    Will somebody please help me I have problems in starting SQL Server 2005 session whenever I use SQL Server Login (Windows authentication is OK). Message received is as follows- A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (.Net SqlClient Data Provider) ------------------------------ For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=233&LinkId=20476 ------------------------------ Server Name: COMP1 Error Number: 233 Severity: 20 State: 0 ------------------------------ Pro ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. KeyEvents?

    Is there no functionality for getting KeyDown/Up messages in XNA as well as gamepad button down/up messages If you just get the state of the keyboard once a frame, if the framerate slows the input will become unreliable. You're totally right that some types of fighting game may need input faster than 1/60 of a second. The best way to do this using XInput would be to simply poll the gamepad more often, perhaps from a high priority background thread. This is exactly what all Xbox fighting games do, because the underlying native API and to the best of my knowledge even the hardware too is entirely based on polling! There isn't any event support in the lowest levels of the input reading system, so yo ...Show All

  • Windows Forms How to assign Data table object to BindingSource

    I tried following but getting error Code BindingSource clientBindingSource = new BindingSource(); clientBindingSource = objDB.fn_GetScreenSharingClientStatus(); Error Cannot convert type 'System.Data.DataTable' to 'System.Windows.Forms.BindingSource' regards   Oh I forgot to write dataSource clientBindingSource .dataSource = objDB.fn_GetScreenSharingClientStatus(); regards   ...Show All

  • Windows Forms How To Extract Icons From Exe Or Dll Files Using ExtractAssociatedIcon ??

    Hello .. I Use ExtractAssociatedIcon To Extract Icons from exe files .. but i want to know how to use it to extrcat the second and thered and forth and fifth icon from exe or dll icon .. because this method is extracting the first icon .. i use it like this .. Me .Icon = System.Drawing.Icon.ExtractAssociatedIcon( "C:\Windows\Explorer.exe" ) I Tried To Use it like this but it didn't work : Me .Icon = System.Drawing.Icon.ExtractAssociatedIcon( "C:\Windows\Explorer.exe 5" ) Me .Icon = System.Drawing.Icon.ExtractAssociatedIcon( "C:\Windows\Explorer.exe, -5" ) Thanks , with best regards .. There is a API to extract icon, you can try. To call this AP ...Show All

  • SQL Server Access Permissions on server scoped objects for login

    We are having problems with the response times from UPS WorldShip after switching from SQL Server 2000 to 2005. I think that the problem can be fixed from the database end by setting the permissions correctly for the user/role/schema that is being used by WorldShip to connect to the server but, I'm not sure how to do it. The Setup Client UPS WorldShip 8.0 running on XP Pro SP2 Connecting via Sql Native Client via SQL Server Login Connection is over a T1 via VPN Server - SQL Server Standard Edition on Windows Server 2003 2x3ghz Xeon processors w/ 4gb ram The user that is being used to connect runs under it's own schema and role and only needs access to two tables in a specific database on the server. What UPS WorldShip see ...Show All

  • Visual C# Problem with Timer and BackgroundWorker

    Hi, After starting below code, the output I got is: ------------- day minute day minute,minute day minute,minute,minute -------------- It should be: -------------- day minute, day minute day minute -------------- I don`t knowo why the backgroud worker starts more then 1 time on each steps, is Background worker cancelletion working right Please help. CODE private void Form1_Load(object sender, EventArgs e) { timer1.Interval = 3000; timer1.Tick += new EventHandler(DayTicker); timer1.Start(); } public void DayTicker(object sender, EventArgs e) { timer1.Stop(); if (backgroundWorker1.IsBusy) backgroundWorker1.CancelAsync(); if (backgroundWorker1.CancellationPending) ret ...Show All

©2008 Software Development Network