In this article i will show you how to add image tag dynamically using JQuery. In this article i will show you how to add image tag using JQuery/JavaScript. First of all add a .JS script in the page. When we click on button then generate a jquery function. In this function, first to add a image tag with "$" sign. Also add image attribute with the image . Add dynamically created image in the division.
This thread solve all realted questions which is generated on open new form, close existing wpf form c#. Also this thread solve other related thread like:
WPF Application still runs in background after closing.
My Windows Store app is still running in debug mode after I close it.
VS2012 Debugging fails on subsequent runs.
WPF Main application stops responding if a child window is being moved around.
Application doesn't exit if it creates a window which is not shown.
How main WPF window knows when secondary WPF window is closed.
When shutting down the application, not all windows are closed.
How to connect WPF Application project to Windows Game project?
Clarification on WPF Window.Show() and Window.Close() and how they work with Multiple Windows.
WPF App Doesn't Shut Down When Closing Main Window.
Now the solution of all thread is, following steps which is mentioned below:
Step-1 : Add two new window in wpf solution explorer. like first.xaml and second.xaml
Step-2 : Add a button control in first window from the toolbox.
Step-3 : Add this code into your first.xaml.cs file.
In this article i will show you how to crop image using JQuery, In previous article i was show you how to define the crop section of the image using JQuery. In this article i will show you how to upload cropped image into specified directory using ASP.NET c#. Copy this code and paste into your page.
In this aricle i have two file for cropping the image , first to download the file from this url. Now in the code behind use Rectangle class is used to defined the section of the image. Now put the coordinate,which is retrieved from JQuery Jcrop function into the rectangle class.
Introduction
In this article i will show you how to design Scroll Top button in bottom right corner also when we click on it then we reach at top position of web browser. I will give an example of ScrollTop button which is used to scroll the page at top position.
Description
First to design the button at bottom right corner using this line of code.
<div align="right">
<a href="javascript:;" id="scrolltop1">▲</a>
</div>
After that apply formatting on button using css class.
Now, scroll the page using script file, which is mentioned below.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
$(function () {
$('#scrolltop1').bind("click", function () {
$('html,body').animate({ scrollTop: 0 }, 1000);
return false;
})
})
</script>
In this script function when we click on hyperlink button, which is mentioned in bottom right corner then run animate function. In animate function we have one property that is scrollTop which is used to scroll the page.
</head>
<body>
Welcome to dotprogramming.blogspot.com<br/>
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
v
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
Welcome to dotprogramming.blogspot.com<br />
<div align="right">
<a href="javascript:;" id="scrolltop1">▲</a>
</div>
</body>
</html>
If you want to crop image then use JQuery Crop plugin. Download JQuery Crop Plugin from Here. Here you get two file, first is jquery.JCrop.js and second one is jquery.Jcrop.css file. Both of these files are used to set the crop section area on image. Lets check the example of Jquery crop section area of image.
The DriveInfo class provides access to information related to a drive, such as space availabe on a drive, total storage space of the drive and drive name. The DriveInfo class can also be used to query the format of a drive, such as NTFS or FAT and type of the drive, such as fixed, CD-ROM, or removable. This class throws an exception if a drive is currently not ready. For example, if we want to get information of a CD-ROM that does not contain a CD in it, The DriveInfo class will throw an exception. We can avoid such exceptions by using the IsReady property of the DriveInfo class. If the DriveInfo property returns true, we can access a drive without an exception.
In previous example we have been accessed Logical drives of the system. See previous image
Now in this example we will access Logic drive information such as drive type , drive size and free space of the drive. So first we take four label control to the design window after that handle comboBox1_SelectedIndexChanged event in the program.
Complete code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
Introduction
In this article i will show you how to draw using pencil, i mean to say your mouse cursor behaves like pencil on specific area of web browser. You can draw something on web browser using mouse cursor. Also you can use this for digital signature. Through this article i will explain how to design paint online for drawing something.