I made a mail sender in Silverlight and it have the moderation on the attachments and allow people to send an e-mail with CC BCC even though they dont have an email account
Check out here
Check out here
VS2010 beta + Silverlight 3 It keeps showing "Unable to Start Debugging. The Silverlight managed debugging package isn't installed".Finally the problem can be solved by installing Developer Runtime.
An image in a post Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec...
Cash-Out Refinance For many, their homes are just not dwellings that protect them against rain, sun, and wind. But they are piggy banks, which can be used to raise some urgent money, even if...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;
using System.Windows.Markup;
using System.ComponentModel;
namespace Testing
{
public partial class Page : UserControl
{
string[] keystring = new string[49] { "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "<", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]", "\\", "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'", "Z", "X", "C", "V", "B", "N", "M", ",", ".", "?", " " };
public Page()
{
InitializeComponent();
Loaded += new RoutedEventHandler(Page_Loaded);
}
public void Page_Loaded(object sender, RoutedEventArgs e)
{
for (int i = 0; i <= 48; i++)
{
Button k = new Button();
k.Content = keystring[i];
k.Width = 20; k.Height = 20;
if (i == 48 )
{
k.Width = 220;
k.Margin = new Thickness(-30, 80, 0, 0);
}
else if (i >= 38 )
{
k.Margin = new Thickness((i-38 ) * 20 - 20, 60, 180 -((i-38 ) * 20 - 20), 20);
}
else if (i >= 27)
{
k.Margin = new Thickness((i-27) * 20 - 30, 40, 180 - ((i-27) * 20 - 30), 40);
}
else if (i >= 14)
{
k.Margin = new Thickness((i - 14) * 20 - 40 , 20, 180 - ((i - 14) * 20 - 40), 60);
}
else
{
k.Margin = new Thickness(i * 20 - 50, 0, 180 - i * 20 + 50, 80);
}
KeyBoard.Children.Add(k);
k.Click += new RoutedEventHandler(k_Click);
}
}
void k_Click(object sender, RoutedEventArgs e)
{
Button temp = sender as Button;
if (temp.Content.ToString() == "<" )
{
if (tb.Text.Length != 0)
{
tb.Text = tb.Text.Remove(tb.Text.Length - 1, 1);
}
}
else
{
tb.Text += temp.Content.ToString();
}
}
#region Drag and Drop Starts Here
private bool isMouseCaptured;
private Point mousePosition;
void DragNDrop_MouseMove(object sender, MouseEventArgs e)
{
FrameworkElement item = sender as FrameworkElement;
if (isMouseCaptured)
{
// Calculate the current position of the object.
double deltaV = e.GetPosition(null).Y - mousePosition.Y;
double deltaH = e.GetPosition(null).X - mousePosition.X;
double newTop = deltaV + (double)KeyBoard.GetValue(Canvas.TopProperty);
double newLeft = deltaH + (double)KeyBoard.GetValue(Canvas.LeftProperty);
// Set new position of object.
KeyBoard.SetValue(Canvas.TopProperty, newTop);
KeyBoard.SetValue(Canvas.LeftProperty, newLeft);
// Update position global variables.
mousePosition = e.GetPosition(null);
}
}
void DragNDrop_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
FrameworkElement item = sender as FrameworkElement;
isMouseCaptured = false;
item.ReleaseMouseCapture();
mousePosition.X = mousePosition.Y = 0;
item.Cursor = null;
item.Opacity *= 2;
}
void DragNDrop_MouseEnter(object sender, MouseButtonEventArgs e)
{
FrameworkElement item = sender as FrameworkElement;
mousePosition = e.GetPosition(null);
isMouseCaptured = true;
item.CaptureMouse();
item.Opacity *= 0.5;
}
#endregion Drag and Drop Starts Here
}
}
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;
using System.Data.SqlClient;
using System.Web.Script.Services;
using System.Text;
using System.Configuration;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public class MyService : System.Web.Services.WebServices
{
public MyService()
{
}
[WebMethod]
public string Get_StaffInfo(string id)
{
int nElement = 0;
StringBuilder strReturn = new StringBuilder();
strReturn.Append("namespace SL2WebSrv
{
public partial class Page : UserControl
{
WebServiceProxy.ServiceSoapClient mydata = new SL2WebSrv.WebServiceProxy.ServiceSoapClient();
public Page()
{
InitializeComponent();
Loaded += new RoutedEventHandler(Page_Loaded);
}
void Page_Loaded(object sender, RoutedEventArgs e)
{
mydata.Get_StaffInfoAsync("1");
mydata.Get_StaffInfoCompleted += new EventHandler(mydata_Get_StaffInfoCompleted);
}
void mydata_Get_StaffInfoCompleted(object sender, SL2WebSrv.WebServiceProxy.Get_StaffInfoCompletedEventArgs e)
{
if (e.Error == null)
{
Canvas newStaff = XamlReader.Load(e.Result) as Canvas;
LayoutRoot.Children.Add(newStaff);
}
}
}
}
| Date: |
| July 11, 2008 (Friday) |
| Time: |
| 2:30 - 4:30pm (Registration: 2:00 – 2:30pm) |
| Venue: |
| Grand Ballroom, Lower Lobby, Conrad Hong Kong, Pacific Place, 88 Queensway, Hong Kong |
| Language: |
| Cantonese |
| Admission: |
| FREE |
| Enquiry Hotline: |
| 2388 9600 |
Smoky | Converted by Free Blogger Template
Powered by Blogger | Design by Web Site Hosting
