-
- How to Create a custom caret in a TextBox loading a bitmap from my.resources?
by MisterCandle
- 4 Replies
- Last post
by MisterCandle
- I've been trying to use these functions to create an underline caret out of a bitmap in a TextBox or a RichTextBox, although the caret changes its shape it's not reading the bitmap.
Private Declare Function CreateCaret Lib "user32" ( ByVal hwnd As Integer , ByVal hBitmap As Integer , ByVal nWidth As Integer , ByVal nHeight As Integer ) As Integer
Private Declare F
-
- moWord output to file?
by martinZwiers
- 2 Replies
- Last post
by martinZwiers
- I am using the following code to print a Word doc. to a printer.
the code works fine so far. But the next step is to print it to file
When adding the PrintToFile and OutputFileName to
moWord.Output i'm getting an error stating it can't find the correct printer. Any suggestions anybody
Dim PrintToFile As Object = True
Dim FileOutputName As Object = "c:\testje3&
-
- Random game in Basic
by AangFan
- 1 Replies
- Last post
by nogChoco
- I am making a program that its intention is that of eight objects, it chooses one at random, and that the user tries to advinar, but I do not know like doing this in Visual Basic.
-
- Intellisense Development for a VB.NET Desktop Application
by Talal Shah
- 2 Replies
- Last post
by shoagMSFT
- Hello to all,
I am looking for some way thourgh which I can implement Auto Complete property on a TextBox as the way intellisense works.
But I got no clue how to perform that, can anyone please helpout...
Talal Shah Bukhari
-
- Reflection and Controls
by robcollett
- 2 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hi, I'm trying to use reflection to clone (not create a reference to an existing control) a control and it's properties. I'm using the following code which seems to work fine for text boxes but with some other controls it doesn't work predictably - i.e. controls don't paint properly or don't paint at all. Can anyone advise/help Private Function CloneObject(ByVal o As Object) As Object Dim
-
- Rich Text Box and the Table problem...
by dr.Digital
- 2 Replies
- Last post
by dr.Digital
- Hi... Is there a way to open rtf document containing the table in the RTB. When I do so, simply by filling the RTB with the document, text doesn't fit into the cell. I know that the WebBrowser is able to show table right, but I need to show it in the RTB. Using VB 2005... Any help would be good...
-
- Accessing excel checkboxes
by easterbunny
- 2 Replies
- Last post
by easterbunny
- Hello everyone,
I am having a problem with VB and Excel -- by problem, I mean I haven't the slightest idea of how to do something. Using Visual Basic .Net 2005, I have accessed a Database, and I have read from it. There are several true/false values, and with those values, I need to check/uncheck certain checkboxes within Excel. I have searched for several days, and I can't seem to find a w
-
- Round a "Texbox" answer ?
by Leo552823
- 4 Replies
- Last post
by Leo
- Hi, Could anyone tell me how to round the "Answer" in textbox3.text to say 2 decimal places code so far: Imports System.Math Public Class Form2 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim number1 As Double Dim number2 As Double Dim answer As Double number1 = TextBox1.Text number2 = TextBo
-
- Runtime Reflection
by RoninBreank
- 2 Replies
- Last post
by RoninBreank
- Group,
I think i posted the message in the wrong forum. but here it is.
I have a question about Reflection. I have created two structucture in a module, both accessor of public. i've created a class with one variable called 'v', i'd like to return this v as one of the structure depending on the parameter passed 'theType' but some how when the value is returned to the assinged variable it
-
- ask Question another way!
by Mohsen Kavyani
- 4 Replies
- Last post
by Mohsen
- Hi I want to develop a winform Text Editor in Visual Basic 2005 using Rich TextBox but i have a problem to justifying texts. How can i justify texts using Buttons ( not with shortcuts) thank everyone.
-
- nth root function
by cdalglish
- 8 Replies
- Last post
by rustyoldboat
- I'm trying to code an equation that calculates the nth root of an expression. For example, I want to isolate the variable 'r' in the expression r ^ n = x. ( i.e. "r to the power of n = x"). If n=5 for example, the expression could be written as r = 5th root ( x ). Is there a specific function that does this
-
- Trying to Do an inplace Update of Rectangle Objects stored in generic List
by prodonjs
- 7 Replies
- Last post
by prodonjs
- This is a strange one for me. What I have is a List(Of Rectangle) that are each 200 by 200. I want to be able to go through the list iteratively, change each ones location to being 10 pixels to the right and 10 pixels down and then shrink their size by 20 on each dimension.
Initially, I planned on something like this:
Private Sub prepareMenuSquares( ByRef squares As List( Of Rectangle)
-
- How to insert and select ole object into MS access mdb in VB2005
by Danlo
- 1 Replies
- Last post
by DMan1
- I want to insert jpg format image into mdb and select it from mdb. how to do it
Danlo
-
- Examples on SessionStates. Thanks
by VB,SQL Noob
- 1 Replies
- Last post
by pyeung
- Hi,
i was wondering how to make use of sessions states that does timeout session.For example, a user login to a website, the session stores his login and next time when he reenters the site , user does not have to login again until users logsout.
If user is idle for more than ten mins. session iniates a timeout session.
Anyone can give examples to start from especially for the t
-
- Parameters Collection Editor
by Tracy Laufenberg
- 2 Replies
- Last post
by Tracy Laufenberg
- I have been beating my head over this issue for the past week and I can't seem to figure it out. I am writing a program for our office that utilizes DataSets, DataTables and TableAdapters to communicate with our SQL Server. I am trying to create parameters for one of the Queries through the Parameters Collection Editor but am having a hard time with this. When I setup a new parameter I am specifyi
-
- classfactory cannot supply requested class
by k1dfreeze
- 8 Replies
- Last post
by VeePee
- Operating System Version: Windows XP Home Problem Application Name & Version: Visual Basic .Net 2003 Error Messages: "ClassFactory cannot supply requested class" i have installed everything with no error and when i went to start a new project, i get the above error...i uninstalled and reinstalled multiple times and even used different setup discs and still get the same error...please help!
-
- System.Convert.ToDateTime(string) As Date
by vin25
- 3 Replies
- Last post
by vin25
- Hi All
I have written a code in visual basic 2005 to compare between dates
If CDate (tocomparewith_1 ) >= d1 And CDate (tocomparewith_2 ) <= d2 Then
tocomparewith_1 & tocomparewith_2 are String formats .
d1 and d2 are Date formats.
The string and date are in the following format "MM/dd/yyyy H:mm"
now no matter if i use Cdate (tocompar
-
- Printer compatabilty libary, crash on test pc
by orbitalstarfish
- 3 Replies
- Last post
by orbitalstarfish
- Hi been looking around for some help with this problem, i am using the printer compatabilty libary to upgrade a program i wrote in vb6 it works fine on the machine with vb.net installed and with the printer compatabilty libary installed but the only way i have found to get this to work on another machine is to install the printer compatabilty before install my software.
I have tried setting Mic
-
- Importing text file structured as report
by First in VB
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hi,
I am trying to find the way to import text file which was desined as report, meaning, even though the file is txt, every page contains repeating report header and report footer as everything in txt files are arranged as report with columized data fields.
Can anyone have any ideas
The only method of solution I was able to come up with so far is to distinguish the first character of e
-
- Picturebox
by Brad Corbett
- 7 Replies
- Last post
by Mick Doherty
- I want to allow the user to Zoom in and out on picturebox using percentages. But can't seem to figure out how to do it. I was think you could do it by just setting the size of the Picturebox. But I see issues with the size of the form, unless you can add Scrolling. Has anyone done this before that can shed some light on this for me.. Thanks!
-
- email credentials
by KilroyWasHere
- 3 Replies
- Last post
by iLens
- hi, i have a problem with sending mail via smtp servers that requires authentication. here is the code i use: Imports System.Net.Mail .... .... ..... Dim mssg As MailMessage Dim addressTo As String = addressTo@hotmail.com" Dim addressFrom As String = addressFrom@gmail.com" Dim nc As New Net.NetworkCredential(userName, password) mssg = New MailMessage(addressFrom,
-
- Printform and windows2000
by Rick Simmons
- 5 Replies
- Last post
by JohnHart_MSFT
- I'm getting an error Printwindow entry point not found in user32.dll with my application running on machines with windows 2000. They are all uptodate with the updates and all works fine on Windows XP. I've made sure I put everything as include on the publish. Any help would be appreciated. The date on the user32.dll is 4/21/05.
Thanks
-
- Strange error when initializing RijndaelManaged.
by Crypto
- 2 Replies
- Last post
by Crypto
- I have a VB.NET app that has been able to use the RijndaelManaged class to perform AES encryption/decryption successfullly for over a month. Just yesterday, however, the application began giving me this fatal error:
Unable to load DLL 'bcrypt.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E). at Microsoft.Win32.Win32Native.BCryptGetFipsAlgorithmMode(Boole
-
- Listview icon/image padding
by myoungbl
- 4 Replies
- Last post
by myoungbl
- I am using a listview control as a thumbnail viewer in my VB.NET 2005 project. The form has a SplitContainer with the ListView in Panel1. I'm using the LargeIcon view and associating the LargeImageList with a imagelist which I popupated using thumbnails generated using the image.GetThumbnailImage function. As far as I know the images have no 'built-in' thumbnails.
My problem is that in the
-
- Initialize structure by byte array
by Doron70
- 1 Replies
- Last post
by jo0ls
- I would like to initialize structure by byte array ( ByteArray(9) a Test)
The result is:
var1 = &H 44332211
var2 = &H 55
var3 = &H 66
var4 = &H AA99
var 4 need to be = &H AA998877 instead of &H AA99.
Has someone any idea
Thanks in advance.
See code below:
Module Module1
Public Structure Test
Public var1 As