IDE :: TabStrip Loses HighLight If Tab's Caption Is Removed

Jun 19, 2012

I'm using a TabStrip control in my VB6 app (mscomctl.ocx).(Annotation: to use the TabStrip control add the component: Microsoft Windows Common Controls 6.0(SP6) )When hightlighting e.g. the 2nd tab ...

TabStrip1.Tabs(2).HighLighted = True

and removing the tab's caption

TabStrip1.Tabs(2).Caption= ""
.. tab2 loses its hightlight !!

To prevent tab losing focus I fixed it with the following code:

For Each e In TabStrip1.Tabs
If e.HighLighted = True Then
e.HighLighted = True
End If
Next

Is it a known bug? Here is my vb6 sample project showing how the tab loses the highlight if the tab's caption is removed.

View 6 Replies


ADVERTISEMENT

Way To Have A Richtextbox Display Highlight When It Loses Focus?

Mar 18, 2011

I have a richtextbox, when I leave it for example to go to another panel where I want to manipulate the selected text I can no longer see the selected text. Is there a way to make it still show the highlight?

View 1 Replies

Wpf - Eventhandler Removed If The Control It Is Set On Removed?

Sep 15, 2011

We are developing an application that looks like this: Mainwindow - PaneGroup - Pane

What we want to do is add a handler (AddHandler Pane, AddressOf MethodName) on the mainwindow and throw the event in the Pane. When we want something to change on a collection in the mainwindow, we throw that event in the Pane.

My question is if the pane is removed from the panegroup (doesn't exist anymore), does that handler still live on the mainwindow?

View 1 Replies

Tabstrip In Visual Studio 2008?

Feb 24, 2012

i have convert a project vb project from vs2003 to vs 2008 ....tabstrip is vs2003 project .....but when is convert the project it is not access that tabstrip method from the javascript..

View 2 Replies

Immediate Window Removed From Menu?

Mar 24, 2009

I was having trouble debugging an app because I couldn't invoke the Immediate window. I finally ran across a keyboard shortcut to invoke it (Ctl+Alt+I) so my 'immediate' problem is solved, but now I'm trying to figure out why the Immediate window option doesn't appear on my Debug menu like it does on my co-workers? (The menu-designated shortcut, Ctl+G also doesn't work for me.)If necessary I suppose I can customize my menu to add it back in.

View 3 Replies

Removed From A Table And Does Not Have Any Data?

Oct 16, 2009

I am using a dataset class, associated binding source, and a table adapter. There is no binding navigator. Inserts and updates work well. However, though deletions look like they are working as they should, when the form is closed the user is prompted with a message do you wish to save data. Upon doing so the error "this row has been removed from a table and does not have any data. beginedit" is displayed.To delete the record I am simply running the following

code:UserRolesBindingSource.EndEdit()UserRolesBindingSource.RemoveCurrent()The form save routine is simply:Try UserRoleBindingSource.EndEdit taUserRoles1.Update(me.dsARMData.UserRoles)Catch ex as Exception MessageBox.Show(ex.message.tostring)End CatchWhen I did have a bindingNavigator on the form, there were no issues with deleting records and doing subsequent saves.. I understand the binding navigator also calls the RemoveCurrent of the binding source, but what else is it doing to not have the error message display that I don't have?

View 9 Replies

Removed Number From List Or Not?

Feb 22, 2012

Here is the code I have amended after getting the answer from previous thread (Spinning Numbers)

I'm not sure if I am removing the random number from the list or not as the number shown in the Label(currentnumber) does not match the one showing in Label1, which is the one I'm using to check which number has been removed.

Private Sub Tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tmr.Tick
'Show spinning numbers for decoration

[Code].....

View 10 Replies

Variable That Never Loses Its Value?

Jun 22, 2010

I sometimes need to retain the values of my variable for a very long time as the same value will get used over and over again until it gets referenced again somewhere down the line and then it changes it value.

So is it possible for a variable to never lose its value even when a form is closed or a sub finishes?

View 9 Replies

Javascript - HiddenField Value Doesn't Get Removed

Nov 1, 2011

I have a javascript function that moves items between 2 select multiple box, when I move item from the source select box to the destination select box, I add the value to my HiddenField so that I can access in code behind, works fine but when I move item(s) from the destination select box back to the source select box, I try to use : hidMemType.value = ""; to clear the hiddenfield. I thought this works but apparently in the event of a postback, the item still gets stuck in the destination box.

