I have a smart tag up and running for my user control but I also want to add a UITypeEditor collection editor to it as well. If I add the collection property to the smart tag in the usual way then I get the ellipse appearing as expected, then if you click on this you get the Collection Editor pop up but if you click ok in the Collection Editor I keep getting an error:
error using the drop down: unable to cast object of type BarChartControl.BarChartActionList to type BarChartControl.BarChart
In the DesignerActionList class I have the following:
Public Property Bars() As BarChartControl.BarItemCollection
Get
Return _linkedControl.Bars
End Get
[code]....
and in the GetSortedActionItems() of the DesignerActionList class I have:
items.Add(New DesignerActionPropertyItem("Bars", "Bars", "Bars", "Manage bar collection."))
i want to create a Smart Tag like Select images of ImageList control. i try to develop a solution fromooks?id=4LF-c8JJcC&pg=PA905&lpg=PA905&dq=Smart+Tags+control+List&source=bl&ots=VpmOHI4vEp&sig=ujn9eUwRtLLl37kGmNKPW2GaxvI&hl=es&ei=LCxITq-OKnx0gGEz4HkBw&sa=X&oi=book_result&ct=result&resnum=9&ved=0CFEQ6AEwCDgK#v=onepage&q=BarItem&f=false but
I'm trying to make a custom type editor for a generic Brush. The editor form is done, everything works, except the changes don't show up in the xxx.Designer.vb file. I think it's because VS doesn't know how to represent the Brush type. How do I do it?
Next, I put an instance of MyButton into a property grid, expand property MC and edit SubProp2.From the type editor for SubProp2, I want to get hold of the attribute applied to property MC.Looking at the context,PropertyDescriptor.ComponentType, we arrive at Type: MyClass.If i look at the attributes applied to MyClass, though, it will only return the attributes applied directly to MyClass, and not the extra attribute applied to the property MC.
i have to develop a ticketing package for a client...and he wants to use smart cards too...i would need to develop the package on a smart device i.e. a mobile application and will have to read the card on the device itself ...i have zeroed on the instrument from motorola. and an blue tooth connected printer to print the ticket.how to read the smart card ...i have searched a lot but have not found anything good.the smart card would contain the amt. balnce in it...and after the transaction i need to again enter the balance in the smart card...
Is it good practice to store sub-collections of item X inside a parent collection of item X for caching 'filter-queries' which are performed on the parent collection? (They won't be used together (as in color AND type).) Or is it also ok to just Loop over the collection and return the correct entities in a temporary collection?
I have been researching for a couple of days now and to no avail. Does Anyone know how to make a custom collection that take advantage of the collection editor? I would like to be able to have 3 Color Values, 1 Boolean and 1 String.
[code]Seems to fetch data from my one and only internal IDE drive.The line objWriter.Write("Active: {0} ", queryObj("Active")) does not work if you change up the data in between the first set of quotes. Thus changing Active: {0} to Active: {1} causes an error that the Try Catch doesn't catch (this for...next is in a try catch).I assumed that the stuff inside the quotes was just text and could be changed to anything? Why doesn't the try catch catch it?Doesn't read a USB external drive when attached.i changed {0} to {1} and it crashes.
look at the following picture, which showing smart tag for DataGridView Now I'm creating new component and I want it to support showing some properties in Smart Tags, how to add the properties to the smart Tag?
I'm trying to support Basic.NET on my framework so I'm trying to convert C# 4 code to Basic.NET 10. Microsoft is committed to "co-evolve" these two but I'm having a problem with collection initialization... I found that I can initialize a collection much like in C#:
I've got the following ADO.NET Entity Framework Entity Data Model:I want to find all the Policyholders with both a Service of a given Id and also a Keyword of a given Status.
This LINQ Does Not Work:
Dim ServicesId As Integer = ... Dim KeywordStatus As Integer = ... Dim FoundPolicyholders = From p As Policyholder In db.PolicyholderSet.Include("Keywords").Include("Services") _ Where p.Services.Id = ServicesId _ And p.Keywords.Status = KeywordStatus _ Select p
The Where clause cannot search the p.Services and p.Keywords EntityCollections in that way.
currently in my application I have a Global Collection that is a Collection of Collections.Currently I am trying to add items/ elements to one of the child collections of the Global Collection but I am unable to use the collections methods of the child.When I assign a variable to the child collection and return the collection it is just an object with the collection inside.
Ex: Dim GlobalCollection as New Collection Dim ChildCollection1 as New Collection Dim tempCurrentCollection[code]......
I've been working with a CMS called InsiteCreations 2008. I'm running into an error I just can't wrap my head around. I would even be willing to compensate anyone a small amount over paypal, for a solution. The error is rare in occurance, and appears when clicking about 3-4% of links to other pages within our CMS.The full code page is quite large, but there seems to be only one function associated with the error. The error also only appears when not logged into the CMS. If logged into the CMS, clicking the link simply displays the page as normal. I have already checked permissions on the page from the CMS admin console, and it is public.
The error message is as follows:
Server Error in '/' Application.Collection index must be in the range 1 to the size of the collection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
I downloaded VB because I was instructed to do so in order to be able to convert powerpoint files to smart notebook files.unfortunately, this does not seem to do the trick.
i created a smartdevice project,,(target platform =pocket pc;device=emulator; editor= vs2008). (i didnt write any code additional to template generated by vs2008 ) i tried to debug it with F11 hit(step into) ; vstudio asks me to locate a source file named 17d14f5c-a337-4978-8281-53493378c1071.vb. i dont know what this file is; same problem does not occur if i choose C# project.
I want to detect when the smart card reader is connected to the computer. I used a loop structure/timer component but these solutions takes a lot from the processor capacity. There are other solutions?
P.S: when I connect normally the smart card reader to the computer, I don't have a letter where I can access the card reader.
[URL]
P.S 3: my code is:
Do While rgReaderState(0).lAtrLen > 0 If BackgroundWorker2.CancellationPending Then
Main development XP machine died so I got a new XP machine, installed SQL Server 2005 and VS 2005 Pro, and copied my files.Projects in new VS 2005 work except the Data Sources pane won't refresh and won't show all my data sources for an existing project (from the old machine.)
Error: " An exception occurred while trying to update the data smart tasks, they will be disabled. Key not valid for use in specified state."Update: I cannot even add a new data source to a brand new project. This is VS 2005 from my MSDN subscription.
I have a Digital Signature Cretificate card and card reader, certified by NIC certificate authority.Now I have to implement a login module for a web portal where user will be identified by DSC card.I am very biginner in smart card application field.I have many confution, which are listed below-
1. when i insert card into card reader how can i read data from card using vb.net?
I have got a Dell RT7D60 Keyboard which has a built in Smart-Card Reader. I have developed an application in vb.net and wondering if it is possible to allow users to log on to this application using smart card Authentication.I want to keep the authentication simple like instead of allowing user to enter username and password to open the application, i would want the application to ask for example, "Pls insert your Login-Card" and get the info from the card to authenticate the user.I have no clue for how to begin. Is it too complicated to integrate it in the .net application.
Just today I've completed a trial version of my application - I then uploaded it to my webserver, and to my surprise a user already (almost one hour after I uploaded it) bypassed the protection and used the software 8 times (instead of the limit of 1 use)!
My "protection" was pretty weak. After the program has been used, it just writes a value to a single registry key. The user just deletes this registry key and can use the program once more, and so if someone does this enough times, he can use the software for as much time as needed.
Anyway, since I'm not really experienced in programming, do you guys have some nice working and possible easy to implement trial protection? I'm not looking for anything too serious, but it shouldn't be as easy to bypass as my current protection.
I'm trying to use certificates to sign documents. The first time that I sign, the OS prompts a dialog for user to set the PIN, but the next times it doesn't. For security reasons, I need that every time that I sign, the OS asks the PIN to the user.
This is the code:
''// create ContentInfo Dim content As New ContentInfo(bytesContenido) ''// create a signer