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

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

JinGuoLi

Member List

net2020
jdcompman
EWhitlow
Sreejan
Joe
HoustonRocket
ogiepogi
souma
sahan39760
j0h4n
Jijil
Jason Sacks - MSFT
shupe
Barnabas
MXQBear
Mangun
Niedo
spnz
DanTanzer
matvdl
Only Title

JinGuoLi's Q&A profile

  • .NET Development wake up from suspend or hibernation with a timer

    Hi, With the win32 api I could wake up a machine from suspend or hibernation with the API call SetWaitableTimer. Does something similar already exists under .NET. Before I used the following calls HANDLE WINAPI CreateWaitableTimer( LPSECURITY_ATTRIBUTES lpTimerAttributes , BOOL bManualReset , LPCTSTR lpTimerName ); BOOL WINAPI SetWaitableTimer( HANDLE hTimer , const LARGE_INTEGER* pDueTime , LONG lPeriod , PTIMERAPCROUTINE pfnCompletionRoutine , LPVOID lpArgToCompletionRoutine , BOOL fResume ); BOOLEAN SetSuspendState( BOOLEAN Hibernate , ...Show All

  • Visual Basic vb.net and crystal report

    I am currently working in an access database.Using vb.net, I made a form wherein a user can sort data he wanted to generate in a report...sorting are done by selecting the order_date of the transaction(e.g. from 12/01/2005 to 05/03/2006) then he had to select an account(e.g. company name) and lastly exam(e.g. urine test)...Upon completing the selection on the three fields, I want to generate the report base on the selection...I am obliged to use crystal report for this...can someone please help me how can i achieve this one..I am totally new in .Net...thanks in advance... Few questions first. What v ...Show All

  • .NET Development converting c++ char array to .net string

    Hi all, I'm having some trouble to read a binary file containing a c++ struct's data into my c# application. The last 16Bytes of the 24 Byte file contain a 15 chars and the \0 end character. I'm trying to convert these bytes I read from the file to a C# string using BitConverter.ToString(data, counter + 8, 16); However, what I get is just: 30-20-36-30-30-20-38-30-30-20-30-32-34-00-00-83 I don't have any idea how get the actual text from the file. Anybody who could help me Thanks, Marco give this a shot (data is a byte array, correct byte [] src = new byte [16]{}; data.CopyTo(src, counter+ ...Show All

  • Smart Device Development cell event of datagrid ?

    I write a crosstab query, it be binded in a datagrid control. as shown: Company    master  bachelor -------------------------------------- companyA     40         38 companyB     65        67 ---------------------------------------- I want to do it : When I click one of cell, it will shown a list of name details. for example : when I click ' 40 ', it will shown "Milk, Tom, Joan......" How can I carry it out in the datagrid I was at a loss.Thank you everyone.   So w ...Show All

  • Windows Forms MultiSelect ListView & SelectedIndexChanged

    When a listview's multiselect property is set to true, the selectedindexchanged event fires once for every item removed or added to the set of selected items.  Is there any way to determine when the selecteditem collection is done being updated   I need to display information for the collection of selected items, and displaying it on every time this ev ...Show All

  • Visual Studio Team System Can we ignore files from source control ?

    Hello All ! I'm now having a solution with several DLLs and a web site for which I generate the xml documentation file. By default, when I build all the xml fils are built in the bin folder and are added to the source control. Personnaly, I think that these files should not be in the source control and so I was manually doing an "Undo Pending Changes" on each of these files. Two questions : Is there a way to say to the source control to ignore all the ".xml" file in the bin fodler If these files are stored in the source control, for a reason I cannot explain there is then an error : MSB3021 when I try to build on ...Show All

  • Software Development for Windows Vista streamline video/direct3d switching

    My apologies for posting two somewhat related topics so close together. What I am trying to accomplish is a program that plays a video in fullscreen then immediately switches to a full screen direct3d. It will be something like, the video is of a ball moving a certain distance, video ends and program switches to direct3d mode where the user draws a line estimating the distance the ball traveled. I pretty much have these two seperate stages programmed as seperated programs. But my question is how to integrate them. I want the transition to be smooth, which no flickering or obvious changing or switching in and out of video modes. How shou ...Show All

  • SQL Server How to change default script generation options in SQL 2005 tools or VS 2005

    Ok, this has been driving me crazy in both SQL Management Studio and VS 2005 Server Explorer. How do you change the default script generation options When I right-click a stored procedure, table, etc. in the SQL Management Studio's Object Explorer, or in the VS 2005 Server Explorer and choose to generate a create script for that object it does not prompt me for any scripting options (like do I want to script dependant objects (where my answer is a resounding NO! but the default that ships with the tools is yes)). I wouldn't mind complaining that I should be able to select multiple items in these tools and generate scripts for all selected ...Show All

  • Visual Studio Tools for Office Populating Outlook contact list from SQL database

    We have a database with lots of contacts in, and we would like these contacts to appear in people's contact lists when creating new emails etc. Is this possible If so, how :) If you have Exchange Server, you can create something called a "MAPI Address Book Provider", which can access a database. Here's a link to the MSDN article on the subject: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mapi/html/3a850d4d-2ffe-446b-b21d-036e892f5abe.asp Hope this helps. ...Show All

  • Windows Forms event on scaning barcode

    hi , i am using vb.net 2003 and i want to scan barcodes with the scaner i want if the scaner completes the scaning doesn't matter what the length is the next textbox is focused i tried it on different events but could not find the proper event  can any body help me  best regards ali shah The problem appears to be with the&nb ...Show All

  • Visual Studio Express Editions Colour Setting Problems/Questions

    What code will allow me to set an object's colour to a system colour For example: setting a form's background to the Window's Application Background setting. Also, is there a way I can add all the Color. properties into a ComboBox list and when the user selects one, it automatically applies that colour Finally, can someone tell me how to use the RGB( to set a colour, using values form 3 different textboxes No matter what the "value type" is (e.g. string, integer), it constantly comes up with the error "Error 1 Value of type [type] cannot be converted to 'System.Drawing.Color'."  Please post code. Thanks ...Show All

  • .NET Development Mutex could not be created

     Hi, we cannot get the debugger to work with asp.net 20, i get the Unable t ostart debugging on web server. The web server is not configured corretly. we have currently ran the aspnet_regiis -ag <username> command to make sure that aspnet aspnet account and logged in user account have right to metabase. but now we get teh following error.   Server Error in '/GreatHireNet' Application. Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabi ...Show All

  • .NET Development Convert XML into Pdf Format Using MSXML 4.0 SP2

    Hello, I am genrating xml schema and XML document using dataset in VB.net enviorment.I used these files in Altova Style Vision Enterprise edition to genrate style sheets.I saved html,rtf ad pdf style sheets at my disk.Now I am getting multiple records from database and genrating new xml file.After genrating xml file using tranform method of stylesheet to get html file with this code and it working. 'inspectorODetail.Xslt is genrated using Altova Style Vison XSlsheet.Load(path+"/Open/InspectorODetail.xslt") 'Transform StyleSheet and Save output in html XSlsheet.Transform(App+"/InspectorODetail.xml",path+&q ...Show All

  • SQL Server Newbie needs help with timestamp calculation

    I'm a newbie, so please be gentle I have a table that has a timestamp column that I can reference, e.g., SELECT * FROM mytable WHERE RECORDTIME < {TS '2006-05-01 00:00:00.000' } This type of selection works. What I want to do now is select the rows where the timestamp is less than 30 days prior to the current date instead of hardcoding a timestamp every time. I'm trying to select anything older than 30 days. SELECT * FROM myfile WHERE RECORDTIME < [ current date's timestamp] - 30 days I don't even know where to start so any help is greatly appreciated. Thanks in advance, Robert ...Show All

  • Windows Forms WM_QUERYENDSESSION and differences between Win2000 & 2003

    From a locked workstation, if the next user would supply a different set of credentials to login than the user currently logged in, windows prompts you by asking if you would like to logoff the currently logged in user. If you say yes to this and you're in Windows 2000 Server, the WM_QUERYENDSESSION event fires with the lparam set to ENDSESSION_LOGOFF = 0x80000000. If you would do the same thing in Windows 2003 Server, the WM_QUERYENDSESSION event fires but the lparam is set to zero. What's going on here Does anybody have any idea I checked into the new .NET stuff - AddHandler Microsoft.Win32.SystemEvents.SessionEnding, AddressOf SystemEve ...Show All

©2008 Software Development Network