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

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

bennett_chen

Member List

UncleSam89
Mohan1
johnb01
Scott1234567
Tenny
Mystagogue
bird.tw
Mike9000
slight
hoabinh
gifuran
abc0918
BJohnson
Chimme
redshock
Chris Via
Christophe Bauwens
Kamen
winprock
Maplesoft
Only Title

bennett_chen's Q&A profile

  • Visual Basic Add Items into ComboBox during RunTime

    Hi all, Currently, i would like to make a ComboBox become more flexible which is allow user to add items into it during runtime. I made it, but it is not permanantly added in and it will dissapear in the next runtime. My question is, how to make the added item become permanantly stored into the Combobox Thanks and regards, powerteh I don't kknow how you loaded it to begin with but you have to store the old items as well as the new on some form of database be it a flat file, xml file, access database or SQL database and los the database when the program is initializing. ...Show All

  • Visual Studio Team System Had to use Mercury Loadrunner and capture values of certain hidden form fields

    Visual Studio- doesn’t capture all hidden form fields. Certain requests were failing. Hence ran Loadrunner, noted the value of parameter that was throwing error. Substituted them in Visual Studio. The HTTP request subsequently passed. You could also use a tool called fiddler for trying to record requests missed by the VS recorder. www.fiddlertool.com . This tool has an option for generating a webtest file. ...Show All

  • Visual C# How to strip some parts out of a string

    Hi I have an array of data (dimension = 19) I knew that the last bytes contains float number (in this example it is 139.25) After using Encoding.ASCII.GetString(data) i get a string contains special characters with 139.25 how can i strip these special characters and get only 139.25 =========================================== Please see this picture for more details http://www.swa7.com/upload/uploading/ArrayOfData.jpg =========================================== Is there another way to get the float number only out of the array data While I think that the format of the binary data would be useful in developing a more elegant solution here is the short term solution: You can u ...Show All

  • Smart Device Development Regarding Resolution

    Hi, I have a DELL AXIM X51v Pocket PC device has been installed WM 5.0 Operating System. Specification as below. Type : QVGA, VGA, TFT Color 16-bit Hi : 3.7 inches VGA Size : Med - 3.5 inches QVGA TFT Low - 3.5 inches QVGA TFT Resolution : 240 x 320 at 65,535 QVGA 480 x 640 at 65,536 VGA LCD Brightness : QVGA: 100 nits VGA : 100 nits Now the device resolution is 240 x 320. The problem is "How to change this resolution to 480 x 640". Please send your suggestion or links. Thanx M. GANESAN ...Show All

  • Visual Studio Team System How to add clr assembly in database project (CTP 6)?

    I have C# project which I whant to install as clr assembly using VS Team Edition for Database Professionals. But I unable to finde how to do it. When I trying to create assembly using CREATE ASSEMBLY ... FROM '<path to .dll>' VS reports error "TSD309: CREATE ASSEMBLY statement can only have binary elements in its FROM clause." Hi Has this syntax problem been fixed in the official release It appears that the CREATE ASSEMBLY command using a file reference works under MS SQL Server 2005! Thanks in advance for you help. ...Show All

  • Visual Basic BackgroundWorker vs Try/Catch?

    Hi. I have an app that spawns a couple of BackgroundWorkers. The process works perfectly when all the target servers are available. For testing purposes, I added some non-existant servers to the mix. The problem is in the Try/Catch block of the background process. I have to connect to a SQL Server first, then do stuff. Even though I handle the problem to gracefully exit, I keep getting the message in Debug mode. TargetInvocationException was unhandled - Exception has been thrown by the target of an invocation. -InnerException.Message: {"Object reference not set to an instance of an object."} I thought maybe this was a noob question similar to VB6's option "Break on all errors/Break on unhandled errors," b ...Show All

  • Windows Forms HOW TO: Create A Rectangle Using A Picture Box

    I am using a Visual Basic Express 2005, how can I create a rounded rectangle at runtime using a picture box. Anybody here does have a sample code Thanks;) No need for a PB, you can just draw it in the Paint event of the form or a panel. For example: Public Class Form1 Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim rc As Rectangle = New Rectangle(10, 10, Me.ClientSize.Width - 20, Me.ClientSize.Height - 20) e.Graphics.DrawRectangle(Pens.Black, rc) End Sub Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize Me.Invalidate() End Sub End Class That draws a square rectangle, u ...Show All

  • Commerce Server Paging in Commerce Server.

    We have a requirement to set up variants for a product, but display each variant as a product.When we use Paging for our listing, the paging is paged in context of products and not in variants , so we display more number of products ( as each product has many variants) than the page size, worst page 2 and on are totally messed up. Is there a way that I can page on products * variant than just on products in commerce server Code Used: CategoryConfiguration categoryConfiguration = new CategoryConfiguration(); categoryConfiguration.LoadChildProducts = true; CatalogSearchOptions catalogSearchOptions = new CatalogSearchOptions(); catalogSearchOptions.ClassTypes = CatalogClassTypes.ProductClass | CatalogClassTypes.P ...Show All

  • Windows Forms Datagridview column header color

    I want to change datagridview column header color maintaining visual style enable. Thanks. Datagridview has property EnableHeaderVisualStyle=true. This means that datagridview column and row header follow visual style, so that changing column or row header color I do not obtain effect. I'm searching a procedure to change color maintaining visual style. Thanks. ...Show All

  • .NET Development connection and fucntions

    heya al- just wanted to find out about linking databases to web page. Ive used a ole database connector with a page I want to display the data in a script part however when i take out the database connection and put it into another aspx file and call the aspx file in the page i want it in- it comes up with errors such as variables not initialised etc. e.g. heres my database connection: <script runat="server"> Sub Page_Load() Dim dbconn, sql, dbcomm, dbread dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("linkdb.mdb")) dbconn.Open() End Sub </script> And heres the fucntion i want to perform in a different web form: <script runat=&qu ...Show All

  • Visual Studio Team System Transaction timings for non webrequest transactions

    Hey, I have a webtest that I'm running in a loadtest and am gathering timing details using the BeginTransaction and EndTransaction. In the webtest I have both WebRequests and a SOAP client making requests. I have surrounded both my webrequests and SOAP requests with Begin and End Transaction and have found that the SOAP transactions always return 0 for the elapsed time. First off, why would this be In my webtest I need to know exactly where the time was spent, even if the time was not spend with a WebRequest. And secondly, can I just use the Stopwatch class and somehow get it to show up in the transaction table Thanks for your help! -Cliff If you are not going through the web request class, then we are ...Show All

  • Visual Studio Team System Customizing team build number?

    When Team Build launches, it automatically assigns a build number of the format: <BuildTypeName>_<YYYYmmdd>.<number> This is pretty heinous and means essentially nothing to our QA department who is used to build numbers like 5.30.010. Under other circumstances I wouldn't be so picky but I've just discovered that the bug tracking uses these numbers to populate its drop down list of build numbers. Is there any way to change this number I suspect from what I know about Team Build that the answer will be no. I have thought of a work around but I would really not go through the hassle (the work around being to change the name of the build type before every build by using a tf rename command, such that it would be som ...Show All

  • Visual Studio Differences in IDE and MSBuild for Web Project

    Hi, I've got a wierd one. I've got a Solution that contains a Web project and a DLL project. The web project references the DLL project and The DLL project references 3 thirdparty dlls. When I build from the IDE, The build copies all the dlls from the DLL's output (my dll and the three thirdparty dlls.) However, when I build from msbuild, It neglects to copy one of the dlls. It is always neglects the same dll and it never gets copied. I've tried debug and release configurations and it is the same thing. I'll post whatever anyone thinks is helpful. thanks, nathan Hi Faisal, I realize that it's not over half a year since you're original response - we're seeing the same problem here with our own web proje ...Show All

  • Visual C# How can I split text? ... treenodes

    I'm working on a program that returns a registry key's path. The path always return in the format "Root_Key\Subkey\Subkey\key". I also have a list that stores the subkeys found and I need a way that I can read from its path and add each path individually to a treeview's list so it will be like regular RegEdit, but it only shows what you have searched for. This returns errors. Error 1 Cannot implicitly convert type 'char[]' to 'char' H:\C#\stringSplit\stringSplit\Form1.cs 24 60 stringSplit Error 2 Keyword, identifier, or string expected after verbatim specifier: @ H:\C#\stringSplit\stringSplit\Form1.cs 24 59 stringSplit Error 3 Newline in constant H ...Show All

  • Visual C# Create Window

    Hello , I want to create a Window and place it over any running application. My Window should behave as if it is the part of running application. Any ideas.. Pls suggest me . If possible please give me some code sample or list of APIs .. Thanks Sachin Kumar Rana And here is the example: http://www.developer.com/net/csharp/article.php/3347251 P.S. Replace the " HWND_BOTTOM" with " HWND_TOPMOST" in SetWindowPos method can do what you want. Thank you ...Show All

©2008 Software Development Network