|
Hi
I am making the setup of my application using wix.
I want to Write application version no and installation path to registry so that it write to the path I define in wix code
Please help
Thanks
|
|
|
|
|
Your solution is here[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Thanks
But How can I capture the application installation path and store it to registry
as user can install it to c drive or any other drive or location.
|
|
|
|
|
|
in my c# application i made a webrequest to download a file , it works well in xp, but in win 7 it gives a webexception saying timeout, can any one help me with this.
|
|
|
|
|
Do you get the same exception after switching off the firewall?
This statement is false.
|
|
|
|
|
drawn an rectangle on the image using picture box.
quires
1. when tried to zoom image the drawn rectangles needs to be placed on the drawn area.
2. Also draw another rectangle (in zoomed mode).
3. when i zommed out the rectangle needs to resized.
How can i achieve this.
I achieved this by using graphics.drawrectangle but i don't want to draw rectangle on the image because it's stay permanently on the image.
Please help on this......
public void ZoomIn()
{
if (sz1.Width >= 800 * 6)
MessageBox.Show("Max ZoomIn");
else
{
sz1.Width += 100;
sz1.Height += 100;
pictureBox1.Size = sz1;
pictureBox1.Invalidate();
}
}
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
if (mybitmap == null)
{
mybitmap = new Bitmap(pictureBox1.Image.Width, pictureBox1.Image.Height);
mybitmap.SetResolution(300, 300);
}
rect = new Rectangle(e.X, e.Y, 0, 0);
pictureBox1.Invalidate();
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
if (mybitmap == null)
{
return;
}
using (Pen pen = new Pen(Color.Green, 2))
{
foreach (Rectangle r in rectangles)
{
e.Graphics.DrawRectangle(pen, r);
e.Graphics.DrawString(lab[c].ToString(), new Font(lab[c].ToString(), 8F), new SolidBrush(label1.ForeColor), r);
}
}
}
modified on Tuesday, July 13, 2010 4:15 AM
|
|
|
|
|
You can't seriously expect anyone to wade through all of this code. Focus in on a specific issue and show a code fragment: if anyone wants to help and wants to see more they'll ask but you'll not get an answer whilst your question remains like this.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Sorry i thought that full code will use to analyze the issue. Now i have edited and pasted the code. please advice me....
I have drawn rectangle. Now i tried to zoom the image and succeed on that. my problem is when i zoom the image the rectangle drawn stay in same size, but rectangle also needs to be increase along with image.
Please help on this....
|
|
|
|
|
It looks like you are not resizing the rectangle.
Just racking up the postings
|
|
|
|
|
just tried to resize the rectangle as below (for x and y ). but this co-ordinate varies from point to point.
public void ZoomIn()
{
if (sz1.Width >= 800 * 6)
MessageBox.Show("Max ZoomIn");
else
{
sz1.Width += 100;
sz1.Height += 100;
pictureBox1.Size = sz1;
c = 0;
rect1 = new Rectangle(rectangles[c].X+((pictureBox1.Width/rectangles[c].Height)+(pictureBox1.Width/100)),rectangles[c].Y+((pictureBox1.Height/rectangles[c].Width)), rectangles[c].Width, rectangles[c].Height);
rectangles.RemoveAt(c);
rectangles.Insert(c, rect1);
rect = new Rectangle(0, 0, 0, 0);
}
}
How to resize it...
modified on Tuesday, July 13, 2010 7:01 AM
|
|
|
|
|
ratio = Convert.ToDouble(sz1.Width) / Convert.ToDouble(pictureBox1.Width);
rect1.X = Convert.ToInt16((rectangles[c].X) * ratio);
rect1.Y = Convert.ToInt16((rectangles[c].Y * ratio));
rect1.Width = Convert.ToInt16(rectangles[c].Width * ratio);
rect1.Height = Convert.ToInt16(rectangles[c].Height * ratio);
rectangles.RemoveAt(c);
rectangles.Insert(c, rect1);
pictureBox1.Size = sz1;
|
|
|
|
|
Below is sample code from one of my recent apps. I used this pattern a lot when designing searchable objects. I know that by appearances, there will be more than two method calls involved.
However, I've read that the C# compiler inlines short blocks of code.
Will the "Contained" method be inlined at compile time?
public bool Contains(BindingPathNodeType nodeType)
{
return IndexOf(nodeType) != -1;
}
public int IndexOf(BindingPathNodeType nodeType)
{
int intCount = parsedPathNodes.Length;
for (int i = 0; i < intCount; i++)
if (parsedPathNodes[i].NodeType == nodeType)
return i;
return -1;
}
The mind is like a parachute. It doesn’t work unless it’s open.
|
|
|
|
|
|
# DEFINE Contains(x) (IndexOf(x) != -1)
|
|
|
|
|
What is this? Some kind of shorthand?
The mind is like a parachute. It doesn’t work unless it’s open.
|
|
|
|
|
Yeah, kinda.
|
|
|
|
|
If BindingPathNodeType is a reference type then there seems to be nothing that prevents inlining.
But, as has been said, you still don't know for sure whether it will be inlined.
What has not been said though is that it also depends on whether you NGEN, and whether it's 64bit, and 64bit NGEN is completely different from anything else, IIRC not even created by the same team (instead of being developed by the CLR team, it was developed by the Visual C++ team)
'Contains' is not a leaf method, while I have read nothing about non-leaf methods not being inlined, in other compilers inlining is often done on leaf methods first.
|
|
|
|
|
Thanks for the heads up. I don't NGEN any of my code so I'm probably in trouble.
I hate having to enter the same code block twice because:
1. It looks dirtier.
2. More lines to (possibly) debug.
The mind is like a parachute. It doesn’t work unless it’s open.
|
|
|
|
|
I don't think I can use ClickOnce (or can I?) because it's a plugin....
|
|
|
|
|
|
If you architect the application correctly with plugin modules, or MEF, it can be used to deploy the modules.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
This should be posted in the Lounge as it's not a C# question.
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
Thank you ,
My thought ( Would Lounge know what is the IL code ? )
I know nothing , I know nothing ...
|
|
|
|