|
Deresen wrote: 1.000 dollar
Just one? Will you do my work as well?
जय हिंद
|
|
|
|
|
Well 1.000 is one thousand in The Netherlands
|
|
|
|
|
Deal cancel.
जय हिंद
|
|
|
|
|
|
My bid id $200 U.S.D......
Have a Happy Coding.....
|
|
|
|
|
Hello,
I have a form in c # and two buttons on form, i want to open word document file on click on one button and an other button click i want to open PDF file.
what should i do should i add any reference or what code is required.
please do replay
Thanx
|
|
|
|
|
|
Sajjad Leo wrote: want to open word document file on click on one button
private void btnExeDoc_Click(object sender, EventArgs e)
{
try
{
Process.Start("report.doc");
}
catch (Win32Exception ex)
{
MessageBox.Show(ex.Message);
}
}</code>
<blockquote class="FQ"><div class="FQA">Sajjad Leo wrote:</div>an other button click i want to open PDF file</blockquote>
<pre><code> private void btnExePdf_Click(object sender, EventArgs e)
{
try
{
Process.Start("report.pdf");
}
catch (Win32Exception ex)
{
MessageBox.Show(ex.Message);
}
}
8.Kelvin()
{
while (!(the machine can program itself))
Wont_stop_coding = true;
}
|
|
|
|
|
Dear your code is not working i am trying it but there is problem.
let me explain it again i want to display text file and pdf file on the button click.
i need this only.
|
|
|
|
|
Hi dear,
Pls remember to add
using System.Diagnostics;
8.Kelvin()
{
while (!(the machine can program itself))
Wont_stop_coding = true;
}
|
|
|
|
|
I have done this, but its path which i given in code is in C drive but if i want to add file in solution explore then is their any different technique for displaying ms word file or pdf file.
|
|
|
|
|
Hi,
I would like to write AddIn for Office 2003 but I want to know the pros and cons while developing the same using VC++ .Net. Which approach is better for development.
Thanks
SNI
|
|
|
|
|
This is not a VC++.Net Forum or even not related to MS Office
Choose right forum to get answer to you queries
|
|
|
|
|
I think i put the question wrong way. I would like to ask what are the advantages of writing COM AddIn using C# over VC++.
Thanks
SNI
|
|
|
|
|
|
IMO you can write in any of the language since both will be equally powerful. Since you will be having same framework to support your code, it does not really matter which language you use.
Check this[^] link. Might help.
जय हिंद
|
|
|
|
|
Hey all...
I came across a very basic problem ....
Suppose I made a simple Notepad like editor...
Now I want that whenever I double click on any presice extension file . .. i.e. .jpg or anything...
It should open my application and the file should be opened ....
It is somewhat like opening a word document by double clicking the .doc file ...
This is exactly what I want in my application...
Thanx in advance techies...
|
|
|
|
|
|
But after registering also..
Suppose it opened the application.. But how to load that file because of which it is opened...
Did you understand the problem ..
|
|
|
|
|
If I'm not mistaken windows will automatically add the path of the file as an argument...
|
|
|
|
|
you have to associate your application with that file type. 2 ways to do that
1. Just right click on any file of that type > open with > Choose Default Program > and browse your app and check 'Always use this pro....'
2. You can directly edit registry, read this article[^]
plus when you done, you have catch the arguments that will give you that file path you open by double click.
you can get through Main(string[] args) or Environment.CommandLineArgs
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I think this might surely work . ..
This was the thing that I want. .
Thanks dude. .
|
|
|
|
|
jaypatel512 wrote: I think this might surely work .
Think, might and surely.
जय हिंद
|
|
|
|
|
It worked dude. ..
Thanks a lot all of you . ..
I really appreciated man . .
|
|
|
|
|
Hi All
Look at the code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace DealingWithImages
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.label1 = new System.Windows.Forms.Label();
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(53, 52);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(211, 13);
this.label1.TabIndex = 2;
this.label1.Text = "This is windows forms do you like it?";
this.Controls.Add(label1);
Image myimage = Image.FromFile(@"Give path of the image");
this.BackgroundImage = myimage;
this.MaximumSize = new System.Drawing.Size(400, 400);
this.MinimumSize = new System.Drawing.Size(400, 400);
}
protected override void OnMove(EventArgs e)
{
base.OnMove(e);
this.Refresh();
this.Invalidate();
}
protected override void OnPaintBackground(PaintEventArgs e)
{
if (this.BackgroundImage != null)
{
e.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;
e.Graphics.DrawImage(this.BackgroundImage, 0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height);
}
else
{
base.OnPaintBackground(e);
}
}
}
}
I have to put image on the background of my windows form which I am doing using the code above.
I have some controls which I am generating at runtime.
Now the challenge is the background color of the control(here label1) looks odd on the form.
Does anybody know How to solve it?
Thanks
Regards
THE SK
|
|
|
|