// Move items to and fro select box
function move(sourceFrom, sourceTo) {
var hidOutlet = document.getElementById('<%=hdnOutlet.ClientID%>');

[Code]....

View 3 Replies

Combobox Loses Text Value

Mar 1, 2011

I am using VS 2008 to develop a VB application which has a tabcontrol. On the 3rd tabpage is a combobox, set with DropDownStyle as "DropDown" to allow free text to be entered as well as selecting from the loaded items. My application allows for values to be saved to disk and reloaded.

What I'm finding is that when then application is 1st started, if the tabpage containing the combobox has not yet been accessed, and a value is loaded from disk by the application into the combox's text property ( I have verified this using by Debug.Print statement, and using a Watch), when the tabpage containing the combobox is selected (I add a break on the "TabControl1_SelectedIndexChanged" event to check the text value) the text value is cleared to equal "".

[Code]...

View 2 Replies

USB Device Loses Connection?

Apr 19, 2011

Working on supporting a application that connects a digitizer pad to a application. The client said that when the screen saver activates on their computers the digitizer pad looses connectivity and when the screen saver is turned off the pad will not re-sync.Where might i find how to resolve this? We are using the USBAPI provided in visual Basic.net. should we build in consideration for this, or should the API understand connectivity?

View 4 Replies

.net - Removing Controls - Lot Of Buttons On A Form (144) That Need To Be Removed

Mar 11, 2012

I have a lot of buttons on a form (144) that need to be removed. All their names begin with "R". So I used this piece of code.

Sub RemoveBookingButtons()
Dim cntrl As Control

[CODE]........................

However whenever I run this sub function, it deletes every other button starting with "R". better code or point out if the flaw is in that piece of code or it is hidden somewhere else in my program?

View 3 Replies

Decryption Error : Padding Is Invalid And Cannot Be Removed

Apr 23, 2010

I have been writing a security class in my application, I am able to encrypt the string correctly and without error. However every time when I try to decrypt this string again, i get an error with this as it returns the following Padding is invalid and cannot be removed.

Here is the code:

Public Function DecryptKey(ByVal plainText As SecureString, ByVal key() As Byte, ByVal iv() As Byte) As SecureString

Try

[CODE]...

And it provides a stack trace with:

at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)

[CODE]...

I have found simular issues on web, and most of them say that the IV is not the same the encrypted version, but I can confirm that the IV is the same as they both access the exact same variable.

View 1 Replies

Decryption Error : Padding Is Invalid And Cannot Be Removed?

Jul 13, 2011

decryption error : Padding is invalid and cannot be removed.

View 1 Replies

File Removed Error In Published Folder

Mar 13, 2010

I made an app in vb.net express edition after publishing there are many files in published folder, my question is if a user removes any of files in the published folder or replaces it with other files and runs the app the app must show an error is it possible?

View 16 Replies

Removed A Column From A Database And Broke Program?

Feb 2, 2010

I am writing a program using databases and half way though I decided a column I had was irrelevent and removed it from my database. I have gone into my code on my forms and removed all references and removed it from the data table but I am still getting an ArgumentException in an undefined location. Am I missing somehwere that I need to remove this that was automaticaly generated or something?

View 13 Replies

RijndaelManaged - Error: Padding Is Invalid And Cannot Be Removed

Mar 19, 2012

I am using RijndaelManaged to encrypt just 4 bytes of data which produces a 16 byte result (i am using a 128 block size). When I try to decrypt these 16 bytes I get the message "Padding is invalid and cannot be removed.". (The base stream of the CryptoStream is a MemoryStream based on just these 16 bytes).

View 1 Replies

Thread Is Not Being Removed When Removing Event Handler

Aug 22, 2011

I'm developing some code to detect new files in a directory and signal it in a new thread through the Created event of FileSystemWatcher. While testing this I noticed that after I removed the eventhandler from the event the thread that was being used was not closed. Why is that? Am I doing something wrong when I'm removing the eventhandler? [code]So first I start off clicking Button 2 to start the event handler. I copy a xml file to the Temp folder and the event will trigger and set the name of the thread. After that I will click Button 1 to remove the event handler. If I then pause the execution the Thread "UpdateSomething" will still be there.

View 1 Replies

AcceptChanges: DGV Loses Selected Rows

Aug 19, 2011

I've got a DataGridView that has a DataTable as the DataSource. If the user has rows selected in the DataGridView, calling AcceptChanges on the DataTable will clear the selection (highlight) from those rows. Can this be prevented?

View 6 Replies

Asp.net Control Loses Its Property Values?

Jun 3, 2009

