Answer Questions
lms07424 Rounding Help
Hello, I'm new to the forums, so if I have placed this message in the wrong subject, I apologize. But, I'm hoping someone might be able to help me. I am trying to compare two numbers in VB.net. I want to compare all the digits to the left of the decimal point and only the first digit to the right to see if they match. For example: 8.6 4 and and 8.6 9 would be a match because all that I'm concerned with is the first digit to the right of the decimal point. But, if I use the Math.Round , it would round 8.6 4 to 8.6 and 8.6 9 to 8.7 - and then they wouldn't match. I thought I could determine the length of the number and then trim the digits, but there could any number of digits to the left and/or right of the decimal poin ...Show All
YMaod YOU ARE A GENIEUS--Reed Kimble --THANK YOU SO MUCH Just a Minor Ajustment to make it work MAKE E.CANCEL = FALSE ---
I have this code whre I want to open a new window within browser1 of my form8 Instead I loose control of the browser and by loosing my session Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow e.Cancel = True Form8.Show() 'Form8.WebBrowser1.Name = what goes here I am not sure what to do here 'Here I am forcing the opening of this specific website/I want to open whatever url is clicked Form8.WebBrowser1.Navigate( http://www.accountingonline.us/invoice/index.php page=open ) ' Form8.WebBrowser1.Navigate(sender) this did not work End Sub Sorry, don't know what to tell you. When I tested th ...Show All
miltho clean solution
Where can I find a discussion of clean solution Exactly what it does, etc. I haven't found any dox on it. Thanks I wasn't aware of 'Unused References' Thanks for your reply. That much I was able to determine before. Your hi-lite gets to my point (and what I need more info on). I have a project with 3 direct dll references (all my own dll's ). These, in turn, reference others. After a BUILD, I have about a dozen dll's in References -> Bin -> Debug and ->Release. As I bounce back and forth between changing the dll's and recompiling the main project, I use Rebuild Solution which is SUPPOSED to do a Clean first. But, it doesn't always work. SO ... I tried Build -> Clean Solution. IT D ...Show All
TaiChiMaster event of hovering cursor over PictureBox.
I have a PictureBox in the form. When the mouse cursor is over the PictureBox I plan on reading the x,y coordinate of the cursor in the PictureBox. I have read some related answers on similar topics and believe that you guys/gals are already discussing the next level. Can someone help to get me over this first step Thanks Werner Thanks Renee - that was simple and effective Werner erm... I'm a gal......... Renee shakes her head............ Public Class Form1 Dim PicPoint As Point Private Sub Form1_Load( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles Me .Load PictureBox1.LoadAsync( "c:\test.png" ) End Sub Priv ...Show All
DevDells Accessing Remote Computer's Information
Okay, I'm creating a Visual Basic .NET 2005 Windows Service. I need it to periodically access some remote servers for their information. Right now, I'm working with drive information, so I'm trying to get the total space and the amount remaining on the drive of the remote server. How do I go about doing that I'm trying to keep this service centrally located so that it can access 3 separate servers without loading and configuring it individually. I tried My.Computer.FileSystem.GetDriveInfo() and System.IO.DriveInfo, but, predictably, they only access local drives. Any help would be greatly appreciated. Here's some snipets from a application i wrote to collect computer info from our network. Pu ...Show All
Bertrand Caillet AddValueChanged or something simillar - Please help as can't make head or tails.
I am designing a class (PersistentClass) that can be inherited. When another class, say MyNewClass, inherits this class, I would like PersistentClass to be notified of any changes in any properties of MyNewClass, without any specifal code needed to be written from within MyNewClass. Example: Public Class MyNewClass inherits PersistentObject Private mMyString As String Property MyString() As String Get Return mMyString End Get Set ( ByVal value As String ) mMyString = value End Set End Property End Class Is there a way that the PersistentObject subclass can be notified when MyString is set Thanks Adrian ...Show All
CODUDE84 Decimal number
I have a decimal variable and i want to show only 2 or 3 digit after the dot like 1.123 How do i do it Math.Round(1.1225655, 3) ...Show All
TomSlick23 database report
hello, i'm using ADODB on my vb8-access. before on vb6 i use data report designer to prepare a print, but here on vb8, how can i do that, without using crystal reports i would like to design my report just like report designer, is it possible or are there any turn around for this thanks thank you for the link,the samples were SQL Server based, and as of now i'm having problem making a connection with sql server, but i'll retry again. hello, i follow your suggestion about creating new connection, when i select Microsoft Access Database File, i got this error Format of the initialization string does not conform to specification starting at index 0. i can ...Show All
georgeskada How to fill a A4 page when printing a form?
How can I fill a entiry A4 page, when using Pintform I have a picturebox docked in the form, with a model of a report, and some textbox, that fill some questions of the report. But I can't get the picturebox to completely fill the printed page. Is there any tool that could help me Thanks, Lucas Dear Jonathan, Thanks for your answer, but I am using a PrintForm, because I have some textbox in the same form, that have to be printed together. Using the PrintDocument is quite boring when you have too many itens to add to your printing. So, I would like to do it wih the PrintForm. Adjusting the size of the form, doesn't help me, because there is a maximum size, that isn't enough to fi ...Show All
Smileenergy Open file
Hiiiii, How i can open file (word,excel etc) using vb.net (web base).. But not using response.redirect(namefile)... Please help me.. Thanks Jebat Hiiii, In my program i using Vb.Net, not Asp/Asp.net.... so i can send my problem in this forum.... I hope you understand , Thanks... Jebat... I think you need to restate your problem. Are you trying to open an excel file that is located on a web page using a winforms application (VB) Are you trying to open an excel file on a file share using a web application (ASP) The answer to those questions determine which forum you want to use. You have to write a script in Javascript o ...Show All
dsallow Splitting csv-file
Hello, I’m quite new at vb.net and I have to solve the following problem: I have a csv-file and I have to split it into seperate columns to do some calculations in some of the columns. I think I have to split the file and write the data into arrays. But how does it work I’m very thankful for any help. coln If you are using Visual Studio 2005 look at Using parser As FileIO.TextFieldParser = My.Computer.FileSystem.OpenTextFieldParser("c:\ca\wim\conjurer\work\EventLogExport.txt", vbTab) While Not parser.EndOfData ... do whatever End While End Using rykk ...Show All
polocar File Server in VB?
How can I set up a File Server in Visual Basic, so that when I navigate to 'http://<my ip>/files/example.txt' it corresponds to a file on my disk You can certainly set up IIS to do this...... if you have XP pro and you can establish virtual directories anywhere you'd like on your disk assuming their protections allow that. robinjam, Do you mean to create a web service that provide the file opening and down loading function I suggest you to create a Web Service firstly and register file server settings in your operating system, then program the customer's request in your project. Don't forget to add the server reference before you compile all the project files. Sorry, my initial question was not specific enough. ...Show All
ssfftt Saving forms at runtime??
If I want the user of my program to be able to enter data into a form, and then be able to save that form/data so, if need be, they can come back to the form and change the data without starting over from scratch, how would I do this I am using VB.NET 2003. Is it possible If so, can you point me towards any resources that will show me how to do this Any help would be very much appreciated. For every item that the user adds to your base form you are going to have to keep track of the control and its properties. I would do this by using xml files and serialization. This is nothing different from many applications which save the data that you enter to a database. So, lets save you create a n ...Show All
andrealisp Print graphics that are on the form into PDF
I have placed many objects into the form ,like circle, square, images, etc etc directly on the forms background. Now i want to know how to take printout of them directly into printer or PDF in particular I am drawing the objects in the mouse events, like mouseDown, MouseDown, etc etc through coding. and not in the paint event. Here is what I think you are looking for: http://www.knowdotnet.com/articles/printform.html Thanks a lot m8.Its enough fo me to get started. I actually wanted to only print Drawing objects like cireles, etc etc that are on the forms, and not the controls :P but i guess that i can do it by creating the drawing on a different form. I don't see how that changes things. They don't n ...Show All
Jonathan Wong My.Settings and Hashtable
Does someone have an example of using a hashtable datatype in VS2005 my.settings In the VS settings designer, the field, ScreenLayout is defined with a datatype of hashtable. I created a test application to do this. see the following code: My .Settings.ScreenLayout = New Hashtable My .Settings.ScreenLayout.Add( "one" , "one in hash" ) My .Settings.ScreenLayout.Add( "two" , "two in hash" ) My .Settings.ScreenLayout.Add( "three" , "three in hash" ) My .Settings.Save() When I run the application the first time, I can access the values from the hashtable in my.settings. Yet when run the application the second time and examine my.settings.ScreenLayout ...Show All
