Answer Questions
Alle migration from TrueBasic
I All I have the following conversion problem. In TrueBasic (an old structured Basic) nested routine were allowed. Look, for instance, the the following Module main Sub XXX() Dim a Sub ZZZ() Dim b End Sub End Sub Sub YYY() End Sub End Module In the above fragment the variable "a" and also "b" are seen from both XXX and ZZZ( this last is the nested procedure) but not from YYY. I do not succeed in reproducing this behavior in VB.net but I know that with all that power ( class, structure , module,etc) it is surely possible. Please, can somebody help me thank in advance Federico ...Show All
loonysan Free Add-Ins VSIP DVD. See here.>>
[I was hoping to add as a separate annoucement at the top of each forum area.]>> Hi everybody, You might like to get the FREE Add-Ins VSIP DVD, i've just got mine. See http://msdn.microsoft.com/vstudio/extend/partnerdvd/ for details. Regards, S_DS ...Show All
Boris Zakharin Date to string
Hi all i have taken a textbox named txt_date where date will be entered. now when i save it into microsoft sql server 2000 it saves one and only date "10/01/1900" though i enter any date in txt_date.text(textbox) now i think i would have to convert the value of txt_date.text in to string from date format. Can anyone pls tell me command line for the same... or there is any other way to save value of txt_date.text directly without converting... thanks & Regards Vimal What do you mean converting the value of a textbox into a string from date It's already a string. The SQL server expects dates to be formatted in a distinct way. If it saves 10/01/1900 no matter what date you input (if you do), it is probab ...Show All
Skipping Rock RichTextbox Copy Files
When I paste a file (xls or Doc) copied from richTextBox (vb.net 2003) to an folder, only appears a "Scrap" file, why Thanks Maintaining the format of the xls file is going to be the trick...you can however easily save file in plain text or rtf formats to a folder and then open them in word or excel... Me . RichTextBox1 . SaveFile ( "C:\MyFIle.Doc" , RichTextBoxStreamType . RichText ) What code are you using to "copy" the richtextbox Thanks for the tips! DMan1 wrote: What code are you using to "copy" the richtextbox Simple using CTRL+C or RichtextBox.Copy() rkimble , it means that isn't possib ...Show All
Leon Mayne textbox to *******
got a password textbox linked to my Database. Everything is working fine but i need to password to be ****** out. I'm sure this is easy but i have been messing with it and can't figure it out. Thanks Michael Hi, try setting textbox's UseSystemPasswordChar property to True. [Update: Changed UseSystemPassword to UseSystemPasswordChar, thanks Jared] Andrej Set the PasswordChar property of the textbox to * (or whatever character you want all the letters to show up as). Small correction, the correct property is UseSystemPasswordChar ...Show All
Matt Deane I need to add Time to DB not DateTime
Hi, In SQLServer the table contain Filed type is DateTime to store time. when I tryed to add time to this field the dataset convert my time (HH:MM for example) to DataTime (yyyy-mm-dd HH:MM:SS for example). What I want is to store pure time (HH:MM) only not date and time. Regards Hi .Net uses a TimeSpan structure to store times .. that is the TimeSpan represents the number of ticks since midnight. You could look to store the ticks in the database rather than a string (takes less storage space, faster to work with etc). eg Writing to database ..... = time.Ticks .... note time is of type timespan ... eg maybe derived from myDate.TimeOfDay Reading from database .... time = new ...Show All
Blader Load method.
Hello, I want to hide my main form on a load method, since im unable to startup with modules or classess, i want to set hide / visible to hide the form, so that i can run a logon form. Though everytime i used visible or hide it fails and shows the form... Basicly i want to be able to navigate from one form to the next with the main form hidden untill i need it again. Why does this not work and how to get around it please use simple steps / code to help me, i am a rook. Private Sub frm_main_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Visible = False 'Me.Hide Me .Hide() End Sub it wont work in the form_load method. What happens if you do it in ...Show All
mig16 Best Practices
I was self-taught in programming client/server programs a long time ago. I'm to the point where I'd like to really follow some best practices where I think I am currently not. Please answer me a few questions. 1.) If I have program where certain parts are role based (such as users can only access certain reports depending on their level), do I assign global variables when the user loads the application or do I call the database at the time they try to access the report. In a sense, what are the best practices regarding global variables 2.) I use classes alot for processing data (encryption classes, validation classes, etc) But I don't use classes for storing data. Why do people use classes for storing data Wouldn't that be akin t ...Show All
Ori' How to Multiselects objects that are there on your Form at RUNTIME
Anyone knows how to multiple select the objects that i put on the form at RUNTIME, the objects are mostly of type drawings (circles) etcetc, and may be also controls.... What i want is when i put many objects on the form, i want to multiple select them, bu creating a rectangle arond them, like the same way we do in the .NET IDe's Form designer. and then i want to move the controls / drawing objects that i created after multiple-selecting them, and also apply copy and paste operations on them.... a help of this kind wouldbe really appreciated... How are you storing the 'object' locations, type, etc. When you know where you 'hit' the object, you can 'select' it - you would have to draw some kind of selected mechanism (eg. handles) fo ...Show All
SankaraNarayanan Nagalingam [OTP] VB6 How to Print on Rolling Paper
Hi, I am creating software in Visual Basic 6 for my shop. I owned a stationary + CDs shop. Now I want that every transaction from my customer be recorded in the database. I am creating a simple inventory database application in which stock information and sell information will be stored. But I also want to generate the bills for every transaction. Now here comes the problem. I am using Data Report to generates bills but this take to much paper coz some times they (customers) purchase 10 items and some times only 1. So bill length varies with every customer, now I want to use paper roll to print my bills and when the bill finishes the printing will stop automatically. Like the bills on Credit Card Machines. Can anybody he ...Show All
gumtoo Image in DataGridView
Hello! I want to use images/pictures/icons (coming from the ressources) in a DataGridView in a separate field. The picture shown in this field will depend on a value of another field. Can anybody help me Your're correct, the example works, but I added my own datasource to it (Me.theDataGrid.DataSource = theDataSet.Tables(0)). So I think I need to take a column out of this datasource and switch it to DataGridViewImageColumn, and then progress as in the example of MSDN. But how do I do that aaaaaaaaaaaahhhhh H E L P !!! Here's the code <data of the datagrid is coming from an unbound datasource> With DataGrid1 .AutoGenerateColumns = True ...Show All
GeorgeBush Need help.. :/
How to click CommandButton1 in WorkSheet1 with CommandButton1 from WorkSheet2 Thank you We need a bit more information here - what version of vb are you using Assuming it's 2002 or later: Worksheet1 and worksheet2, are those winforms If so, how did you create their instances And would it be ok if you just ran the button handler method Are you writing this code in VB.Net as these forums are intended for VB.Net development and it looks like from your description your using VBA (Visual Basic For Applications) code which is the internal language within Excel as you are referring to buttons on worksheets which definately sounds Excel related. You may find more assistance in following which specifically deals with MS ...Show All
tmk7 While code not executed
I have been staring on this code for a while and have been checking out watch window etc. I just don't get why the code doesn't go into the Bold area. Dim data(9,9) as integer Sub Vullen() Dim Rand As New System.Random Dim i, j, k As Integer Dim voorwaarde As Boolean Dim Imin As Integer For i = 1 To 9 voorwaarde = False For j = 1 To 9 Data(i, j) = Rand.Next(1, 9) While voorwaarde <> True Imin = i - 1 For k = 1 To Imin If Data(i, j) = Data(i, k) Then Data(i, j) = Rand.Next(1, 9) Else voorwaarde = True End If Next End While Next Next End Sub Yes it does, I thou ...Show All
Ricky Patel HTTPListener Authentication
I am in the process of making very basic web server software using a HTTPListener in VB 2005. My question is this: What kind of process would I need to use to allow people to log into the server, thus enabling additional web pages to be viewed Also, how can I ensure that the login details are sent securely to the server bump ...Show All
project2n5e0o1 VB6 interop to .NET webservice client
I have generated a C# client .dll for a .NET webservice. I did this by adding a web reference in VS and edited the .cs file. I have added interfaces and attributes for COM interop. I have it registered on a Win2k machine and cannot access it with VB6. Of course VB6 Intellisense works fine (I'm assuming due to the interfaces). When I run the app, it pukes with 'ActiveX component can't create object'. I understand this to indicate a registry problem, but I've done many REGASM's and GACUTIL's. I have seen many examples of VB6 to webservices, but they all use the MSSOAP3.0 toolkit. I have successfully accessed the webservice with the MSSOAP3.0 toolkit. Is it even possible to hack a VS generated webservice client .dll, and has anyone got an ...Show All
