Answer Questions
Oleg Ignatov Print from textbox
Does anyone know how to print i vb I have information some textbox on a form which i want to send to the printer. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbconprintsupport.asp . You could also check out the PrintForm component from the VB Power packs Best regards, Johan Stenberg I want to just simply print text that is within a textbox on the form Does anyone know how to to that Thanks!! threads merged Stop, step back a bit, take a deep breath. The problem is that you are using a piece of code without any understanding of any part of it. Hacking on it is not going to get you anywhere, very slowly. Start again: you w ...Show All
RenegadeMind updating data grid connect to ms access database.
I have a ms access database with a table consisting of the fields user_id and password. i have a datagrid binded with this information that is displayed in a vbform. i have added an "add" button. when i press this i want the new data entered in the datagrid to be updated in the msaccess database as well as the datagrid. so far i have the following code: Dim connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source = C:\Documents and Settings\Owner\My Documents\Telephone.mdb" Dim con As New OleDb.OleDbConnection(connStr) con.Open() Dim objcommand2 As SqlCommand = New SqlCommand objcommand2.CommandText = "INSERT INTO Users" & _ "(User_ID, ...Show All
R.Tutus Error in Connection String
Dear All, I'm getting error with the following code. can anyone shortout the problem please. Your help is highly appreciated. Code: and calling procedure of this function as Code: Private Sub PopulateProductData() Dim ProdID As Integer = CInt(txtProdID.Text) Try Dim ProductData As TechManagement.DBComponents.ProductDB = New TechManagement.DBComponents.ProductDB Dim myProductDetails As TechManagement.DBComponents.ProductsDetails = ProductData.GetProductDetails(ProdID) txtProdName.Text = myProductDetails.ProductName MsgBox(myProductDetails.ProductName) Catch e As OleDbException MsgBox(e.Message) End Try End Sub Public Function GetProductDetails(ByVal productID As Integer) As ProductsDetails ' Create ...Show All
Tryst Hi, Tailor POINT is a STRUCTURE with more than one property and is treated as a single item.
Hi, I'm having trouble coming to grips with the use of arrays. This time I need to put a number of co-ordinate Points into an array. for example startPoint = 50,180 endPoint = 100,180 I've initialised my array : Dim arrowCoord(,) As Point = New Point(,) {} Then tried to input data with this. arrowCoord(0,0) = (startPoint, endPoint) I'm getting the error message that a ')' is expected at the comma between startPoint and endPoint. Would appreciate any advice. Whe I get this right I need to write the data to an Sql table, so would appreciate a little help with that also, as far as the extracting the data from the array. Thanks Tailor Tailor wrote: From my & ...Show All
Douglas H. Troy Webbrowser control (x reamaining items) status bar implementation
I am in the process of developing an application that uses a webbrowser control to display google maps. when I load the maps under IE6 I notice that the status bar displays something like "(x Remaining Items) Downloading Picture http://...." x is the number of items being loaded and decrements to 0. I am wondering if there is a way to display this same kind of status with my webbrowser control. i currently have a status bar attached to the main windows form that uses the standard code shown below. the current status bar only shows status until the main page is loaded. If someone could get me started in the right direction or provide a code snippet i would appreciate it. Thanks Jim Groleau Private Sub WebBrowser1_Navi ...Show All
Arczi999 VB .net tab control multi line...
Ok, I am creating a new version of a program in vb .net. The main page has a tab control with 7 tabs on it to select your general category. However, the two word text does not always fit on these tabs. I want the text to wrap instead of just going out of view off of the tab. However, there is no wrapping option or way to get the text on multiple lines(like there was in VB 6), except for forcing it by inserting a new line character into the text. But if I do it that way the text is no longer vertically OR horizontally centered and looks very bad, and is plainly unacceptable. So, is there any way to get the text on multiple lines on the tab control I have been looking everywhere for this option and it is simply not there. Thank you. ...Show All
ChristianEhrlicher Crystal Report help!!!! PLEASE
Okay, I am currently making a mailing letter in Crystal Report that will be auto filled by my database. Here is what I am running into. I have set my database up to collect and store the indivuals first name and last name in seperate fields. What I am trying to do is make it to where I don't have alot of spaces whenever I between my FirstName and LastName in the crystal report. For example: (This is what I want it to look like) Joe Dirt 12345 Summit Drive Test, GA 789456 Dear Joe Dirt, (This is what I DON'T want it to look like) Joe Dirt 12345 Summit Drive Test , GA 789456 Dear Joe Dirt, ** My fields in in Crystal Report have to be so big because I want every name to fit inside them. Is th ...Show All
DaltonF Setup Produced By "Build, Publish" Gives Error After I Uninstalled VB With CD And 'Removed' All Installation CD Programs
Hello, I created a setup file from my application. I did this because I want to put my application on other PCs without installing Visual Basic. I basically want to just run the applicatoin on other PCs. What I did to create the setup file was within VB I clicked "Build" then "Publish." I then wanted to test the setup file on my PC, so I removed everything given to me by the VB installation CD! So, I uninstalled VB using the installation CD. But, I also had to go to the control panel to remove some of the programs that the installation CD gave me. I did this because the uninstall via the CD left things on my system that the installation CD gave me. When I was done, the control panel, remove programs listing ...Show All
beto81 save dialogue box using designer in Visual Studio 2005
With the toolbox you can drag a SaveFileDialog to the area below the designed window, but then what Where do you put it into the design How do you use the toolbox to create what you would create manually with this code: Friend WithEvents SaveFileDialog1 As System.Windows.Forms.SaveFileDialog Me .SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog Private Sub Button2_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button2.Click Dim Error_pass As Boolean = False SaveFileDialog1.CreatePrompt = True SaveFileDialog1.OverwritePrompt = True ... Thanks! Steph OK you can drop the control it onto the form at desig ...Show All
rmcbeth Upgrading Sage Data Object code to VB.NET
I have some VB6 code which sends an invoice to Sage Line 50 V10 and am desperately trying to upgrade this to VB.NET. The trouble is that I am getting the error, 'System.Reflection.TargetParameterCountException: Invalid number of parameters at Microsoft.CompilerServices.LateBinding.LateIndexSet(Object o, Object[], String[] paramnames)...' Public Shared objInvPost As SageDataObject100.InvoicePost 'This is declared globally Imports SageDO = SageDataObject100 ... 'Ensure that we are reading the correct record from objSalesRecord. objSalesRecord.Fields.Item("ACCOUNT_REF").Value = cboAccountRef.SelectedValue objSalesRecord.Find( False ) 'Create instances of Objects. objInvPost = WS.CreateObje ...Show All
Espriella Graphics in VB.NET- How do i draw to a form without using onpaint method?
Hey you! I want to draw something on to a form but i don't want to use onpaint() method. I don't know how do i do Please help me if you can! Thanks very much! dvl_vn @ Ghaby I haven't played around with it yet, but the XNA Framework is perhaps something you could look at - it's a 3D game-creation tool but 3D games are basically " running around in a 3D map " so it may offer you an easy and far more powerful way to take your map tool into the third dimension (2D is of course also part of that). See the XNA forums in the index for more info: http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=20&SiteID=1 Hi Richard I'm developing an application that draws a map using pol ...Show All
sxf Passing things from Form1 to Form2 and back
Hi everyone ! Imagine this : I have 2 Forms: Form1 and Form2 Form1 is the startupform and holds a button, Button1 , to show Form 2. Code: Dim F2 As New Form2 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click F2.Show() End Sub On Button1_Click an new Form2 is shown. Form2 holds a button wich should change the text of Form1: Code: Dim F1 As Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click F1.Text = "hello" End Sub This gives the result : Object reference not set to an instance of an object. I know i ...Show All
ziman how to uninstall my own application
I have a vb.net program that runs invisibly - no task bar, no icon, no VISIBLE form. It can't be shut down by the user outside of the standard windows shutdown. This part works. If the user wants to uninstall this program, they need to open up the application and enter an uninstall code that turns off the program so it can be uninstalled. A tray icon is not an option. QUESTION: If I have a program that is running invisibly, is it possible to click an icon that makes the program become visible Well, you're dealing with communications across processes - you can look into mutexes - you can probably do something smart with one of these: http://msdn2.microsoft.com/en-us/library/system.threading.m ...Show All
polymorphicx Problems with WebBrowser objects...
Hi there! Could someone please explain why the following three functions return the same value WebBrowser_instance.Document.Body.GetAttribute( "scrollHeight" ) WebBrowser_instance.Document.Body.GetAttribute( "clientHeight" ) WebBrowser_instance.Document.Body.GetAttribute( "offsetHeight" ) I really need the object to return the right scrollHeight values. Regards, O That's exactly my point!! The numbers should be there... I just don't get it .... if there's an object that has (has got to have) an event handler that sets the scroll bars dynamically to some value (relative to it's contents), there MUST be some throwback for the scrollbars. !!!! ...Show All
AlexBB Listing SQL Server Database in a list box VB 2005
Hi everyone, I am wondering if anyone can give me a hand with this... I know that in VB 6.0 and even VB .NET 2003 one was able to display SQL Servers and Databases using DMO... but I don't think this now applies to VB 2005.. I am capable of displaying available SQL Servers using SQLDATASOURCEENUMERATOR.. however when I cannot find a data type or namespace that will enable me to display an SQL Server's Databases in a list box... anyone can give me a hand .. In advance thank you all. Hey Amedilyas, how about if a connection has not been made to the server I want when the user enters a server name, a list of databases on the server is returned.. if the above is correct then there are a co ...Show All
