mr Umesh kumar's Q&A profile
Visual Studio Express Editions serial port help for dummies!
is there any documentation on how to use the serialport component in visual basic express edition Hi Rick I have uploaded my application on the download page of my website at www.ampertronics.com.au if anyone would like to donload and try it out you are welcome. It is a simple program that is a cross between Notepad and Hyperterminal and sends thing out to the serial port. Any installation or other problems/suggestions are welcomed. I'll post the same on another thread so that helpful people can see the result of their input I would be interested to see if my application would work with your setup. By the w ...Show All
SQL Server mysql dump(urgent request)
How to dump data from mysql within a particular date range Is there any option to dump data from MYSQL after a particular date. Can i do it using SSIS If so please help. Any sort of help on this topic would be appreciated, as i dont have much experience in database administration. ...Show All
.NET Development collection
hi, I am using vs basic.net 2005 to do a project. Now I have a base class, such as Public Class ParaBase Dim title As [Enum] Dim variable As String Dim value As String Sub New () title = Nothing variable = "" value = "" End Sub Public Property UIName() As [Enum] Get UIName = title End Get Set ( ByVal value As [Enum]) title = value End Set End Property Public Property ValueStr() As String Get ValueStr = value End Get Set ( ByVal v As String ) value = v End Set ...Show All
Visual Studio Express Editions prevent automatic change of the scrollposition of the scroll bars
i am facing an irritating problem I am using: 1. A tab control 2. A panel with autoscroll set to true, Docked to fill the above mentioned tab control. 3. A tree view and picturebox inside the above mentioned panel. Both have the height more than that of the container panel and hence a vertical scroll bar comes in the panel automatically so far its fine the problem: when i click on the treeview loaded with nodes, the vertical scrollbar automatically changes the scroll position (increment) and the tabs of the tab control move beyond the top of the form and thus go out of vision. again the user has to manually move the scro ...Show All
.NET Development Will this become a memory hog?
I made a FileWatcher object. Once a new file is created, all works fine. I would like the FileWatcher to begin watching for files again after it finishes with the file is it processing. What i have below is how I do it. I am just not sure if what I am doing is the best way. I am worried that a new FileWatcher will continue to be created, and after a while will begin to take more and more memory. I would like just one FileWatcher and one instance. public static void XmlWatcher() { FileSystemWatcher watcher = new FileSystemWatcher (); watcher.Path = WatcherDir; watcher.Filter = "*.xml" ; watche ...Show All
Windows Forms mailto in Windows Form
hi, I guess lots of us have been finding the way to send email with attachment in windows form. I find the code below works fine on Outlook 2003, but not sure on 2002. Please have a try and let me know if you have any question. Dim MsgBuilder As New System.Text.StringBuilder MsgBuilder.Append("mailto:support@abc.net") MsgBuilder.Append("&subject=assistant needed !! ") MsgBuilder.Append("&body=") MsgBuilder.Append("&Attach=" & Chr(34) & Chr(34) & Application.StartupPath & "\Error.Log" & Chr(34) & Chr(34)) Dim mProcess As New Process With mProcess .StartInfo.FileName = MsgBuilder.ToS ...Show All
Visual Studio 2008 (Pre-release) wsDualHttpBinding and TimeoutException
Hello, I am trying to develop an WCF service with enabled duplex communication between client and service. WCF service is hosted under Windows Service. Everything works fine if I use client and service on the same machine. If service is located on the remote machine, no calls pass through for services configured for wsDualHttpBinding. All of them end up with TimeoutException. Client and service machines are in the same domain. For testing purposes I use domain account with administrator rights. Any ideas on how TimeoutException issue could be resolved Thanks in advance. Edmundas. P.S.: service configuration file, client ...Show All
Smart Device Development Deployment and/or registration failed with error: 0x80070070. There is not enough space on the disk.
I tried building the camera API and got this error. I went and saw the space using Space Maker Storage (Flash) Storage Total: 27.98 MB Used: 4.60 MB Free: 23.39 MB it displays this. Please help me ------ Build started: Project: CECamera, Configuration: Release Any CPU ------ CECamera -> C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\Cs\Cecamera\bin\Release\CECamera.exe ------ Deploy started: Project: CECamera, Configuration: Release Any CPU ------ Deploying 'C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Designtimereferences\Microsoft.WindowsMobile.dll' Deploying 'C:\Pr ...Show All
.NET Development Sending Message after AddIPAddress
Hi there, My machine have 2 Network Adapters (NIC). I try to assign different IP to 1 adapter using IPHelper's AddIPaddress API. Then I used Socket to bind that IP and send to another machine IP address. I was unable to send sucessfully. I can send only another NIC IP in my machine. How do i set socketoptions or gateway setting whenever after i add new ip address Here is code example // returnCode = AddIPAddress(staticIP, staticMask, adapterIndex, ref nteContext, ref nteInstance); Socket s = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp); byte[] msgBytes = System.Text.Encoding.ASCII.GetBytes("Hello ...Show All
Visual Basic Write Games
Can you write real 3D games with Visual Basic I'm in the proccess of writting a 3D engine for VB. the '3d' part is really fun and easy. It even supports PS and VS shaders, which the latest release of DirectX9c (october) has helped with that alot. The examples in the DirectX sdk are really good too. You can get the SDK here. http://msdn.microsoft.com/directx/sdk/ Dustin ...Show All
Visual Basic Multithreading Problems With A Windows Form
Hi! I took a course on Operating Systems this semester and I finally wrapped some time around the idea of threaded programming. As a way of practicing and learning how it works in .NET I am implementing a Round Robin Scheduler simulator in visual basic. I have created a class called ProcessList which is basically a queue that feeds the scheduler with processes at specified intervals. Whenever the interval passes, I want to dequeue an item, then create a listbox item and add it to a windows control to show the list of processes. The way I approached it was to create a thread in the main form that runs the procedure of the processlist t ...Show All
Visual Studio Team System Unable to create a Team Project - SharePoint connection problem
I have installed the Beta 3 refresh of TFS, along with SQL Server and SharePoint following the instructions in the installation guide. However when I try to create a project I am getting an error that there is a problem in installing the SparePoint site. The Project Creation Wizard is unable to connect to Windnows SharePoint Services. At this point it attempts an incomplete rollback and I end up with what appears to be a partial install. Any ideas as to why the wizard can't connect to SharePoint. And how can I complete the rollback of the failed project creation. I had the same p ...Show All
Visual Basic How do I use generics?
Public Function RectangularVolumn ( Of T As Structure )( ByVal width As T , ByVal length As T , ByVal height As T ) As T Return width * length * height End Function What do i need to do to make this work for any numeric type Considering that it is a mathematical sum, I would go with cgraus on this one. Double is your most open-ended alternative. Thus, I'd declare it like this: Public Function RectangularVolume( ByVal width As _ Double , ByVal length As Double , ByVal height _ As Double ) As Double Dim Volume As Double = (width * le ...Show All
Visual Studio Print PaperSize?
Hi, How are we supposed to set the paper size when printing a LocalReport with the windows forms ReportViewer I mean the Printer PaperSize, at printing time, not the Report's Layout size. Thanks, Juan Hello, I also have a problem with this. There is a program that have one ReportViewer witch shows a simple report, in that case this are lables for a box with adress and som other info. My problem is now that I can't change the default printersettings on this computer, so I have to correct these settings every time I start the program. Is there a posibility to save the printer settings in the p ...Show All
Visual Studio 2008 (Pre-release) SecurityException while Displaying image using BitmapImage in web browser application
Hi I'm trying to display image using BitMapImage in a Avalon web browser application. I used the following code. BitmapImage bi = new BitmapImage (); bi.BeginInit(); bi.UriSource = new Uri ( "C:\\Sample\\images\\thumbnail05.gif" , UriKind .RelativeOrAbsolute); bi.EndInit(); // Set image source imgBaseProduct.Source = bi; In the xaml I have the following code. < Image HorizontalAlignment = " Center " VerticalAlignment = " Center " Height = " 85 " Width = " 90 " Name = " imgBaseProduct " ></ Image > This gives an error.( a security exception which goes like The action that failed was: Demand T ...Show All
