Hi Sorry I do not have much background on what you are trying to do but can you not do something like this:
public class Class1
{
public string CustomerName { get; set; }
public Class1()
{
Class2 c2 = new Class2();
CustomerName = c2.GetVariables fromClass2();
}
}
public class Class2
{
private string FirstName = "Joe";
private string...
User Profile
Collapse
-
Hi, Have a look at this:
Code:''' <summary> ''' Convert a byte array to an Image ''' </summary> ''' <param name="NewImage">Image to be returned</param> ''' <param name="ByteArr">Contains bytes to be converted</param> ''' <remarks></remarks> Public Sub Byte2Image(ByRef NewImage As Image, ByVal ByteArr() As Byte) ' Dim ImageStream
Leave a comment:
-
Here are some resources for you to investigate it further:
http://dotnet.dzone.co m/news/dependency-properties?utm_ source=feedburn er&utm_medium=f eed&utm_campaig n=Feed%3A+zones %2Fria+%28RIA+Z one%29
http://www.codeproject.com/KB/WPF/De...tyCodeGen.aspx
http://www.silverlight show.net/tips/Tip-How-to-declare-a-dependancy-property-in-Silverlight.asp x
http://amazedsaint.blo g...Leave a comment:
-
I don't see how this is related to development. Maybe if you are more specific in your question we can assist you better.Leave a comment:
-
I agree with @rotaryfreak. Really think about what type of applications you want to develop and then focus on an appropriate language which is well suited and used in that area. E.g. I'm a GIS Developer. I specialize in writing ESRI ArcGIS applications. I program in C# and Silverlight. Previously I worked as a analyst developer where we wrote CRM and Machine Rental Systems. There I programmed in VB.Net.Leave a comment:
-
Silverlight App running in Silverlight 3 but not Silverlight 4
Hi,
I have encountered an issue today. I have a application which was originally developer using Visual Web Developer Express 2010 and Silverlight 4. I also had Silverlight 3 installed on my development PC. I have previously tested switching between 3 and 4 in the properties page and had no trouble running the app.
Today.. I installed a full version of VS2010 Professional. I re-installed Silverlight 3 and 4 as well.... -
Look at creating a Item Template for the combo box. Then add 2 columns one for Name and other for age. You ban then try to sort on the column you want.
I'm not 100% on this but it is where I would start looking.Leave a comment:
-
Use a try/catch to catch the exception then pass the exception to something like this method:
Code:private void SHOWEXCEPTION(Exception e) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("Messages"); Exception wex = e; while (wex != null) { sb.AppendFormat("[{0}]:{1}\n",wex.GetType().Name,wex.Message);
Leave a comment:
-
-
Many thanks team. I will give it some more attention this weekend and next week and If I find a solution I will share.Leave a comment:
-
retrieve value from a hidden field on asp.net page
Hi, I have a access form, which has some text fields on it and a few buttons and a web browser control.
How it works:
- user enters some information in the text field.
- user clicks button to go the the web page.
- web page opens a Silverlight application.
- user does what they need to and saves (in this case) a graphic on a map.
- The Silverligth application takes the ID of the graphic and places it on the ASP.Net page using
-
Ok Found my own answer so here is is:
1. Add a Javascript method :
function ShutDownApplica tion()
{
window.open('', '_self', '');
window.close();
}
2. in your Silverlight class:
using System.Windows. Browser;
// to call the above Javascript method use the following line:
HtmlPage.Window .Invoke("ShutDo wnApplication") ;...Leave a comment:
-
Thanks, @ADezii I'm getting to this in this week and will give it a go. Ill let you know one its sorted.Leave a comment:
-
How to Shut-down a Silverlight Application
Hello team,
I'm building a GIS Silverlight 4 application. I need to shut down the whole thing after a save event has taken place.
So..
1. User saves a new graphic to the SDE database,
2. Messagebox shows success or fail..
3. User clicks OK
3. Application and browser shuts down..
Has anyone got some code for me on how to do this please?
Many Thanks,
... -
Open a webpage inside a MS Access Form
Hi guys. I am developing a Silverlight application for a client. Currently the application opens in a blank aspx page.
The client's requirement are a little different, but they have good reason: they need to open the web page INSIDE a MS Access form.
Not being an expert on Access at all, is there a control I can use to open a web page inside the form? Something like a web browser control?
Thanks,... -
I have found a solution to this:
using System.Reflecti on;
// Returns a System.Windows. Media.Colors value from a input string of name of Color.
public Color GetThisColor(st ring colorString)
{
Type colorType = (typeof(System. Windows.Media.C olors));
if (colorType.GetP roperty(colorSt ring) != null)
{
object o = colorType.Invok eMember(colorSt ring,...Leave a comment:
-
How do I convert a string value to a SolidColorBrush in Silverlight and C#
Hi team,
I have a silverlight application in which I am drawing a rectangle. The background of this rectangle must be set according to a color stored in a SDE database. The field in the database is a string and stored e.g. "Green".
I retrieve the string from the SDE database:
var col = "StoredcolorVal ue." + RoadBridgeData. Attributes["COLOR"].ToString();
But... -
Just an update on this question:
I figured it out and found I had my CSS styles a bit messed up. I had multiple <style></style> tags in the master page which confused the hell out of it. So I moved the styles between one set of <style></style> and deleted the second pair.
Now its all working. I'm new at this but getting there!Leave a comment:
-
How do I stop a CSS menu from hiding behind a iFrame
Hi Team,
I have a problem on my site I need help with: Site location:
http://www.loanburger.com/CapeEpic.aspx
You will see the menu drop down hides behind the iFrame in which the pdf is opened.
The Menu sits on a master page and the iFrame on the CapeEpic.aspx page.
Any idea on how to fix this please? I read up that I need to set a z-index but I have no idea where to do that... -
Thanks mate.
For a saddles - I now ride a specialized phenom sl saddle. Very comfortable.
Enjoy.Leave a comment:
No activity results to display
Show More
Leave a comment: