Using The "UseWaitCursor" Property Of The ReportViewer But It Shows The WaitCursor All The Time?

Jul 19, 2010

I posted this in the "Reporting" section someone knows of some event that takes place AFTER a CR is completely done loading. Here is what I posted in the "Reporting" section.

I have multiple forms where I use a background worker to perform my code while my main thread displays a "Please Wait" dialog box. I have tried to do this same thing with my crystal reports but it gets through all of the code and closes my "Please Wait" box then opens the report viewer. The problem is, the report continues to load after that point but its through with my portion of the code. I assume the CR itself is retrieving information. How can I display something letting people know that it is working. I tried using the "UseWaitCursor" property of the ReportViewer but it shows the WaitCursor all the time if I do that.

View 4 Replies


ADVERTISEMENT

IDE :: IntelliSense Shows () After Count Property For ListBox.Items?

Apr 21, 2009

I am a student in a Visual Basic class. We were working on a project using the Count property of the ListBox. I'm using Visual Studio Professional Edition 2008. When I enter a line in the editor that looks something like this: If lstResults.Items.Co

IntelliSense will generate a little balloon that says 'Public ReadOnly Property Count() I saw the () after Count and thought that meant that was the proper way to code it. So that is what I did. The code seems to work with ...Count() or just ...Count. I was wondering if there is some reason why the parens show up after the description of the Property in IntelliSense.

View 3 Replies

Place A Time/counter On The Form That Shows?

Jul 2, 2011

I've got a project that generates a sql query and returns the results. I want to place a time/counter on the form that shows how long it takes to return the query from the server. Basically to count up in seconds from 0 while that sub is executing. Would threading be the best way to do this or is there another way that I'm missing?

View 2 Replies

C# - Why Is Attached Property Property Changed Event Only Firing One Time

Nov 27, 2010

I have a listbox binded to a list of objects. For each list item I wanted to have a rectangle whose fill color is determined by a few properties of the binded object. So I did the following:

Made sure INotifyPropertyChanged was implemented on my object.Created a class to expose the properties I am interested in as attached properties.Binded the properties of the object to the attached properties of the rectangle Created a style that uses triggers to set the rectangle fill based on attached properties.

This works, but only the first time the property of the object changes. After that, the attached properties do not seem to be receiving notification when the data object's property changes. I have double checked and my data object is raising the INotifyPropertyChanged event.

<Rectangle Style="{StaticResource RecordStateRectangleStyle}"
Width="10" Height="10" Stroke="Black"
local:RecordAttachment.RecordState="{Binding Path=RecordState}"
local:RecordAttachment.IsDeleted="{Binding Path=IsDeleted}" />

[code]....

View 1 Replies

.net - Show A Waitcursor While Waiting For A Combobox To Render?

Mar 14, 2012

I have a strange issue when binding a combobox in a WPF window.I am loading a List object, to populate the combobox, through it's .ItemsSource, on Window Load, however, it does not populate.At least, not until the arrow is clicked on. Once the arrow is clicked on, the window freezes up, and after a minute or so, the 4000+ records are displayed in it.Now, the list gets loaded, however, when I click on the combobox it takes awhile for it to render, so how can I show a waitcursor while it is rendering the list?Here's the Xaml for it:

<ComboBox Grid.Column="1"
HorizontalAlignment="Stretch" Margin="3" Name="tUser" VerticalAlignment="Stretch"
DisplayMemberPath="UsersName" SelectedValuePath="UserID" SelectedValue="0"/>

And the code-behind is:

Private Sub CreateTask_Loaded(sender As Object, e As System.Windows.RoutedEventArgs) Handles Me.Loaded
Using New WaitCursor
_LA.Show()
Me.tOrder.ItemsSource = GetOrderList()

[code]....

View 2 Replies

VS 2010 : WaitCursor Doesn't Change The Cursor

Jun 1, 2010

I have a form that asks the user for certain search criteria. Based on this it goes and searches Active Directory for computer accounts. Whilst this search is happening I want the cursor to change to the hourglass but I've tried

