C# :: Silverlight UserControl Library?

Nov 16, 2011

I created a usercontrol in a silverlight library. This control will be used among several different projects. It uses a reference to a third party dll. When I try and drag the control from the toolbox it throws an error about finding the third party control.If i add a referene to my application to the third party and then add my control it works fine. My question is there any way that when i add this usercontrol I can force it to add the thrid party reference to the project its being added to first?

View 2 Replies


ADVERTISEMENT

How To Use .net Usercontrol From A 64 Bit Library

Jun 3, 2010

I am running through an issue for which I am unable to find a solution.My goal is to:1- compile a x64 .NET library (vb) which has a simple User Control 2- Use this dll in a .NET WinForm application targeted to x64 CPU ONLY.

I have been able to do the first step, but now I am unable to add the library into the VisualStudio Toolbox. With our previous x86 version we had just to right click to VS toolbox, click on "Choose items...", then brows to the needed x86 assembly. If we do the same selecting a x64 lib (of course I am running vs on a 64 bit OS), we get the following message "[DLL PATH] is not a Microsoft .NET module."

View 1 Replies

Port WinForms To Silverlight 2 Or Silverlight 3

Mar 19, 2009

I have a LOB app written in VB.NET with a WinForms front-end and SQL back-end. After many months weighing up how to get onto the Web, I decided last month to use Silverlight 2. Now, Silverlight 3 Beta is out, but there is no end-user runtime.

Does anyone know when the runtime will be available for deployment of SL 3 apps onto client sites?
My dev timeline is about 3 months: should I persist with SL 2 and then u/g to SL3, or jump straight in to SL3?

View 5 Replies

C# :: Call Function From UserControl On ASPX From UserControl On MasterPage?

Jan 31, 2011

I have MainLayout.master that has UC_Menu.ascx on it. I have a page named Customer.aspx that uses MainLayout.master. Customer.aspx also contains a UserControl named UC_Details.ascx.How can I have UC_Menu.ascx call a function that is in UC_Details.ascx with this scenario?

View 3 Replies

UserControl Access To Public Properties In Another UserControl?

Jun 12, 2011

I have a Windows Form frmMain() holding seven more-or-less unrelated UserControls, ucFlopsy", "ucMopsy", "ucCottontail", etc...I say "more-or-less" because each of the seven UC has three similar public read/write properties:

IsLocked (a boolean indicating if the following two properties are "Locked")
IsLockedID (if IsLocked=True then IsLockedID is an integer)
IsLockedName (if IsLocked=True then IsLockedName is a string)

[code].....

View 1 Replies

.net - RaiseEvent From A UserControl That's Placed On A UserControl That's On A Form?

Jul 11, 2011

I have a Windows Form that contains a custom control container as a UserControl. For the sake of this question, this custom control container is called Dashboard. This container called Dashboard contains numerous other controls depending on their permissions. I need to raise events that are contained on these controls through the Dashboard control and over to the Windows Form.

How can I bubble up the event? I'm using VB.NET for this project, but can convert C# into VB.NET.Also, to complicate matters, the main Windows Form is a VB6 project. So, I'm using the InteropFormsToolkit to accomplish this.

View 1 Replies

Asp.net - Reference TextBox In One UserControl From Another UserControl

Jan 19, 2011

I have two UserControls on a MasterPage. DataEntryUC contains several TextBoxes and DropDownList. NavSaveUC contains navigation buttons. When the user clicks on a navigation button, I will be saving the data entered into DataEntryUC from the NavSaveUC UserControl.

I have a couple of tables in my DB that contain stored procedure names, control names, control types, SqlDbTypes, etc.... that correlate with DataEntryUC.

How do I reference a text box that is on DataEntryUC from NavSaveUC?

I have been working on the following code from NavSaveUC with no luck.

Dim MyControlName = "txtFirstName"
Dim MyControlType = "TextBox"
Dim MyStringValue as String

[Code]....

View 2 Replies

Setting Usercontrol Properties Within A Usercontrol

Mar 22, 2012

I have a usercontrol that has a main form and calls another form within the usercontrol to get some data from a database that allows the user to select some items from a CheckedListBox control on the sub form. I want to pass the selected items from the CheckedListBox back to the main form and display the results there. I have a public property called DBList of type List(of String) on the main user control. If I create a reference to the usercontrol form the second form within the usercontrol I get a new instance of a user control. All I want to do is set the property on the usercontrol and close the secondary form. How do I reference the usercontrol from the form within the usercontrol?

