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

Software Development Network >> Manh Cuong's Q&A profile

Manh Cuong

Member List

vsslater
Burney
Stevetrooba
Simon Guest
sidno
ankit_ttgls
Makler
crbentle
Gunnar Hansen
emanon
larsp
Shafiq Ur Rahman - MSFT
Kenny Kerr
Dopi
QUANTMCVA
carlpicanco
MamaKike
RBecker
jacksreb
ytjoa
Only Title

Manh Cuong's Q&A profile

  • Visual C# how to update graphic in a different function

    This is my code for drawing a set of 8 circles: private void tbInputTest_Paint(object sender, PaintEventArgs pe) { //Get the Graphics object g = pe.Graphics; //Create an array of rectangles Circles = new RectangleF ; for (int i = 0; i < 8; i++) { Circles = new RectangleF(310, 30+(i * 40), 30, 30); g.FillEllipse(Brushes.White, Circles ); g.DrawEllipse(Pens.Black, Circles ); } } I have a button that when pressed will update the fill color of one of the circle. how i do that I mean how to propagate the graphic handle toward the whole program. by the way the circles appear on a ...Show All

  • Visual Studio 2008 (Pre-release) create proxy from net.msmq?

    Hi! which is the instruction to generate proxy for a service net.msmq I have " svcutil " and " net.msmq://localhost/private/ServiceModelSamplesTransacted ", but I haven't the correct sentence. Saludos, To use SvcUtil, you need to point it at a metadata exchange endpoint. WCF will provide one for you automatically as long as you register with the host a base address of TCP, HTTP, or IPC. You are using MSQM. If you want to, simply add such a base address to the host, and it will generate the proxy for you. Thanks, Juval Lowy, IDesign Inc. ...Show All

  • Visual C# DataBase - Duplicate Records

    In my form, in a button_Click event, I have the Insert Query command. How do I prevent from inputing a duplicate record Can anyone help If you need more clerfication, just reply. The problem with FindByID() is that it works against a local copy of the data - there's no way to determine if the record exists in the data store or not. Someone could have added or removed the record from some other location or you may be working with a subset of data. In Access, you will probably have to write a look-up method that checks for existence of a record before deciding what to do: update or insert.   ...Show All

  • Visual Studio Express Editions Handling data from a Serial Port event

    Versions: Visual Basic 2005 Express Edition DotNet 2.0 Windows XP SP 2 Problem: In writing an app that communicates with a machine via the serial port I've encountered a conceptual problem, I use an event handler to catch response but the is port slow so I wrote the function CheckInput() to wait a few seconds for the machine to respond with the right string, checking each loop for matching input in a buffer filled by the event reciever. Unfortunately I don't seem to get any result from the event handler while inside the loop unless i use Application.DoEvents which seems to create exactly the same problem, it lets the rest ...Show All

  • Visual Basic VB Express 2005

    Hi all, I just downloaded and installed VB Express 2005 Bata 2. When I ran it and select "New Project" and "Window" app, I get 5 dialog boxes that says: Title: Package Load Failure Package 'Visual Studio common IDE package' has failed to load properly (GUDI - {6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C}). Please contact package vendor for assistance. Application restart recommended, due to possible enviroment corruption. Would you like to disable loading this package in the future You may use 'vbexpress /resetskippkgs' to re-enable package loading. 1. How do you notify the vendor I can't find a place to do it. 2. I restarted and get the same thing ...Show All

  • Visual Basic Locally link to .aspx page by using vb.net

    Hi, May i know how to link to .aspx page locally(without via on-line) by using vb.net. this is my code: Private Sub btnReport_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReport.Click Process.Start("http://<ip address>/<shared folder>/OfferLetter.aspx") End Sub this is the error message display when i run it: Network Error (tcp_error) A communication error occurred: "Operation timed out" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish t ...Show All

  • .NET Development System.Threading.Monitor.Enter (under the hood)

    What do the threads that are locked out do when they are locked out And does the Sleep call help get { if(dsUsers == null) { if(IsdsUsersLocked) System.Threading.Thread.Sleep(50); lock(UsersPadlock) { if(dsUsers == null) { IsdsUsersLocked = true; dsUsers = (3 sec call to the database server accross heavy network traffic); IsdsUsersLocked = false; } } } return dsUsers; } The sleep call appears to help when dealing with 100 or more threads but i don't know what really happends to the thread that are locked out. According to some thread states they say they are [sleepwaitjoin] when the sleep is on and [running] when t ...Show All

  • Visual Studio 2008 (Pre-release) MSMQ over HTTP

    I can’t send an message over http to a queue that resides on an different machine. Without using WCF theres no problem. I've testet to send message to the queue using System.Messaging classes. I'm using MsmqIntegrationBinding. Is there something i have to do Use a different binding perhaps the mq address i use looks like this msmq.formatname:DIRECT=HTTP://IPNumber/msmq/clientqueue Hoping for some help Hi Niklas, What error are you seeing Can you elaborate Thanks krish ...Show All

  • Visual Basic An interesting bug

    I have NO idea what caused this to happen. However, working with Visual Basic 2005 Express (version 8.0.50727.42), when I finished the Public Wizard (accessed by going to the My Project section under Solution Explorer and then clicking the Publish tab), my default web browser (firefox) opened. The browser then loaded 6 different pages. 1 - file:///C:/Documents on my local system 2 - NASA.gov 3 - A Microsoft site on "Working with Internet Explorer 6 Security Settings" - http://www.microsoft.com/windows/ie/using/howto/security/settings.mspx 4 - University of Oklahoma College of Law site - http://www.law.ou.e ...Show All

  • Visual C++ /clr Static Libs Possible / linking between mananged and unmanaged

    Hi, Are static libs built with /clr supported under vs2005   When I link against any lib built this way I end up with unresolved tokens and externals.  The same code compiles with no issues with non /clr builds. How are static functions supported   They also seem to come up undefined at times. What are the differences when linking against dlls/libs that are built as managed   I can't seem to find any documentation regarding this.  I am going by trial and error, but would like to be able to do more design. Thank you Your scenario is pretty complex, and it would take me some time to t ...Show All

  • Visual C++ change Visual C# code to C++ ?

    Hello, I have got the code below to work using Visual C# 2005 Express Beta 2 but would liek to change it to Visual C++ using Visual C++ 2005 Express Beta 2 as I am told (please correct me if necessary!) that with Visual C++ 2005 Express and Windows SDK I can write a Win32 app which would then not require the large .NET Framework software when installing on another PC...my app being very small it seems foolish to have to add the .NET Framework ... Are there better ways to create a small app like mine Would VB5 or 6 be better The main thing for me is that I need an IDE where I can drag and drop a slider/trackbar etc...Visual C# 2005 Express Be ...Show All

  • Visual C++ Class designer

    Hey, Do you know of the class designer for c++ is included in the final version of Visual C++ 2005 Or will it come with an update, or with a next version of VS Martin Richter wrote: AFAIK the class designer ist not and will not be part of 2005! I am not sure but we can expect it in Orcas. Thats a pity. Do you know of there are other programs to design classes for c++ (no too expensive) ...Show All

  • Visual Studio 2008 (Pre-release) About schyzophreny, C#3 intelligence and runtime stupidity

    This question relates to Linq, as the Espresso sample illustrates, so I post for suggestions here.. http://technofinance.blogspot.com/ --------------------------------------------- On my way toward a flexible application to perform queries on the vast amount of information my trading desk produces everyday, I was delighted to meet with C#3 and Linq functionnalities. Design time I always thought such a transversal approach was needed and I was surprised to remember that I developped a similar API for VB back in the old days :) Now I could have cutting edge Microsoft functionnalities and exceptionnal compiler intelligence ...Show All

  • Visual Studio Express Editions Getting data from a datatable

    Hi all, Im trying to retrieve data from one of my datatables but i dont know how to reference the location of the data i want. Basically i have a table as follows: Joint Type Thickness M8 M10 M16 JD1 35 100 200 300 JD1 45 150 250 350 JD2 35 400 500 600 JD2 45 450 550 650 The actual table has a lot more data in it in reality but you get the idea. On my userform i have a combobox with a list of joint types i.e. JD1,JD2 etc, a combobox with bolts sizes i.e. M8,M10,M16 and a textbox where thickness is ...Show All

  • Software Development for Windows Vista Dim desktop - stuck in a transistion ?

    Has anybody else exeperienced their whole desktop (windows, everything but the cursor) going dim, it can go completely black. All of our team who've installed have had it, some have been able to get back to full brightness, but I'm stuck, no matter what I do. Everything was fine, until the first time I switched user, and some have had it on logout. I've tried Nvidia (fx1100) and ATI (X2-256t) and both exhibit the behaviour, mine is currently so dim that I can't really use it. Capturing the screen doesn't sow the problem. -- Dan I am having the same issue every time I install Vista it work ...Show All

©2008 Software Development Network