|
Thanks Rob. I don't want to do that.
I've wanted to know.
|
|
|
|
|
|
bad idea[^], isnt it ?
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
|
|
|
|
|
|
Terrific , thank you 8kelvin
|
|
|
|
|
The best solution, put .Net Framework setup with your app. But if you want to run your app without .Net Framework then you should try or buy Xenocode Virtual Appliance[^]
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've got it
|
|
|
|
|
DotGNU[^]
Mono[^]
ILDJIT[^]
XenoCode was already mentioned as a linker, but there's also one from RemoteSoft[^].
The .NET framework is *free*, why would you want to avoid it? That's like doing C++ programming without MFC
I are troll
|
|
|
|
|
Eddy Vluggen wrote: That's like doing C++ programming without MFC
You mean the only way C++ programming is bearable?
|
|
|
|
|
You can also build .NET applications using Notepad++, TextPad or c# command-line compiler csc.exe.
Kelvin
|
|
|
|
|
|
You can use software like Xenocode Postbuild 2008[^], but it is very expensive and even if you do get it, it can make executables unstable and extremely large.
|
|
|
|
|
|
Hi,
I am developing an application to catalog your comic collections. In the comic info form I thought I would add an image drop utility so the user can add images from the comic into the comic's details. I thought it was working fine, but it seems it is not. So, this comic info form is opened from the main form. Then it has a tab control with different tabs. The one I'm interested in is the Images tab. I have set the AllowDrop property of all of them to true. The control I want to drop the images in is a FlowLayoutPanel that i have called flpImages. Finally, I am running Windows Vista Ultimate.
The code for the two events (DragOver and DragDrop) is the following:
private void pbImages_DragOver(object sender, DragEventArgs e)
{
try
{
if (e.Data.GetDataPresent(DataFormats.FileDrop) && (e.AllowedEffect & DragDropEffects.Copy) != 0)
e.Effect = DragDropEffects.Copy;
}
catch
{
System.Diagnostics.Debugger.Break();
}
}
private void pbImages_DragDrop(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
this.AddImages((string[])e.Data.GetData(DataFormats.FileDrop));
}
The AddImages code (although it never gets there)
private void AddImages(string[] filenames)
{
try
{
this.Cursor = Cursors.WaitCursor;
string destPath = Application.StartupPath + "\\Temp\\";
if (!Directory.Exists(destPath))
Directory.CreateDirectory(destPath);
foreach (string file in filenames)
{
// Create new picturebox to hold the image
PictureBox pb = new PictureBox();
pb.Width = 60;
pb.Height = pb.Width * pbImgDisplay.Height / pbImgDisplay.Width;
pb.BorderStyle = BorderStyle.FixedSingle;
pb.Name = "pbImage_" + (this.flpImages.Controls.Count + 1).ToString();
pb.Click += new EventHandler(this.pbImages_Click);
// Add the image to the new picturebox
// Get the image the user opened
Image theImage = Image.FromFile(file);
if (theImage.Width > theImage.Height)
theImage.RotateFlip(RotateFlipType.Rotate90FlipXY);
// Break the file name to get the image extension
string[] pieces = file.Split(Convert.ToChar("."));
double scale = 0;
// Since the image's size we want is the large picture box size, we save the image in that size in the temp
// folder first.
if (theImage.Width > this.pbImgDisplay.Width || theImage.Height > this.pbImgDisplay.Height)
{
scale = Math.Min((double)this.pbImgDisplay.Width / (double)theImage.Width, (double)this.pbImgDisplay.Height / (double)theImage.Height);
theImage = theImage.GetThumbnailImage((int)Math.Round(theImage.Width * scale, 0), (int)Math.Round(theImage.Height * scale, 0), null, (IntPtr)0);
}
string img = destPath + "temp_img_" + (this.flpImages.Controls.Count + 1).ToString() + "." + pieces[pieces.Length - 1];
theImage.Save(img);
// Now we need to create the thumbnail for the smaller picbox.
if (theImage.Width > pb.Width || theImage.Height > pb.Height)
{
scale = Math.Min((double)pb.Height / (double)theImage.Height, (double)pb.Width / (double)theImage.Width);
theImage = theImage.GetThumbnailImage((int)Math.Round(theImage.Width * scale, 0), (int)Math.Round(theImage.Height * scale, 0), null, (IntPtr)0);
}
img = destPath + "temp_thumb_" + (this.flpImages.Controls.Count + 1).ToString() + "." + pieces[pieces.Length - 1];
theImage.Save(img);
pb.ImageLocation = img;
this.flpImages.Controls.Add(pb);
this.imagesDescription.Add(String.Empty);
}
this.tabImages.Focus();
this.pbImages_Click(this.flpImages.Controls[this.flpImages.Controls.Count - 1], new EventArgs());
this.Cursor = Cursors.Default;
this.btnRemoveImage.Enabled = true;
this.tbImageNotes.Enabled = true;
}
catch (Exception exc)
{
MessageBox.Show("Error Adding the Image File.\n\n" + exc.Message);
}
}
All I get is an icon that indicates that nothing can be dropped (the forbidden icon) and can't drop anything. Can anyone help?
|
|
|
|
|
try this
private void pbImages_DragOver(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
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
|
|
|
|
|
Hi, thanks for trying to help. I tried it. Still get the cursor for no drop. It is very odd. Thanks anyway.
|
|
|
|
|
will you show the Dragging code ?
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
|
|
|
|
|
What dragging code? I only have two event handlers the DragOver and the DragDrop that I placed in the original message. The files are coming from outside the application, not from within the application.
|
|
|
|
|
oh okay. Here is a code that I used once.
private void Main_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
private void Main_DragDrop(object sender, DragEventArgs e)
{
string[] DroppedFilesNames = (string[])e.Data.GetData(DataFormats.FileDrop);
if (Path.GetFileName(DroppedFilesNames[0]) != "carcols.dat")
MessageBox.Show("Wrong file.", Application.ProductName);
else
openFile(DroppedFilesNames[0]);
}
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
|
|
|
|
|
The problem was not in the code, it is with Windows Vista and UAC. Somehow Vista does not allow lower security files to be dropped on higher security controls and since Visual Studio 2008 had to be ran with Administrator priviledges, it was not allowing to drop the files. I have had to disable UAC and it works fine.
Microsoft, please get your act together!!!
|
|
|
|
|
Hi,
when a PDF file is opened on IE, the PDF can be obtained in temporary internet files, how can I replace that file with other file of same file name.
I got the path of pdf file through this link
http://theagussantoso.blogspot.com/2008/11/get-temporary-internet-explorer-files.html
using c#, the file is not getting replaced with the instruction
File.Replace(sourceFileName, destinationFileName, destinationBackupFileName);
but the destinationFile is obtained in destinationBackupFile.
what may be the problem?
can anybody help me?
|
|
|
|
|
The file is in use, and you can't replace things that are in use. In other words, if you're drinking a beer, then it's impossible for me to replace the glass that you're using to hold that beer.
I are troll
|
|
|
|
|
Eddy Vluggen wrote: if you're drinking a beer, then it's impossible for me to replace the glass that you're using to hold that beer.
nah, you can if you got Universal Remote[^]
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
|
|
|
|
|
Good workaround!
I are troll
|
|
|
|
|
thanks
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
|
|
|
|