Code in UserControl:

Public Property DBItems() As List(Of String)
Get
Return DBItems

[Code]....

View 3 Replies

VB2010 Class Library: Create A Static Library Instead Of DLL?

Jun 21, 2011

I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?

View 6 Replies

VS 2010 Load Data Into UserControl In UserControl.Load?

Sep 25, 2011

I just discovered the joys of UserControl's and I was wondering if it is possible to populate the usercontrol with data from a database in the UserControl's Form.Load event instead of the form the userControl is placed on. I feel it would make using the control a lot easier if it just populated itself without anymore code.I tried it with a ListView but it gave me a bunch of errors, so I didn't know if it had to be done a certain way or if it was just one of those things that doesn't work no matter what.

View 8 Replies

.net - Multibinding In Silverlight?

Jul 13, 2011

I am trying to implement multibinding in Silverlight using VB.Net. I have found a very good reference for an implementation in C# here. I spent some time trying to use various converters to migrate it into VB.Net but I still didn't get it working properly. So..

I'm looking for some references that exemplify how MultiBinding can be done in VB.Net. Also an example using Silverlight 5 beta would be fine (I read in a post right here on Stack Overflow that it supports multibinding).

View 1 Replies

.net - Write XML In Silverlight With VB?

Apr 4, 2009

is it possible to write xml in silverlight with vb

View 5 Replies

C# - WCF And Silverlight CrossDomain.xml?

Jul 1, 2010

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). When calling the method i get an error of:

[Code]...

View 3 Replies

How To Us Silverlight Player On VB

Feb 12, 2011

How can i use SilverLight Video Player on Visual basic 2010

View 1 Replies

Navigation In Silverlight 3 With VB?

Feb 8, 2010

I am designing a web application in Visual Studio 2010 Beta 2, using Silverlight 3, with Visual Basic as the underlying programming language. What is the Visual Basic code that I would put in a Button1_Click event to tell the program to navigate to another UserControl XAML file?

View 4 Replies

Use Custom DLL In Silverlight?

Mar 21, 2012

I'm testing and trying to understand how to create a DLL and call a function from it in my Silverlight project. I'm getting an exception: Unable to find an entry point named 'WriteTextFile' in DLL 'C: empTestDLL.dll'.[code]...

View 1 Replies

.net - Calling WCF Service From Silverlight 4?

May 6, 2011

I call upon your combined intellects. I have a web application with a silverlight app that calls a ria service. The ria service is defined inside the web application and everything else is just dandy.

The issue is this.It is my understanding that in order for the silverlight application to talk and know what the ria service is, you need to add a service reference for that service. The service reference defines the ria service and sets up the connection binding. One of the files it adds is the ServiceReference.ClientConfig which has the connection binding in it. During the course of this application's development, this is the way it was set up. And it worked perfectly fine locally and on the dev server.

Unfortunately there were issues when deploying to the clients in-house server. At this point I was onto other projects while my co-worker continued with the deployment. He soon became frustrated with the goofy errors that were occurring and recruited some help. This dev came in and, albeit got it working, but in order to do so he removed the service reference from the silverlight project but left the ServiceReference.ClientConfig which pointed to the location of the service in the web application(but that's it, no definition or explanation as to what the service does and I'm not sure how the silverlight app is supposed to know how to work with it..). This works perfect on my co-workers workstation and he has deployed this version to the clients server fine.

When I open the project it doesn't run at all. And the reason why is that it doesn't know what the service is that i'm using in code. Specifically, it doesn't know where this is (names changed for clarification):

Imports SilverlightApp.ServiceReference.WebApp.Service

I have cleaned the solution, completely deleted and got the latest from source control, built the web app first and made sure the asp.net dev server was running so that the address in the ServiceReference.ClientConfig resolved correctly. But, alas, it still doesn't know what Imports SilverlightApp.ServiceReference.WebApp.Service is.

So, to get it working on my workstation, I added the ServiceReference back but kept the current connection bindings so that it matched the endpoint in the web app web config. and changed the import statement to Imports SilverlightApp.ServiceReference and everything works fine.

View 1 Replies

.net - Silverlight MaxItemsInObjectGraph Behavior?

Jan 27, 2011

I currently have a silverlight application which has silverlight class library. The silverlight class library has a WCF service reference which works as expected for small data. However we have come across a problem which is caused by the default value of maxItemsInObjectGraph. We have tested it with an increased value (called from vb app set in behaviour) and it works however we are unsure how to set the value of maxItemsInObjectGraph when it is in a silverlight class library (as it is only defined in the clientconfig file and no services are added to the client). I have seen posts about adding it to the web.config but this only seems to apply when the service is called directly by the app not by a class library?