Application.WaitCursor=true
Me.Cursor=Cursors.WaitCursor
me.UseWaitCursor=True

Nothing works. The cursor stays firmly as the default cursor.This is the code that calls the form

Dim inputform As New MachineSearchInputForm
If inputform.ShowDialog = System.Windows.Forms.DialogResult.OK Then
Dim PropertiesToLoad As String() = New String() {"name", "distinguishedname", "objectclass"}

[code]....

View 4 Replies

Make A Progressbar That Shows The Load Time Of The Next Form?

Jul 4, 2009

I'm trying to make a progressbar that shows the load time of the next form.I've tried alot of different ways to do it, but it and the speed is always the same whether the next form loads faster or slower.I'm not sure what variables to use or anything.

View 3 Replies

Main Form Shows At The Same Time As Splash Screen?

Feb 16, 2012

My main form shows at the same time as my splash screen.

ApplicationEvents.vb:
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize( _[code]....

View 1 Replies

Program A Countdown Timer That Shows The Time In A Label?

Mar 5, 2009

I'm trying to program a countdown timer that shows the time in a label, with a button to start it, and if the button is pressed again add certain amount of time, for example 1 minute.

View 2 Replies

Add A ReportViewer For Each Report Or Can I Use One ReportViewer For All?

Apr 12, 2009

Where can I find resources on authoring Reports. Say, I have a VB project and I want to add reports to it, do I have to add a ReportViewer for each report or can I use one ReportViewer for all?

What is the difference between a Report created using the Report Server Project of the Business Intelligence Projects and one created using the Visual Basic/Reporting Project tab? Which one is more suited for creating reports?Only performance counts!

View 6 Replies

Change Property Value When I Change Name Property Of Control In Desgin Time?

Mar 10, 2010

I inherits textbox Control and I added some new properties to it .one of these properties value i want it to change it's value in desgin time when i change Name property of the new textbox

Public Class NewTextBox
Inherits TextBox
Private _txtSubName As String = String.Empty

That is the property for set or get SubstringName of Textbox

Public Property SubName() As String
Get
Return _txtSubName[code].....

that's the property i want to change it's value when i change Name property of the control.i tried to overrides Name property but it's not overridable also i trieds to overloads it but it doesn't work in desgin time.Here is something i tried but it's wronge.

Private _txtName As String = ""
Public Overloads Property Name() As String
Get[code]......

View 4 Replies

Never Once Ever Come Across A Time To Use A Write Only Property

Jan 7, 2010

I am just curious about this, but in all my years writing code, I have never once ever come across a time to use a write only property. Of course readonly is pretty common in class development, and while I may have had classes where I don't specifically need to expose a property for reading, generally you end up with a method like SetValue or something like that, which is more or less the same idea as a writeonly property.

I don't recall ever seeing a writeonly property in a .NET framework class. So can anyone provide an example where it actually made good sense to use a writeonly property over either a read/write property, or a method?

View 20 Replies

Change A Textbox Property At Run Time

Aug 4, 2009

I want to give the user the ability to modify the font characteristics of a textbox on a form, using buttons. In the button click_event, I can successfully have the user change the font color to red directly:

[Code]...

View 1 Replies

Change PrintPreviewControl 's Property In Run Time?

Oct 24, 2010

I want to change PrintPreviewControl 's property in run time.

for example change paper size to A4?

or change land scape ?

View 6 Replies

Getting Property By Javascript 2nd Time Fails

Apr 28, 2009

Here's a problem: I've made an ActiveX control with VB.net (VS 2005) to use in a web application. The control has some properties and methods. The control loads fine in IE, calling methods works, but asking for a property with javascript is a problem.

[Code]...

The first time objTest.SomeProp returns 'Test' as it should. The second time is gives an error: 'Object doesn't support this property or method. After that, all methods and properties are 'unsupported'. Somehow this problem started after I implemented IObjectSafety interface in the control, but I have no idea how it affects the property and how to solve this problem.

View 1 Replies

.net - How To Show A Form's Custom Property At Design Time

Oct 22, 2010

I have a form where I have created a custom property, DataEntryRole, and set its Browsable attribute to True, as shown:

<Browsable(True)> _
Public Property DataEntryRole() As UserRole.PossibleRoles
Get
Return mDataEntryRole
End Get

[Code]...

When I view the designer for my form, DataEntryRole doesn't appear in the property box. I assume that it should appear if I were to create another form that inherited from this base form, but that's not what I want. I want this property to show up in my current form.

View 2 Replies

Change The Order Of Property Serialization At Design Time In .Net?

Oct 21, 2009

I have a class where it's problematic to relay on the properties being serialized in alphabetical order at design time.In other words, property Z must be serialized before property A.The problem arises because property property Z clears property A whenever it changes - which happens in InitializeComponent.I work around this problem by setting a FirstTime flag, but that seems messy.

View 2 Replies

Make Property Required / Catch At Compile Time?

Sep 2, 2011

[code] i get an app error when running the app, because i didn't set the ID.I was wondering if there's a way to make sure the programmer assigns all properties in the class,and fail at COMPILE TIME rather than have to catch the error at runtime...

View 2 Replies

Public Property With Percentage Symbol At Design Time

Mar 18, 2011

A component I'm making has a public property that represents a percentage. How I can give it a % symbol in the Properties Window at design time in Visual Studio? I mean, like the Opacity property of a Windows Form.

View 2 Replies

Usercontrol With Designer Browsable Property Not Saving Value At Run Time?

Aug 17, 2011

I have been making a control and have added a property for a list(of CustomClass). The custom class contains a string, an image and a list of another custom class which contains a string and an image. I have added this property to the designer by adding the browsable attributes and all appears to work correctly with this.

My problem comes when running the program. I can set all of the values within the property and I can go back to them and they are saved, however, as soon as I run the program, the values are wiped out as the property is set to Nothing.In order to allow my property to be edited and saved, I realize that I must initialize the list and have done so in the accessor method of the property (if the property's value is nothing).

I have modified the values in the designer and placed a breakpoint on all of the items which use the property and it's underlying field, as well as on the property's methods itself. The first breakpoint hit is of it being accessed and the value is always nothing.

I'm not sure where the values are supposed to be stored as I have checked the designer code where it would normally store types such as strings and I have checked the resources to see if they have been saved there (like an image would be). After running the code, the values in the designer are wiped out also.

[Code]...

View 1 Replies

VS 2010 Create And Add Custom Property To Picturebox In Run-time?

Jul 12, 2010

I have a Picturebox, where the .Tag property is holding a path to a file. But I would also like to have something like a .Tag2 property that could hold another file... I'm guessing this is possible to achive, but I have been struggling with this for quite some time now, and I really don't how I to do this... I can't seem to any useful information on the net either...

View 2 Replies

Partial Classes - Add A Control Or Change A Property At Design-time

Mar 26, 2008

In my never ending search for more knowledge, I have come across Partial Classes. I was wondering if some of the kind people who actually understand the uses could explain some of them to me. Now I know that when we create a form that we actually create a partial class which the generator rewrites when we add a control or change a property at design-time, and this allows us not to have to worry about setting up the controls ourselves.

[Code]...

View 2 Replies

Setting The Value Property Of A Date And Time Picker Control Programmatically

Jan 24, 2007

I have included a Date and Time Picker Control in oen of my MS Access Forms and want to set its value on the form open event. However, when I try to set the Value property I get the following error message :

[Code]...

View 3 Replies

C# - Refresh Property Grid, At Design-time, When A Readonly Collection Changes In .Net, Winforms?

Mar 3, 2010

I have a class that has a readonly collection property - Its a list of extender providers that have been applied to the control.I've implemented a simple property descriptor for the collection so that the property can be expanded in the property grid to examine each entry.

When I select an extender provider and set it to false, I remove it from the collection. The GetProperties method of the type converter is requeried and the property grid refreshes.However, when I set an extender provider to true, and thus add it to the collection, GetProperties is not requeried.

Somehow, the property grid is making a distinction between adding to and removing from the collection. Or alternativly, its refreshing when an extender provider is added, but not when one is removed.

[Code]...

View 1 Replies

Collection Type Property Assignable At Design Time In User Control

Mar 8, 2012

I am creating a User Control where I have a property called Items. Items is of type LibraryPanelBarItem Collection (custom class) which contains a collection of LibraryPanelBarItem objects. I would like to be able to add these at design time by using the Collection editor that VS uses for adding things such as treenodes/listviewitems. Ideally I would also be able to declaratively add them to the html syntax. I can get the Items property to show up but I get no intellisense to add the items between the opening and closing tags. [Code]

View 1 Replies

Persisting A Collection, That References An Internal Property, At Design Time In Winforms, .net?

Mar 11, 2010

(I've answered the question below with a hack. I'm fairly confident in it unless MS change the way that codedom serializers the designer code.)ETA2:I've worked out what is going on. I wondered why sometimes it would work and not others. It boils down to the name that I give to the internal property and the collection.If I rename the property 'Annoyance' to 'WTF', it will serialize correctly because 'WTF' is, alphabetically, after the name of the collection - 'InternalAnger'.It looks like the serializer is creating instances of objects alphabetically and needs my internal property to be created by the time it comes to create the collection.I can fix this with a rename, but that's a hack and I fear that writing a custom serializer is a big job - which I've never done before.ETA: Jesus, I'm sick of this. This problem was specifically about persisting an interface collection but now on further testing it doesn't work for a normal collection. Here's some even simpler code:

Public Class Anger
End Class
Public Class MyButton

[code].....

View 4 Replies

Textbox Text Property Won't Update Programmatically After First Time Running Through A Method (but Will Thereafter)?

Jul 28, 2009

This is my first post on this forum, so please excuse me if I'm posting wrong. Anyway, I've been having an issue that I've never seen before and is driving me nut, I have a windows form on which I have placed many textboxes that display information from a MS SQL database. The user can then change these values and hit a "save" button which writes the changes to the database. I also have certain textboxes that with the "on leave" event (after a user enters a possible new value) trigger a method that recalculates some of the other fields based on the new information. Hopefully that all makes sense.

So the problem is, when I run through this "recalc" method the first time around, it doesn't update those textboxes that it's supposed to. However, when I put a breakpoint in and debug through it, the debugger shows it putting in the correct values into the textboxes. It's just as soon as the method is done, it puts them back to blank, or whatever they were before

'Rebind stuff here
lblCabinets.Text = curMfg.ToString("c")
txtCabinets.Text = curMfg.ToString("c")

[code].....

View 16 Replies

Why Does The Text Property Overridden In User Control Is Not Showing At Design Time

May 20, 2010

I have a usercontrol which overrides the property Text. But this property is not shown at design time.If I rename it to caption or value it is shown in properties at design time but Text is not shown.

public Class SomeControl
Inherits System.Windows.Forms.UserControl
Public Overrides Property Text() As String

[code].....

View 2 Replies

.net - 'Property' Cannot Implement 'Property' Because There Is No Matching Property On Interface 'IName'?

Dec 9, 2011

I'm having some very weird issues with interfaces right now.

I have a very simple setup. In one of my class, I have a Property implementing a Property from an Interface.

In my class it's like:

Private _oForm As IForm
Public Property Form As IForm Implements IContainer.Form
Set(value As IForm)

[Code]...

I have like dozens of interfaces like this working throughout my project and I can't believe this simple one can't work!

View 1 Replies

VS 2008 All Property Of Button1 Set To Button2 (Run Time) Where Button2 Created At Runtime?

Feb 23, 2010

I put a button control name 'BTT1' on form and all property are set through property window..and In form_load events i want to create 10 more button which property are same as 'BTT1' so how i can assign all property of 'BTT1' through one or two line of code ...like

--------------
for i=1 to 10
dim b as new BTT1
b.name = "b" & i

[code]....

All Handles of new created button also assign to handle of BTT1 (more clear: all subroutine handle mousemove, click, etc of BTT1 also works for new created Button (b1, b2 ...b10))..

View 1 Replies







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