Answer Questions
Suren... ClickOnce update
I have created my project by clickonce technolgy, my project size is 10 MB, My main EXE file is 8 MB, now when I have to update small thing as an other refreneced file , the update should download all 10 MB again ... that is a probelm because my project is going o be 40 MB, Is there any soultion to download the small file changes because EXe file need to download each time :( Can u suggest any solution to minimize the down ...Show All
RFaircloth threading issue Upgrading from vb6 to vb.net
Hi I have a module that handles threading with user32.dll Api. The problem comes when each window calls this pSetForegroundWindow subrrutine to set the Foreground thread. The windows is displayed active but is not refreshed or painted, stays unresponsive. Why is that Can someone help Would I have to declare a system.threading instance to substitute this module functionality And not use user32.dll in vb.net How can I do that I have a ...Show All
hello one BackgroundWorker Thread
What is the reason for creating the 'worker' variable instead of using 'backgroundWorker1' Directly. Some code examples in MS are like this ' Get the BackgroundWorker object that raised this event. Dim worker As System.ComponentModel.BackgroundWorker = _ CType (sender, System.ComponentModel.BackgroundWorker) ...Show All
Juliano.net How to make shortcut of program
Hello How can I create a shortcut of program on Desktop, Start menu, Program Menu and Start Up Menu Thanks & Regards So you want your application to create the shortcuts after it is installed That is, you're not talking about creating them at install time In that case, I guess that in theory you could progamatically generate a .LNK file (shorcut) file and place it in the ...Show All
captain1701 VB 2005 Express upgrade from VB6
I cannot upgrade a VB6 project in VB 2005 Express. The upgrade wizard opens and at the point where upgrading starts it thows and exception: "Unexpected exception occurred during upgrade engine operation: Not able to bind to the source (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE))" I tried the upgrade wizard on a simple VB6 project that contains 1 form with 1 command button on and the same message comes up. The VB ...Show All
pdonelan Finding the greatest and smallest values in an integer array
Hi, I am working on coursework for college, using integer arrays (visual studio vb.net 2003) The idea is a user can enter up to 20 integers into my array, and the program returns various bits of information about the values in the array, such as sum, average, etc. This is all fine, except I also need to return the greatest and smallest values entered by the user. I have been using a bubble sort to find these, based on the idea that after ...Show All
Mats Backlund Find the last item selected in a MultiSimple listbox...
I'm trying to find a way to determine which item was selected last in a listbox with a MultiSimple selectionmode. I'm currently doing it using a mouse point in the mousedown event, but I'd like to find a way to do it in either the listbox's click event or the listbox's selectedIndexChanged event. I'm trying to make a listbox select either "ALL" OR some. Any suggestions on how to do this or another way to do it will be apprecitated. ...Show All
Jeff Savage Textbox background image
Hello all, I've been searching through a bunch of VB websites etc, and I just can't figure this out: I'm trying to make the background image of a textbox one of the .bmp images that the program has (you know how you add item, add bmp. Sorry for such a stupid question! Any help is greatly appreciated -Robert You're right, no transparent background. Follow the link in Jonathan's post to find one that can be transparent. About t ...Show All
Ryan98034 Problem with publishing with Visual Basic 2005 Beta 2
OK, Either I am doing this wrong or there is a problem with the publishing. More then likely I am doing this wrong. this is the error summary form when i try to run the install file: Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\Documents and Settings\glennsams\Desktop\Build-Publish\Publish\Print Pack Listing.application resulted in exception. Following failure messages were detec ...Show All
ryanflucas Generics initialization at declaration time
How would I go about declaring and initializing a generic on the same line Dim myList As New List(Of Integer) = {3, 2} ' Doesn't work In C#, I can do this with (example uses arrays instead of the generics List): int[] someInts = new int[] {3, 2}; Thanks! Maybe something like this for a list: Dim l As New Generic.List( Of Integer )( New Integer () {1, 2, 3}) Or for an array: Dim a() As Integer = New Intege ...Show All
Albert Raiani sprintf -equivalent in VB.NET
hi, I used the following statement in C++ to send some commands to serial device. sprintf(buf,"%c%c%c",0x55,0x52,0x0d); Equivalent in VB.NET i hope string.format. is it correct how to use it for the above case Thank U! Why do you turn your numbers in to strings I"m not sure what %c does, but Dim s as string = string.Format("(0)(1)(2)", 0x55, 0x52, 0x0 ...Show All
rsteckhan Using the progressbar
This is what I am trying to do: Copy a file from my resources to the temp directory. Get the size of the file in my resources in bytes. For every byte that is copied I want to step the progressbar by 1. The part I am having troubles with is getting the size of my file. I want to get the size so I can set the progressbar's maximum property to the same value. Also, would it be a good idea to use a background worker for this Thanks. ...Show All
windisfree Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this Again, I added a test form. This time I pointed to a different data table. The same er ...Show All
ZZ Top Problem with NumericUpDown (VB.NET 2005 B2)
Hi again from Spain. I'm working with a NumericUpDown control and i have this problem. I set a Minimun (1) and a Maximum (200) to the control. If the user write 210 in the control... automatically change the value to the maximum (200). But... i don't want it. I need to show a MSGBOX with an alert and then... allow the user to change the value by hand. How can i deactivate this function A very big thanks from Spain! ;) ...Show All
satishD How to create faster split data ?
I am doing a realtime project. The data is coming every second, some time, i have more than one data in the same time, so i created Split data Class to solve the problem. Right now is working, but too slowly. Can you give me a code to make faster my class. Public Class SplitData Public Event ResultMsg(ByVal Msg As String) Public Event StatusConnection(ByVal counter As Byte) Dim PBCount As Int16 Public Sub New() End Sub Protect ...Show All