View 1 Replies

.Net Silverlight Project And MySQL?

Mar 20, 2012

I have found the MySQL .NET Connector - am I correct that this is not compatible with Silverlight and I do not need it?I understand I must use a Web Service for this. Can I use WCF or WCF RIA, or am I best using a more traditional web service method like REST or SOAP?

What's the best web service method for many quick queries (such as updating a search as the user types in the keywords)Do I have to use technology like LINQ, Entity SQL, ADO.NET Framework, or a stored procedure? Is one of these the best way to do it or should I just skip them all and create a simple web service?What's the best source to learn how to do specifically Silverlight VB.NET and MySQL and learn to do it the best way as explained above. Everything I've found (books and websites) seems to be in C#, not a Silverlight product, or just uses built in SQL Server support. For our web app, we need to be able to give the buyer not just access to our client side application via a browser but also the server side so they can OPTIONALLY host the entire product themselves. We're hoping to have one installer for them on their server (so they wouldn't have to set up php or mysql to host the product for example). If I use a VB.NET website and web service, will that deploy as just an exe or dll so the user won't have to install anything special?

View 1 Replies

Asp.net - Use Silverlight To Play Audio?

Aug 23, 2010

how to use Silverlight to play audio from local ASP.NET folders?

View 1 Replies

C# - Building A Roguelike In Silverlight (or WPF)?

Dec 10, 2009

I've been toying with the idea of building a web-based Roguelike game using Silverlight (or maybe just a desktop game using WPF).

If you don't know what a Roguelike is, it's a type of graphical RPG where the graphics are rendered using text. Because the graphics engine is relatively simple, you get to spend your time building features into the game and it's possible for one person to quickly build something fun.

For instance, a typical screen might look something like this (the @ is the player, # is a wall, the other characters are things like monsters, stairs, and items):

I'm an experienced ASP.Net dev and I'm just getting started with Silverlight. Is there a particular approach I should take for this? To provide some background, in Winforms, most standard approaches are too slow -- the text ends up updating with a visible, ugly blink. I'm thinking something to do with the Canvas might be appropriate, but even better would be to somehow draw a screen into a buffer and then instantly flip that onto the screen so that it becomes visible instantly.

But I don't really want to mess around with DirectX right now - I'm hoping WPF can get me to where I need to be without a big learning curve.

Update: So this turned out to be pretty challenging. I tried a lot of different approaches and I was finally able to get it to actually render fast enough, but I think that to make it blazing hot fast you should probably build a sprite map of the font you want to use and work from that instead of trying to use any of the built in font rendering stuff. I didn't do that.

When I got the core rendering engine done, I ended up with some annoying artifacts related to quirks of font rendering (even fixed width fonts are sometimes a liiitle bit wide...), and when I finally worked that out I discovered libtcod, which is a very impressive roguelike engine that has a C# wrapper. That's all console based. I played with it a little and I was blown away.

As of 1.5.1, everything I've touched in libtcod works great except for the mouse input stuff and one of the keyboard input modes (which I think they recently ditched), but everything you need to make a roguelike is in there, and that includes several line-of-sight, pathfinding, and even dungeon generation algorithms. It's pretty advanced visually. Have you ever seen an RL like this?

In a nutshell, it's possible to build a roguelike with silverlight, but I wouldn't go in expecting it to be easy unless you've already got a strong silverlight or game dev background. You're going to be re-inventing some serious wheels, and even with a powerful toolkit that allows to focus on gameplay, there's no shortage of things to do.

View 2 Replies

C# - Getting Started With Matrix3D (Silverlight)?

Jul 9, 2010

I need to figure out a way to project pictures in Silverlight (<Matrix3D/>) based on some predetermined variables that I have available to me.I have a need for the following projections:

Isometric
Orthographic
Oblique
Perspective

So, I have a number of variables provided to me like X, Y and sometimes Z. For example, this -

Type: Orthographic
X: 70°
Y: 10°
Z: 20°

somehow turns this -> into this -> and

Type: Isometric
X: 314.7°
Y: 35.4°
Z: 299.8°

into this ->

I have other information, like the coordinates of where the picture appears on a canvas, it's width/height, etc. if that information is useful too.

View 2 Replies

C# - SilverLight Datagrid Refresh?

Jan 18, 2011

I have a Silverlight Datagrid who's DataSource I refresh every 5 seconds.I would like when the grid refreshes, for the focus to be on the last row, not the first.I have tried setting the SelectedIndex property of the grid to be the last row, but it did not work.

The details:I am binding the DataGrid to an ObservalbleList(Of MyObject) property on it's ViewModel, and the SelectedIndex is also a property on the ViewModel. Both properties raise the property changed event (able to witness this working by seeing the DataGrids DataSource clearly changing, but the SelectedIndex is never set.I have read reports that setting the SelectedIndex on a DataGrid is a known issue, but have not found a work around.

View 1 Replies

C# - Silverlight Window Boundaries?

Aug 13, 2010

say your silverlight area on a webpage is 200px by 200px.you open a child window, is there a way to make it moveable outside the 200x200 silverlight area?or say you drop down a combo box, let the drop down go out side of the 200x200 aea?

View 1 Replies

Char.ConvertFromUtf32 Not Available In Silverlight

Oct 12, 2010

I'm converting a WinForms app to Silverlight (VB.NET). What should I use instead of Char.ConvertFromUtf32 as it's not available to use in Silverlight?

View 1 Replies

Compiling DLL For Silverlight 3.0 With VBCodeProvider?

Oct 14, 2009

I am having difficulty dynamically compiling a DLL for use with Silverlight 3.0. My goal is to take some rules provided by my users and compile them into a DLL for custom editing purposes.I created a Silverlight class library project in Visual Studio to get the command line for compiling a Silverlight class library. Based on that and the many examples for compiling VB using the VBCodeProvider, I came up with the following method for comping code in a string to a DLL:

Public Function Compile(ByVal code As String, ByVal assemblyName As String) As CompilerResults
' set the compiler parameters
Dim parameters As CompilerParameters = New CompilerParameters()
parameters.OutputAssembly = assemblyName

[code]....

This does not compile with the following error:vbc : Command line (0,0) : error BC2010: compilation failed : 'Member 'IsNumeric' cannot be found in class 'Microsoft.VisualBasic.Information'. This condition is usually the result of a mismatched 'Microsoft.VisualBasic.dll'.'

I've looked and, in fact, the Silverlight version of the class Microsoft.VisualBasic.Information does not contain member IsNumeric. So I appear to be picking up the correct libraries using the sdkpath option. But I have no idea why I'm trying to call that method in the first place.how to successfully compile source code dynamically into a Silverlight compatible class library?

View 1 Replies

Download A File In Silverlight?

Oct 12, 2010

I want to download a file in Silverlight. It works in normal VB just fine:

VB-Download
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim wclient As Net.WebClient = New Net.WebClient()
AddHandler wclient.DownloadStringCompleted, AddressOf ListDownloaded

[code]....

It utterly fails. At the bottom of Firefox it SAYS the file is downloading, but NOTHING happens other than that...

View 4 Replies

Facebook Like Button With Silverlight?

Oct 27, 2011

I have created a silverlight app that consits of like buttons within specific usercontrols (all in one asp page). Ie.foodingtons.net/index.aspx?id=211

It is all incorporated within the silverlight app on one page. Hence when the control is loaded the meta tags are updated and the like button is placed within an iframe and linked to the appropriate page. When the like button is pressed a javascript function is invoked which changes a picture behind the silverlight obj. This picture in theory should be used as the default image after the like button is pressed (on clients page). But it seems to be stuck on old images. Ie. foodingtons.net/index.aspx?id=211(the above is using an image which doesnt even exist)foodingtons.net/index.aspx?id=218(is using an image from the main page)foodingtons.net/index.aspx?id=219(fails.. the website is inaccessable)

I have also tried create the open graph tags with in the page to reference new images but to no avail.

I'm using the following facebook tool to debug as well[URL]..

View 2 Replies

Implementing MVVM In Silverlight?

Nov 11, 2009

IM Looking at Implementing MVVM in Silverlight.Kind of new to Silverlight and I'm Definately new to MVVM Pattern.I get it all But I want A set of small Prism VB.Net MVVM exmaples if that makes sense.

View 1 Replies

Silverlight 4 - DomainContext Not Being Generated

Mar 28, 2011

I have added my domain service but when I build my web project the DomainContext never gets generated. I am new to RIA Services. Here is my Domain Service
Option Compare Binary
Option Infer On
Option Strict On
Option Explicit On
Imports System
Imports System.Collections.Generic
[Code] .....

View 2 Replies







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