I'm writing a custom user control for my asp.net site, for storing datetimes. It has two properties:

Private _includeTime As Boolean
Private _value As DateTime = Nothing
Public Property IncludeTime() As Boolean

[code]....

I call my custom control in this way:

<my:DateTimeInput runat="server" includetime="true" ID="txtWhen" />

This sets the includetime property correctly.In my backend code I also do this on page_load:

txtWhen.SelectedDateTime = now

When I step through with the debugger, I see that the property gets set, BUT when the page_load of the control itself loads, the property value is reset to nothing!

The page_load of the control:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lbltime.Visible = IncludeTime
If SelectedDateTime().CompareTo(Nothing) > 0 Then

[code]....

View 2 Replies

Database Loses The Stored Information?

May 7, 2011

I am working on login and registration page in vb express 2010. I have connected access 2007 database with my project and when I register as a user, it stores information to the database successfully and I can log in with that id as well. But when I close that project and reopen it, the same exact id won't work and the information in the database disappears.

View 1 Replies

Form Loses Focus After A Messagebox?

Feb 13, 2012

I have a form which contains a progressbar and a Listbox which update as the code runs through and performs some sometimes time-consuming calculations.

At one point in the code, it breaks to ask the user to enter a number using :

Usedefault = MsgBox("Do you want to use the default value of " & Default_No & "?", vbYesNo)
If Usedefault = vbNo Then

[Code].....

this works fine but I find that once the data entry is complete, and the code continues to run, the form loses focus and the progressbar and the Listbox updates cannot be seen until the code finished its calculations.

View 1 Replies

Graphics.DrawImage Loses Resolution?

Dec 21, 2010

Graphics.DrawImage loses resolution

View 13 Replies

Print Dialog Loses Focus

May 4, 2011

I have a form with a "print" toolstrip button. When I click that button I run the code shown below. The print dialog box appears. The title is dark blue seeming to indicate it has focus. The main form is lighter blue indicating it does not have focus. But hovering over the "Print" button (or the cancel button) does not cause it to change color. If you click on the print button, then the color changes and the second click causes the appropriate action. Same with the cancel button. If you click on the dialog label or on the main form the only thing that happens is the print button will then become "active" and a click there then works. If you click on the main form once, nothing happens, but if you click on it a second time you get the "bonk" sound indicating you ae clicking on the wron modal. As if this isn't strange enough, this action just started recently. I made a few unrelated (as far as I can tell) changes, and discovered this action.[code]....

View 15 Replies

Remove NotifyIcon When Program Removed From Within Task Manager?

Mar 5, 2010

I have an application that's using NotifyIcon control. Everything is fine except when I exit the application by the Task Manager, the icon is still in the "system tray" area. I want it to disappear once I exit the application by the Task Manager. [code]...

View 4 Replies

Textbox Control (Still Showing After Removed From Design View)

Jun 16, 2012

I created a textbox control on a form and I gave some integer value to it from runtime but after sometime i removed it from design and code also.. But when I run program its still showing with that integer value. So what should I do. How should I remove that control?

View 2 Replies

VS 2008 User Values Added And Removed From Listview?

Mar 22, 2009

I have a list view with 2 columns (Prodduct and Price). I want the user to be able to add there own values to the listview and have them save so that they will always stay there.I would also like users to be able to delete specific items from the saved list.

The values added to the colums are paired, and must stay together, as one value would be a product and the other a price, So they must, stay together. as a pair

View 6 Replies

VS 2010 Removed Controls From Form Still Showing In Properties?

Sep 17, 2010

I've removed a few controls from my form, but they're still in the properties. I've looked in the Document Outline, but nothing. How can I remove them (save)?

View 6 Replies

Set The Caption Of The 10 Buttons?

Sep 21, 2010

if i have a database table with two column btnid and btncaption and i have a form with 10 buttons how can i make function to set the caption of the 10 buttons depending on the btncaption column?

View 14 Replies

C# - Object Being Passed Using Webmethod, Loses Some Values But Not All?

Jun 22, 2011

when calling a webmethod

[WebMethod]
public Profile synchronize(string MID, DeviceUploadData data)

The object DeviceUploadData has many properties, and a few of them are array's. My question is about the array specifically. It loses it's value once it's received on the webmethod end.This is the property inside DeviceUploadData

Private data() As DataObject
Public Property Data() As DataObject()
Get

[code]....

So the DataObject is populated with data, then once passed, on the other end, some of the DataObject properties are no longer populated. I haven't included the other properties in this example.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved