-
- Forms Loose colors in Class Library
by TestEngineerScot
- 2 Replies
- Last post
by TestEngineerScot
- I converted an operational VB.Net windows application with 3 forms to a Class Library that is referenced from a small application with a Main Routine. The main routine calls the DLL and runs the form/s. I noticed all my colors disapeared on the forms for example the blue around checkboxes and the blue groupebox title and other control colors which are all bland now.
I think it has to do with t
-
- How to import a text file into a database
by Rich6782
- 4 Replies
- Last post
by Rich6782
- Hi All,
I have a comma delimited text file that I need to import into a predeifined Firebird database. I'm connecting to the database programmatically, and need to import each comma delimeited field into the corresponding database table. Pleas help , I've been struggling with this for weeks....................
Thanks
-
- Launch delay / DotNet app with calls to microsoft.interop.office
by MatthieuDemoulin
- 14 Replies
- Last post
by MatthieuDemoulin
- Hi all,
I am experiencing a bit of a problem ...
We got an application to automate the opening of Word and Excel documents with encryption (& password).
The app check a SQL database in order to get the appropriate password (relative to the path and name of files) and then launches Word or Excel with the password as argument, or with a blank document (if no arguments passed).
-
- Visual Basic 2005 is not intuitive
by Captain!
- 11 Replies
- Last post
by DiverKas
- Speaking as someone who has used a number of different isotopes of Basic over the years, I have to say that I think Visual Basic 2005 is not particularly intuitive. No doubt there are reasons for various changes that hvae been made, probably to do with Net use, but I find that the language seems unecessarily convoluted and is missing many useful commands, features and procedures that were availabl
-
- Calculation with a formula from database
by JimTan
- 5 Replies
- Last post
by DigBoy2000
- Hi, I have a database table with qty, and formula fields. Sample of data as below, qty(integer)------|-----formula(varchar(45)) ========================== 20 --------------|----- +2 20 --------------|----- -2 30 --------------|----- *2 40 --------------|----- /2 20 --------------|----- *2.2 20 --------------|----- +2.2 I had create function that first uses to determine the maths sign then perform
-
- PrintDocument.OriginAtMargins problem
by myoungbl
- 8 Replies
- Last post
by myoungbl
- Hi.
I'm currently converting a VB6 print function into VB.NET (2007 flavor). I am not using a print preview. Just the PrintDocument object.
I'm trying to get the page margins on the new version to match the margins on the old versions. It's my understanding that the margins are in 1/100's of an inch. With this in mind I set the margins like so (PRN as PrintPageEventArgs):
-
- Get print tray media
by sedwards
- 1 Replies
- Last post
by Bruno Yu - MSFT
- We print most of our documents to plain paper, but have some that must print to perforated paper. We have the bins for the perforated paper set to a type of "pre-punched" to differentiate. (this setting is similar to setting one bin to letterhead). How do I get that media type setting for each tray on a printer so I can tell which tray to print each document to
-
- ComboBox help
by crzyone9584
- 10 Replies
- Last post
by LeonCS
- I'm working on a custom web browser for the fun of it. I was able to get it to go to websites and to view them and the basic button functions. The thing i need help on know is how to get the website i type into the combo box to say http://www.siteityped.com and to have the saved into a file or some place so when i click the down arrow on the combo box it will be there. Also i would like to know ho
-
- Edit properties of controls on other forms
by Mr_White
- 14 Replies
- Last post
by Dave299
- I understand how to change the value of a textbox by making a new form in the code
Dim Form2 as New form
...
Form2.show()
This however does not work for me, i need to edit existing form controls that i make in the designer.
So instead of making a new form in the code, i wnat to just edit one i already made. Right now i can only get the code to run when I
dim Form1 as new Form
-
- Print graphics that are on the form into PDF
by Harshil_Patel_5326c0
- 10 Replies
- Last post
by ShadowMan
- 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
-
- MP3s
by Zooz
- 9 Replies
- Last post
by Zooz
- How to run an mp3 file in the same window(NOT TO OPEN windows media player or real player etc...) by using a play click and how to stop it by clicking a stop button, and also a pause button. I need full code for who know.
-
- Please Help, Need Code!
by Primordial_Soup
- 14 Replies
- Last post
by Primordial_Soup
- I admittedly know nothing about computers or programming. That said, I'm taking a class in Visual Basic...yes, this is retarded baby stuff to you guys, but I am lost. I have the Microsoft Visual Basic 2005 Basics book by "Knowlton-Thompson-Hunt-Collings". I am behind in my projects, I had to miss a class because my sons' school closed for parent-teacher conferences and next week I am goi
-
- Creating an Email Client
by GriffinSmith
- 1 Replies
- Last post
by Bruno Yu - MSFT
- How would I go about creating a MDI email client with Visual Studio 2005 using Visual Basic
-
- Terminating class from constructor?
by dimir
- 8 Replies
- Last post
by kleinma
- Im implementing a security procedure to my class in the sub new (constructor) and I want that if the validation is not correct, to cancel or not let create an instanse of it, how can I do this
-
- Text Recognition
by Smit
- 4 Replies
- Last post
by rkimble
- Hey
I don't know if this is the right spot for this question, if this is the wrong place please tell me.
I want to write a application in either C# or VB that can read text out of windows, that are not part of my application. I was thinking about something like making a screenshot and then use a textrecognition or something. But maybe easier way to do this.
I also can read oth
-
- How do I register a VB COM dll on another machine?
by Christopher J
- 7 Replies
- Last post
by Christopher J
- Hi all, I have a bit of a problem. I have a created a VB COM dll (Class library built as a COM) and i cant seem to get it to work correctly outside of my machine. The first thing I should mention is that is does work when I get it directly that is if my VB app calls the DLL seems to work fine, as long as the DLL is in the same directory. However I have use the Library in "ANSI C" and m
-
- Indicate Mandatory TextBox
by VCWinUser
- 8 Replies
- Last post
by VCWinUser
-
- adding all rows manually from a database
by Deluxe01
- 5 Replies
- Last post
by Jeremy in Japan
- I am trying to add all the rows in my access database to my datagridview manually. After that is accomplished I am going to fill the datagridview with empty rows if needed. Could someone walk me through the steps of adding all my rows manually I have only used databound datagridviews before. Thank you very much
-
- Retrieving variables/data
by Bradley Reynolds
- 13 Replies
- Last post
by LeonCS
- I can simply duplicate data/variables from one textbox to another on the same form. However, I can't seem to duplicate a data/variables from one textbox on form1 to one texbox on form2. I thought that I could simply code in form2 under textbox1 - me.textbox1.text = form1.textbox1.text. What am I missing
-
- Problems with the timer event Tick
by Kira_26
- 2 Replies
- Last post
by Kira_26
- Hi everyone,
I am currently doing a simple game to generate 3 random numbers using Timer class. However, I encounter a problem regarding the Tick event. The program is supposed to roll the number when I click certain button in window form and stop after 4 secs. The thing is I don't know how to stop the timer after certain amount of time. I have tried changing the interval property of the timer
-
- Equate
by JOHNLOGIC
- 6 Replies
- Last post
by ReneeC
- In the old days of programming we could do this:
x equ eval(hcx, hs, highest, xcv, tyh1, typeband...)
Then in the code when you wanted to call the eval sub with those parameters you just type:
x
The complier would substitute the eval(hcx....)
Is there something like that in VBE
Thank you.
-
- This is P***ing me OFF.
by InoSS
- 6 Replies
- Last post
by Spidermans_DarkSide
- My Website is http://semi-peers.selfip.com/HS/Publish.htm I host it on my own computer I access the site from my laptop which is not connected to the network and i can gain acess the site with no problem One problem When i run the software on my computer which is a desktop it works fine bUT When i put it on my laptop it gets this unexpected error It has .net framework and everything Somone plea
-
- using a masked text box for dates
by tattoo
- 5 Replies
- Last post
by tattoo
- I am using a Masked text box to enter a date on my form. (VB.Net over SQL Server 2005.)
It works great for entering the date but lousy for re displaying it..
eg date; 01/01/2007 comes back as 11/20/07.
The text box is bound to the database field and the db Field is a date field.
Is there a way to check the date before it displays in the box
The only reason I use
-
- searching a DLL
by SkiesOfBordom
- 1 Replies
- Last post
by ReneeC
- how do i open a DLL in VB.net and dump the contents into a variable
i tried the streamreader and ReadAllText, but all they returned was "MZ"
here is the first line of the DLL from when i open it with notepad:
MZ yy ©o @ a o ¡¯ I!©oLI!This program cannot be run in DOS mode.
how do i get it to read all the lines
-
- Avoiding duplicate reading of image files
by ronks
- 3 Replies
- Last post
by ronks
- If an application needs to display a JPEG, TIFF, or other image file on disk it uses something like picBox1.Image = System.Drawing.Image.FromFile(myFile) to read the file.
If it needs to retrieve image data like Exif or IPTC fields from the same file it uses ByteArray1 = My.Computer.FileSystem.ReadAllBytes(myFile) to store the data in a byte array.
Is there a way to eliminate that time-co