Answer Questions
GregMaxey rich text box control cannot paste
rich text box control cannot paste when i select any thing(it may be image or text from internet explorer) and paste it in a msword it has got pasted including image and text when i do the same copy paste in my application which contain the richtextbox control i am unable to paste the images and i can paste only the links of the images can any one help me in pasting the images and text Hi, Try this, Before you run your program hit the PrintScreen button on your keyboard. Now run the program and left-click in the richTextBox. PASTE or Ctrl+V and you should get the window image within the richTextBox. This works for me without altering any of the richTextBox properties. Regards, S_DS ...Show All
AmineYA Is there any way to autoclick with the mouse?
Hi. It's me again. I was wondering, (and I'll probably get a simple answer that I could've figured out on my own.) is there any way to make the mouse move to a certain point on the screen, and then click by itself Thanks. Thanks! I need to create a program that will be able to retrieve data from a gaming software. Such as card values for 5 cards on the screen in another program. I noticed you put up a nice procedure on how to make autoclicks on other programs and just thought you could explain how to retrieve data from another program. You can do a small program with a timer and use the Cursor.ToString() to change the text of your form every 10mseconds. Then ...Show All
mcdonaldn create a highscores in vb 2005 express
In visual basic 6, i created a highscore system, by getting the players name (from a string variable) and getting the score from the intScore variable. At the end of the game, these where checked against previous scores (in a text file) if they where greater than any of the scores, then these new values where written into the text file. I tried a similar approach to this for a visual basic 2005 (express) game, however, this does not work... any suggestions (i can post my code for the vb6) well what have you tried in VB2005 The code in VB for file handling - will be different from VB6. The code for handling string and integer variables should be almost if not identical. I think showing the code and detailing what ...Show All
TJT DLL Creation
I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All
LtScho command buttons
Hello! How can I assing icons to command buttons Set the Image property. Hi, here is an example from the msdn with example-code: http://msdn2.microsoft.com/en-us/library/system.windows.forms.buttonbase.image.aspx ralph ...Show All
MLG_CSE Printer Compatibility Library
The Print Method offers no provision for the ';' syntax of VB. While I understand that adding new syntax is not possible what can work is the ability to print lines without a carriage return. For example Object.PrintNoReturn("Hello") Object.PrintNoReturn(" ") Object.PrintNoReturn("World") Object.Print("") Would work the same as the VB6 code Object.Print "Hello"; Object.Print " "; Object.Print "World"; Object.Print In addition look at the IL of the library I notice you are using stringbuilder The original procedure looks something like this If you made builder1 a private member of the class called PrintBuilder (or whatever your team chooses) Then PrintNoReturn can work like this. ...Show All
technica ADO.NET book recommendations
If it is not appropriate to ask about book recommendations on this forum, please let me know and I will withdraw the question. Can anybody recommend what I would consider a good book on VB8 and ADO.NET If it exists, such an animal would have the following qualifications: does NOT simply repeat what is already available from BOL, MSDN, etc., does explain how to programmatically use ADO.NET rather than just demonstrating how to use wizards, does explain when, where, why and how to use DataAdapters, DataSets, TableAdapters, DataTables, etc., does provide real world examples, does also include useful info I haven't noted here. My response has been moved to http://forums.microsoft.com/MSDN/S ...Show All
CemSharp Allocating memory space for data coming back from a device
First off ... I'm a newbie to VB.net but I am an experienced programmer on another language so I understand most of what I'm doing in VB although no well versed. I'm writing a VB.net console app to read data from a device using a C++ function but I don't know how to do what the manual is suggesting which is: To allocate enough space, use sizeof(Transaction_Struct) multiplied by numbers of transaction. Allocate a little bit of extra space in case extra transactions occur between the function to get the number of records and the function to read the number of records. On my code below, numTransToRead is retrieved by using another C++ function, not shown, to get the number of records in the device to read. I'm guessing that my ByRef ...Show All
Kiranvukkadala Sum on a listview
I've the following code to populate a listview with records from my database: Private Sub preencherListView() Dim lstItem As ListViewItem Call conexao() sSQL = "SELECT * FROM [TempoTotalFamiliaQuery] WHERE (Data LIKE'" & dtpDataRelatorio.Text & "')" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill(ds, "TempoTotalFamiliaQuery") For i As Integer = 0 To ds.Tables("TempoTotalFamiliaQuery").Rows.Count - 1 lstItem = New ListViewItem() lstItem.Text = (ds.Tables("TempoTotalFamiliaQuery").Rows(i).Item(0)) lstItem.SubItems.Add(ds.Tables("TempoTotalFamiliaQuery").Rows(i).Item(1)) lstFamilias.Items.Add(lstItem) Next l ...Show All
Philos100 Big buffers for GZipStream
Hi, im using the following code to compress a file into a memorystream: Dim zStream As New MemoryStream, buf(fileSource.Length) As Byte Dim zipper As New GZipStream(zStream, CompressionMode.Compress, True) fileSource.Read(buf, 0, fileSource.Length) zipper.Write(buf, 0, buf.Length) The problem is, that if the file is about 10MB, then my application will utilize up to 10MB for the zStream, which is why I would like to split the operation up into chunks, so i could write to a file, as the operation goes on. I want to read i.e. 10K's of data from the file, compress it, copy the zStream to a storagebuffer, and clearing it while performing storing operations from the storagebuffer when it reaches i.e. 32K. Is this doa ...Show All
RickGaribay.NET EndEdit returns "Column 'No' does not allow nulls." error...
I have a table called "items" with a primary key called "no". I cannot display the variable "no" in my form. I tried setting "visible = false" but that doesn't work. I am using a form field called "nokey" instead. Everything works fine until I try to insert a record. Here's a sample of the code: Dim newItemsRow As SignsDataSet.itemsRow newItemsRow = Me.SignsDataSet.items.NewitemsRow If (Insert = True) Then Dim MaxKey As Integer = 0 MaxKey = GetMax("Items") MaxKey = MaxKey + 1 Me.NoKey = MaxKey.ToString newItemsRow.No = Me.NoKey newItemsRow.Nm_Latin = Me.Nm_LatinTextBox.Text newItemsRow.Nm_Ang = Me.Nm_AngTextBox.Text ne ...Show All
pavvu_kk Change String to Integer...error msg
I have a setup dialog with some text boxes into which the user has to put certain strings that are parts of a file name. They are putting those in manually. So if the file name is "IRS001234.tif" then one box contains the prefix "IRS", one the leading zeros "00", another the main number "1234" and a last the "tif" document extension. The "." is a freeby. The user is then prompted to put the whole number in again in a fifth text box to verify he or she got all the parts correctly entered above. I am trying to create a formula whereby when the user clicks "ok", the program adds up the number of letters in each box and compares them to the number of letters in the verifi ...Show All
cverdon Reading a media serial number in eVB
I am developing an application for a Windows CE device (HPC2000) that will run on a compact flash card. I want to protect the application from piracy by embedding the ID of the flash into the code for each card I supply to my clients. Has anyone found or developed a routine to read the serial number from within Embedded VB (3.0) Probably best addressed by the smart device forums which deal specifically with device development using C# / VB.NET http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=11&SiteID=1 ...Show All
Rikard in vb.net 2005 i want to select all my commented text and delete them
in vb.net 2005 i want to select all my commented text and delete them is there any short cut key or procedure to slect all my commented text in the program and delete them since i have many number of commented text in my program *gee* just think of it: is there any possibility to multi-select text at all If you hve the answer for this question, answer this question: can you multi-select in order to delete something Regards yes u can select multi text by holding down control key and selecting multi text ...Show All
nlarkjason sorting the files in a folder
how to sort the files in the folder according to the date modified/written i am getting the file (code snips) Dim dDir As New DirectoryInfo(pathIssueFile) Dim fInfo As FileInfo() fInfo = dDir.GetFiles("*.txt") is there any methods to sort the files [according to the file modified ] while Getfiles.. or any other methods.. avilable.. thanks in advance..... Ok this should be ok with 1.1 For MSDn documentation see – http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemarrayclasssorttopic3.asp Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim DirInf As New IO.Dire ...Show All
