Answer Questions
claydevin How to export the data report to PDF file in Visual Basic
Hi pals, I have to export the data report to PDF file in Visual basic.. If any body have code for this plz send it to me... Regards Raja Prabu Chennai I don't know the code to do this, but you could just install a pdf printer (pdffactory, pdfcreator, adobe acrobat) then just print the report. ...Show All
Ricardo_ES How to sign exe with digital certificate to suppress security warning from IE7 when executed from a client
Hi newsgroup, I searched a lot in many newsgroups today, but now I'm very disappointed not to find an answer to my question. I know, that this is not a VB5 forum, but maybe my problem is useful for .NET users, too. I would appreciate, if you could point me to the right newsgroup, if this is not the right place. An old Server/Client software, developed with VB5 many years ago and still in use, is installed on a server and executed on some clients through a network share. Server and Clients run with every operating system Microsoft has released the last 10 years (Windows 95 to Windows 2003 Server). For many years this approach worked fine. But since the latest Updates from Microsoft for Windows XP SP2, especially IE7, a security war ...Show All
battlex What should I do in order to display Chinese characters in my visual basic 6.0 components?
What should I do in order to display Chinese characters in my visual basic 6.0 components I have already made a change in order to read Chinese characters under regional and language options. I can able to read proper Chinese characters in website as well win32 exe programs. I am developing a program using visual basic 6.0 with MS SQL Server. Basically am using visual basic program with ADO Db Connection and retrieve some data from database which Is in Chinese character(Database in different PC) and I need to show the SQL query result in the in screen. When I do this I cant able to show the Chinese characters instead it show ...Show All
Bodylojohn Posing equations
Hi I run into trouble when I wanted to test equations. Having an array of equations e.g. {"2X+3Y<=20","5Y+7X<10"....} I like to pick the equations out and test them like Dim X As Integer = 5 Dim Y As Integer = 7 Dim Eqation() As Integer = {"2X+3Y<=20","5Y+7X<10"....} if 2X+3Y<=20 and 5Y+7X<10 then .... Question: How can I pick out the equations and make VB understand that its a equation and not a text file and put it in the If function I would appriciate all help I can get, Thanks, Tomas Just because I like complex solutions :) (using the script lib is probably the best solution, but I've never tried i ...Show All
dummies DIM and Private
Hello, someone could me explain what is the diference between DIM and Private variable declaration Thanks no worries, glad I could help you that bit further :-) I belive it have all necessary information for me. Thank you! dim creates an object/variable. Dim number as Integer creates a variable called number of type integer private would pretty much mean an accessor type. So you can have a method (function/sub) which is public (meaning to let other callers/classes to be able to see this method) or private (meaning only this class can see it and no other classes can see it as its private, only keeps itself to itself) So if you declare the variable globally in the class, it will only be able to be ...Show All
johnny_no1_boy Printer compatability library source code ?
Is the source code available somewhere I don't want to emulate the VB 6.0 printer object - I just want to avoid using the stupid event driven .Net PrintDocument - I want to control page breaks myself - like in the VB Printer model. Having the source code would help. Hello Kathleen, Yes, I would appreciate it very much if you could explain the technique used ! Hi DrinkWater, Printer object is written in VB.Net. It is a layer of abstraction on the System.Drawing.PrintDocument that shipped with VS 2005 . It would be nice to have the source code to be able to see exactly how the page breaks are done. That's really what I am trying to emulate but can't fig ...Show All
Aneela_B Scroll event for the ListBox control
I have a ListBox control on a form in a Windows Forms app. The list contains more items than it can display, so the vertical scroll bar appears automatically. My question is, does any event fire when a user scrolls the list I know the TopIndex property reflects the index of the top-most displayed item, but it doesn't appear to have a change event associated with it either. If there are no events that fire when the displayed list has changed (Layout and Paint don't work), does anyone have any ideas on how to detect that in code TIA- Thanks Larry, works like a charm. I needed to sync two listboxes, and this took care of it. Never would have figured that out in 10^6 years... Thanks again- ...Show All
Vijay Guru Prasadh Hide/Show form causes form to reload
Using VS 2005. Creating windows forms application. I have a search form that the user can enter their search criteria and then find records. The records found populate a grid. The user selects a record in the grid and then clicks open record button. The click event of the open record button does the following: Dim frm As New frmRS_ModMenu frm.Show() Me .Hide() 'This is frmSearchForm This works great. The user can enter data for the selected record and then close the form. When the data entry form is closed I do the following: frmSearchForm.Show() Me .Close() However, when I close the data entry form and call show on the search form the form load event fires only on the initial hide/show. This causes the sea ...Show All
CharlieRussell How to call a memory release ?
Hi, I am currently building a VB.Net Application that uses Adobe Acrobat Professional 7.0. The problem is that the amount of memory used while the process is running always keeps growing. And I am sure that Acrobat is responsible for that. So I would like to know how to call a memory release in VB.Net. thanks for helping. Alex I assume that opening and closing a PDF document is done through some objects I have no idea how the Acrobat class library looks like, so I make up some types, like so: Dim doc as PdfDocument = Acrobat.Open("some path to a pdf file") ' do something with doc doc.Close() ' does a close method exist Do you call it ' doc is not needed after this point anymore, or maybe you r ...Show All
tunesmith Visual Studio 2005 Windows Service Starts but Timer does not execute unless in debug mode
This is a very interesting one. I am able to deploy my VS 2005 Windows Service with a release configuration but when I do so, it does not begin to execute the timer until I am attached to the process. The timer is enabled and set to execute every 3 seconds but never does. I am using an account in which the same service works in VS 2003 so I do not think it is permissions. If anyone has any insight into this behavior I would appreciate it thanks... What code WAS changed between 03 & 05 DUring debug, set a break point in your timer event. Does the event ever get fired Hi, I didn't want to start a new post as my problem is related to this. I am using the timer in my windows servi ...Show All
khen Why is debugging (step thru code) so VERY VERY slow?
I'm baffled as to why my debugging is so incredibly slow then I step thru the code line by line -- I have no watches and even the most simple of code (i.e. NotFound = True) will have a delay. I'm not running any virus software to slow it down either, so I'm VERY confused. Doesn't seem to matter if it is a Web App or Windows Forms app. Also, sometimes my debug sessions will step thru faster (still not speedy, but acceptable) than other times and I can't seem to find anything to help me determine why My hardware is pretty good stuff - two 3Ghz Xeon's with 4GB RAM and 10,000 rpm Raptor drives. Any hints on how to make this dog do do of VS IDE any faster Using VS 2005. Rob, A hot fixed was ...Show All
RDH123 Selecting records between two dates
Hello, I'me trying to select the records that are on the database with the field 'Data" between two dates that are inserted into two fields: "DeData" and "aData". I've the following code but I'm getting an error on my SQL statment: Private Sub DeData_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeData.ValueChanged con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=""C:\Programacao\Visual Basic\Inapal\ReportIt\ReportIt.mdb"";" con.Open() sSQL = "SELECT * FROM [RelatorioQuery] WHERE ((Data >'#" & DeData.Text & "#') AND (Data <'#" & aData.Text & "#')) A ...Show All
Kailai HScroll
In switching from VB6 to VB2005, the Scroll bars have apparently changed. The Scroll part works, so I can change a program parameter based on the position of the cursor of the Scrollbar (or using Mouse clicks). I then want to apply the new value, but only at the end of the Scrolling. There is no "MouseUp" available for the HScroll. The "Mouse hover" does work, but it causes unwanted events. Is there a way (after dragging the cursor) to apply the final value - after releasing the cursor I can do it by pressing another button, but that is too late for some cases. Also, is there a way to change the backcolor and forecolor of Scollbars OK...so here is a solution for you...use the hscroll event to set a flag that ...Show All
Sean Shanny count
hi, i am very new to vb and have been looking for a solution for this problem for hours! i think that i have been looking at it for to long and have just completly lost the point of it, so any reply will be greatly appreciated!! anyway, here it is... i have a project where i must display the total number of items from 4 textboxs in between a certain range. for example if 10, 3, 4, 11 are entered into the textboxes, i want to display the total of numbers in between 0 and 5, thus 2 would be displayed. i know the answer will probably be something simple that i have overlooked, but i am near the end of my rope mentaly due to this !!!!!!!!!!!! thanks for the help, but i am still having trouble. here is a snipper of my ...Show All
R.Tutus Help the handicapped.
Good morning gurus, I have the stupid question of the day - in fact, I'm embarassed to even ask it. How do I extract a filename without the extension and set it to a variable For example, I have a file called 123test.ps which is passed to a batch file as %1. I want to set another variable (TESTNAM) to 123test - no extension Something like set TESTNAM=%1 (minus the .ps) TIA I wasn't clear - this is just for a batch file run from the command prompt. It is not for VB, I just could not find a forum that would deal with something like this so I picked VB How would I do this in MSDOS ah! Well thats different. doing it in MSDOS...not sure which forum wo ...Show All
