0% found this document useful (0 votes)
78 views

Increase Form: "User32.Dll" "Releasecapture"

The document defines multiple classes that are used to create a Windows form application in C#. The main class is Productos, which contains logic to calculate a new price based on an input price and show different form screens depending on the price. It calls other forms like Increase and normal to display output or continue input. The Program class defines the application entry point to load and run the Productos form.

Uploaded by

Rayleigh 05
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Increase Form: "User32.Dll" "Releasecapture"

The document defines multiple classes that are used to create a Windows form application in C#. The main class is Productos, which contains logic to calculate a new price based on an input price and show different form screens depending on the price. It calls other forms like Increase and normal to display output or continue input. The Program class defines the application entry point to load and run the Productos form.

Uploaded by

Rayleigh 05
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

namespace #1

{
public partial class increase: Form
{

[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]


private extern static void ReleaseCapture();

[DllImport("user32.DLL", EntryPoint = "SendMessage")]


private extern static void SendMessage(System.IntPtr hWnd, int wMsg, int
wParam, int lParam);
public increase ()
{
InitializeComponent();
}

private void increase_Load(object sender, EventArgs e)


{

private void label1_Click(object sender, EventArgs e)


{
this.Close();

private void textdes1_TextChanged(object sender, EventArgs e)


{

private void label7_Click(object sender, EventArgs e)


{
this.WindowState = FormWindowState.Minimized;
}

private void label9_Click(object sender, EventArgs e)


{

Productos pro = new Productos();


pro.Show(this);
}

private void panelname_MouseDown(object sender, MouseEventArgs e)


{

ReleaseCapture();
SendMessage(this.Handle, 0x112, 0xf012, 0);
}

private void panel1_MouseDown(object sender, MouseEventArgs e)


{
ReleaseCapture();
SendMessage(this.Handle, 0x114, 0xf015, 0);
}
}
}
namespace #1
{
public partial class Productos: Form
{
[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]
private extern static void ReleaseCapture();

[DllImport("user32.DLL", EntryPoint = "SendMessage")]


private extern static void SendMessage(System.IntPtr hWnd, int wMsg, int
wParam, int lParam);

public Productos()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

private void button1_Click(object sender, EventArgs e)


{
double pre, npr, npp;

pre = Convert.ToInt32(textPre.Text);

if (pre <= 1500)


{
npr = pre * 0.11;

npp = npr + pre;

Increase inc = new Increase ();

inc.textdes1.Text = npr.ToString();
inc.textnew1.Text = npp.ToString();
inc.textname1.Text = texName.Text;
inc.Show(this);
texName.Text = "";
textPre.Text = "";

}
else
{

normar nor = new normar();


nor.textname2.Text = texName.Text;
nor.textpres2.Text = pre.ToString();
nor.Show(this);
}
}

private void label3_Click(object sender, EventArgs e)


{

private void label6_Click(object sender, EventArgs e)


{
this.Close();
}

private void label7_Click(object sender, EventArgs e)


{
this.WindowState = FormWindowState.Minimized;

private void panelname_MouseDown(object sender, MouseEventArgs e)


{

ReleaseCapture();
SendMessage(this.Handle, 0x114, 0xf015, 0);
}

}
}
}
namespace Problema1
{
public partial class normal: Form
{
[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]
private extern static void ReleaseCapture();

[DllImport("user32.DLL", EntryPoint = "SendMessage")]


private extern static void SendMessage(System.IntPtr hWnd, int wMsg, int
wParam, int lParam);
public normar()
{
InitializeComponent();
}

private void label6_Click(object sender, EventArgs e)


{

Application.Exit();
}

private void label3_Click(object sender, EventArgs e)


{

Productos pro = new Productos();


pro.Show(this);
}

private void label7_Click(object sender, EventArgs e)


{
this.WindowState = FormWindowState.Minimized;

private void timer1_Tick(object sender, EventArgs e)


{

private void button1_Click(object sender, EventArgs e)


{

private void panelname_MouseDown(object sender, MouseEventArgs e)


{

ReleaseCapture();
SendMessage(this.Handle, 0x114, 0xf015, 0);
}
}
}
}

namespace #1
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Productos());
}
}
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy