|
Hello Ed,
I have number of .jpg images as a input.
My user requirement is to display these images one after the other so that its look like playing a video.
One simple solution is to link image one after the other and display it with specific time.
Please suggest me to implement the above solution in C#?
Regards
Praveen
|
|
|
|
|
All you need for a simple solution is a PictureBox for displaying the picture, a timer for changing the pictures that's it.
If you create an array of strings to hold the filenames and another variable to hold the index of the picture that's currently being displayed then the code in the timer's Tick event can be something like this:
private void timer_Tick(object sender, EventArgs e)
{
this.index = ((this.index++) % (this.images.Count));
this.pictureBox.Image = Image.FromFile(this.images[this.index]);
}
Et voila!
Of course this is a quick and dirty solution, you should be able to expand on it.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
hello ,
i am creating a client server application for a firm in bangalore. i actually want to take backup of server database and restore them through C# programming.i am using dotnet2003 and sqlserver2000. this cannot be upgraded for some partucular reasons.
plz help.
thanks in advance
|
|
|
|
|
This might be useful, also try searching google.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
i want to create custom toolbar/menu bar using C# .net
add-in shared extensibilites project type with integrated
visio 2003 but problem is that when i added first time
custom toolbar after open visio then result right.next time
i was modify the codes after check result,then not display
and an other available any custom toolbar/menu bar in visio
not present plz solve my problem.
thnx Ali J
Ali J
|
|
|
|
|
hello guys
i am a begginner in c# i need a help on hoew to call a text from a textbox
and make it as a input to yhe another textbox . i ahve given the code and i have underlined the imp part.
eg:
string[] numbers =
{
"123-123-1345",(here i want to get a text from a text box)
};
string sPattern = "^\\d{3}-\\d{3}-\\d{4}$";
foreach (string s in numbers)
{
if (System.Text.RegularExpressions.Regex.IsMatch(s, sPattern))
{
System.Console.WriteLine(" - valid");
}
else
{
Close();
}
}
, kindly help
|
|
|
|
|
if the textbox was called MyTextBox the code would look like:
string[] numbers = <br />
{<br />
"123-123-1345",MyTextBox.Text<br />
};
pretty intuative huh?
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
hello guys
i am a begginner in c# i need a help on hoew to call a text from a textbox
and make it as a input to yhe another textbox , kindly help
|
|
|
|
|
textbox2.text=textbox.text;
coolsweety
|
|
|
|
|
Hi Friends,
This is Dayakar,
I created one project and setup that project
I loaded the setpup in some other system
Now i want to create a shortcut for that project after setup is compled in some othersystem
how can i achieve this
|
|
|
|
|
|
what are the main diffrences between oledb object and odbc object
in ado.net.........?
rahul
|
|
|
|
|
Hi
This is Dayakar
I have one problem
i created one project and set the setup and i loaded in the remote system
In the remote system it is working fine but in that project i have one .aspx page
so that the remote user is changing the data in the .aspx
how can i make the .aspx pages are readonly
i.e it does not allow the remote users to change the data in the .aspx page
|
|
|
|
|
You need to set the file permissions up on the remote server so that only ASP.NET can access your aspx files. I get a bit confused myself about this, but I believe you can tell IIS which account to run under, and further to that in your web.config you can tell ASP.NET what account to impersonate when doing its stuff. Or something like that.
Post a question in the ASP.NET forum.
Regards,
Rob Philpott.
|
|
|
|
|
I would like to allow users to drag a field on the form. Is there someone who can point me in the right direction.
|
|
|
|
|
|
you told me that this problem is due to my add-in which i developed in C#.Net.But sir i am not facing any sort of problem inside my add-in code because it compiles in a well way but when i install it then i don`t see any sort of component add-in on visio 2003 interface as i told you that earlier it was running and i could see the add-in on visio 2003 interface but after a few minutes when i uninstalled the add-in and again i installed then it was not running.
Now you please tell me that what is the erason of this problem whether this is because of .net 2005 or visio 2003 or myy com add-in code.
Thanks.
Salman
|
|
|
|
|
i am working on an application in which i want to get user login information from client pc and save this information on server in a hashtable and then broadcast this hashtable data to all clients in a LAN and this data should be store in a listviewbox so that next time i can select a user informtion from the listviewbox.
Please if some body have any solution.
|
|
|
|
|
Hi Friends,
I am developed a new personal web site. I want to host it in my LAN. I installed IIS 5.0. How can I host it in my lan.
Please help me
Thanks in advance
Jijo
JIJO BABY - Lets Play C#
|
|
|
|
|
Maybe by asking in the ASP.NET or the OS / SysAdmin forums?
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Jijo,
After IIS 5 is installed, you can right click the folder which you want to be accessible from IIS, select 'WebSharing' and click 'Share this folder'. Give a name for the virtual directory name.
Now your application is accessible from http://<yourservername>/<virtualdirectoryname>
If your Windows is a server flavor like Windows 2000 Server or Advanced Server or Windows Server 2003, you would be getting a 'New Website wizard' in inetmgr.
But to make a new DNS Name etc, you may need your system administrator or helpdesk assistance.
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At:
http://www.dotnetjunkies.com/weblog/deepak/ http://deepakvasudevan.blogspot.com/ http://deepak.blogdrive.com/
|
|
|
|
|
i use .net framework1.1, i would like to double-click notifyIcon to show a webbrowser,but the webbrowser always shows in the left and top of the screen,
i want your help, the code is follow :
namespace WindowsApplication8
{
///
/// Form1 的摘要说明。
///
public class Form1 : System.Windows.Forms.Form
{
private AxSHDocVw.AxWebBrowser axWebBrowser1;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenu contextMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.ComponentModel.IContainer components;
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.axWebBrowser1 = new AxSHDocVw.AxWebBrowser();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).BeginInit();
this.SuspendLayout();
//
// axWebBrowser1
//
this.axWebBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.axWebBrowser1.Enabled = true;
this.axWebBrowser1.Location = new System.Drawing.Point(0, 0);
this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
this.axWebBrowser1.Size = new System.Drawing.Size(292, 266);
this.axWebBrowser1.TabIndex = 0;
//
// notifyIcon1
//
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "notifyIcon1";
this.notifyIcon1.Visible = true;
this.notifyIcon1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDown);
this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
//
// contextMenu1
//
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.Text = "Exit";
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(292, 266);
this.Controls.Add(this.axWebBrowser1);
this.Name = "Form1";
this.Text = "Form1";
this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.axWebBrowser1)).EndInit();
this.ResumeLayout(false);
}
#endregion
static void Main()
{
Application.Run(new Form1());
}
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
object flags = (2 | 4 | 8);
object targetFrame = null;
object postData = null;
object headers = null;
this.axWebBrowser1.Navigate("http://www.google.com",ref flags,ref targetFrame,ref postData,ref headers);
if (this.WindowState==FormWindowState.Minimized)
this.WindowState=FormWindowState.Normal;
this.Activate();
this.notifyIcon1.Visible=false;
}
private void Form1_Load(object sender, System.EventArgs e)
{
this.notifyIcon1.Visible=true;
object flags = (2 | 4 | 8);
object targetFrame = null;
object postData = null;
object headers = null;
this.axWebBrowser1.Navigate("http://www.google.com",ref flags,ref targetFrame,ref postData,ref headers);
}
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
e.Cancel=true;
this.Hide();
this.ShowInTaskbar=false;
this.notifyIcon1.Visible=true;
}
private void menuItem1_Click(object sender, System.EventArgs e)
{
this.notifyIcon1.Visible=false;
Application.Exit();
}
private void notifyIcon1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
Control control = new Control(null,Control.MousePosition.X,Control.MousePosition.Y,1,1);
if (e.Button==MouseButtons.Right)
{
control.Visible = true;
control.CreateControl();
Point pos = new Point(1,1);
this.contextMenu1.Show(control,pos);
}
}
}
}
Thanks
|
|
|
|
|
Perhaps you should mention what it is that you need help with?
---
b { font-weight: normal; }
|
|
|
|
|
i write the question in my message:i want to double-click notifyicon to open a webbrowser in it's right position.but it always show in left and top of screen
if you don't know my question clearly, please run the code i gived,i could forward your help
thanks
|
|
|
|
|
What in your opinion is the "right" position for the browser, then?
---
b { font-weight: normal; }
|
|
|
|