vb.net

Moving ECDSA from COM DLL to .NET

Hi, I have an ActiveX DLL that uses ECDSACom from Dragongate Technologies to create a signature for a product licence. The product, when starting, uses the signature generated, the public key and the licence to check if the licence is good. But now I'm changing to .NET and 64bit applications and the ECDSACom can't be used since is a COM ...

How can I execute a command binding on MouseEnter of a StackPanel in WPF?

I'm using MVVM. <ItemsControl ItemsSource="{Binding AllIcons}" Tag="{Binding}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel> <Label HorizontalAlignment="Right">x</Label> <Image Source="{Binding Source}" Height="100" Width="100" /> <Label HorizontalAlignm...

Retrieve MySQL data with webservice to create FTP Folder and user/pass ?

Hi there, I need to create something that will retrieve new Users from a VTiger CRM and create a FTP folder and user/pass on another server. SERV-A: VTiger CRM, powered by MYSQL. With WSDL directory. SERV-B: FTP server The reason why I thought doing a WebService is that I must constantly check for new users. The language used isn'...

How to populate Crystal Reports with SQL

Since there doesn't seem to be any way to load old VB6 (ActiveReports) reports in .Net, I need to recreate dozens of reports in .Net. I'd like to do this in the least painful way possible. In VB6, the original authors simply did something like this for every report: adoConn.ConnectionString = globalConnectionObject.ConnectionString ad...

ASP.NET - Interaction with Other Websites

I was wondering if it is even possible to interact with other websites using my own. Here is the scenario: Lets say I have a Lockerz account, which is a place where you do daily tasks to earn points. Once a month you can redeem those points to get prizes such as an ipod, macbook, or other items. I know that sounds rediculous, but stay...

Populate an Array of Object Based on DataReader Data

Hi. I am not sure how to phrase my question properly but I want to achieve something like this. I have a class named Products public class Products private ID as Integer private Name as String Public Property ProductID() Get Return ID End Get Set(ByVal value) ID = value End Set End Property In one of my code behin...

Update an UltraWinGrid cell programmatically

I'm wondering if somebody can show me how to update an UltraWinGrid cell programmatically. And my intention is that the UltraWinGrid's BeforeExitEditMode event will be called subsequently. Here's some of my code: Friend With Events uddInventory As UltraWinGrid.UltraDropDown Public Sub Example() Dim dv As New DataView(m_dtInventory) dv....

A couple of errors I am getting, both related to SQL Server, when trying to run an app on my local machine.. please help..!

Hey, I am in the following situation: I have been requested to write an application for managing where we have customers - this must flag up when we try to add a customer too close to another one, so must be able to calculate distances based on post codes. I have chosen to use ASP.Net VB because I am fairly good at that and I like tha...

LINQ Count .. best method

My company has just started using LINQ and I still am having a little trouble with the abstractness (if thats a word) of the LINQ command and the SQL, my question is Dim query = (From o In data.Addresses _ Select o.Name).Count In the above in my mind, the SQL is returning all rows and the does a count on the numb...

How to create variables from strings in arcobjects?

This hopefully is a simple question with a simple answer. If I have a list box or something that has a list of like 4 years (like 2006 through 2009), how do I programmatically make variables of these years with names like pTable2006, pTable2007, etc (as ITable of course). If this isn't possible and I have publicly declared these tables...

Window that is supposed to be fullscreen in WPF touchscreen application is moving when inner listbox is scrolled.

I am writing a GUI application to run on a touchscreen device using VB.NET and WPF--it must be full screen at all times, like a kiosk app; the window must not be able to resize or move in any way. The window contains a ListBox that users can currently scroll through by dragging across the list. The problem I'm seeing is that when the us...

Help sorting XML Data in .NET (maybe with LINQ query?)

I have this hierarchy of XML <Chapters> <Chapter @num=""> <Section @letter=""> <Heading @num="" /> </Section> </Chapter> </Chapters> I need to do a sort so that all chapters are sequenced in ascending order, each section within that chapter is sequenced in ascending order, and each heading in that section is sor...

Convert VB to C#

I need a little help converting some VB.NET code to C#. I have tried several "code converters" but none of them are giving me back a workable response. Here's the code: If Me.OrdersDataGridView.SelectedRows.Count > 0 Then Dim editForm As New Order(Me.NorthwindDataSet, _ Me.NorthwindDataSet.Orders.Rows.IndexOf_ (CType(CType(Me....

How to Raise an Event Once I Reach End of Method?

How to raise combobox_SelectedIndexChanged(object sender, EventArgs e) programmatically? Lets say i have method called ClearFields(). I want to call the event before i hit the end of Clearfields() method. ...

webPages loading problem

Using ASP.Net & C# I want to run my web page in the internet explorer or firefox... When i run the webpage, it was working in VS, but when i run the webpage in the ie it showing error as The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try aga...

vb.net how to handle text dragged onto a button to open a new form with the dragged text directly copied to the richtextbox on the new form?

hi, I want to achieve the following: The user drags text from any open window not related to my application ( like firefox or word, for example) onto button1 on form1 in my application. when he/she does that, a new form (called form2 that contains a richtextbox) will open and the dragged text is directly copied (or inserted) into the r...

WCF and Silverlight CrossDomain.xml

Apologies if this has been asked before (I couldn't find the answer anywhere), but I have a WCF Service Application that I have created, and am trying to access via my Silverlight 4 app. I have added the service reference to the SilverLight App and am just trying to call one of the default pre existing methods on the service (GetData). W...

Why is in .net the String.Format(fmt, args,..) function "shared"

Is there any sane reason why the function String.Format in .net (for C# and VB.net at least) shared and not like .split, .substring or whatever a normal function. What would be bad about Dim a as String = "1+2={0}".format(1+2) (would be good) vs. Dim a as String = String.Format("1+2={0}",1+2) (the way it works) It always bugs me w...

Access MySettings from other Project in Solution

Is it possible to access the My.Settings of an other DLL referenced in the current Project? I have a Database project in which Settings the ConnectionString is stored. I need access to this Setting in an other Project(for Log-File). ...

VB.NET - integrate Win7 taskbar progress without the external DLLs?

Hey trying to make a fancy little app here in VB.NET framework 4. I've seen several programs which utilise windows 7's taskbar progressbar, but they have it embedded in the application when i googled and attempted to do this, my program had to lug around 3 extra dlls when its supposed to be a single executable, and highly portable. how c...