|
No. I just checked: Gmail attachments[^]
GMail will not accept .ZIP files, unless you rename them.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Incorrect,
The source link you quoted wrote: In Gmail, you can't send executable files (.exe, .cmd) or ZIP archives that contain executables. To bypass this limitation, you need to rename the file and change its extension (don't forget to mention this to the person that receives your mail).
So zip's can be used, but cannot contain executables.
|
|
|
|
|
I did notice that, but since gmail is complaining and his file is well under the 10MB limit, I felt pretty certain his .ZIP did. You were right though - I should have mentioned it.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
The problem is the extension not the file size. Gmail detects within your zip contains an executable file which is unsafe to send over an email for obvious reasons.
To bypass this rename your zip extension to something customer (myzip.ggg) and have the recipient rename the extension back to .zip.
shai sherman wrote: mail.Attachments.Add(new Attachment(@"c:\1.zip",MediaTypeNames.Application.Zip));
Also, don't specify the Application.Zip.
|
|
|
|
|
|
Thank you very much
|
|
|
|
|
Hey All,
I was just wondering if it's at all possible to update/add extra functionality to my applications using DLL's? I haven't done this before, and haven't found an answer to this elsewhere. Does anybody know anything about this?
Thanks,
Jase
modified on Sunday, July 12, 2009 8:45 AM
|
|
|
|
|
Umm, if it's your DLL you should have the source code to modify at your pleasure..
|
|
|
|
|
|
Thank yuo very much for your help mark and eliott, it was really helpful.
|
|
|
|
|
Hi bros,
Is there any way in C# (C/C++) to detect a timezone observes DST time or not.
For example: with timezone GMT+7, it does not observe DST; timezone GMT-6 observes DST time.
Anyone knows please help me.
Many thanks,
SA.
|
|
|
|
|
Try MSDN for TimeZoneInfo.IsDaylightSavingTime
If the time zone represented by the TimeZoneInfo object does not support daylight saving time, the method always returns false.
You may have to jigger with it to check a date / time combo that would be in DST if the time zone did support it.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Thanks for your answer.
I've had a look at TimeZoneInfo but is only for Microsoft Visual Studio 2008/.NET Framework 3.5 or higher. My current application is in Microsoft Visual Studio 2005/.NET Framework 2.0. It's my pain . I'm sorry not include the version of .Net framework in my question
Is there any other way?.
|
|
|
|
|
TimeZone class has the same method for .Net 2.0
|
|
|
|
|
|
I was speaking of this[^] class and method. It is there in .Net 2.0.
|
|
|
|
|
Thanks for your answer, but the method IsDaylightSavingTime is only used to indicate whether the specified date and time is within a daylight saving time period or not. It does not tell me the current timezone observes DST or not.
I want to find a way to indicate if a timezone observes DST or not. If it does then I will use the method indicating whether the specified date and time is within a daylight saving time period IsDaylightSavingTime to check for the date/time and adjust date time depend on the current time is DST or none-DST.
Hope to have your help.
|
|
|
|
|
Hi,
Does any one know how to set titles for the fixed row in the sample DataGridView obejct?
i just what the write the rows number on the fixed row that all.
thanks
Pascal
|
|
|
|
|
Ok, i allready figured it out by using the HeaderCell property
dataGridView1.Rows[0].HeaderCell.Value = "title";
Thanks any way
Pascal
|
|
|
|
|
I posted a while back about how to make ISO files or burn them to a cd-rom. I see that this is possible with IMAPI. Although I have read the articles about it here on codeproject, I still feel it is over my head. I was wondering if anyone knew of any books that went through this and taught you. It seems a lot of the books I see are the basics and thats it.
In my classes we learned nothing that would get me a job pretty much. I have learned everything I know from books. Heck out of my three C# classes I didn't even touch basic threading. Anyways, I'm interested in learning how to use CD-ROMs (burning, copying, etc), and was just wondering a good place to start.
|
|
|
|
|
how do i import user32.dll in c# in the below written code
for invoking start button
urgent please....
since this is not working
private void page_Load
{
if(condition)
{
//invoke the start key. i want the menu to pop up just as we click the start menu
SendKeys.Send("^{ESC}");
}
}
i m using this code to import user32
[DllImport("User32.Dll")]
public static extern void Send(String str);
nothing is happening
This code was posted by me...
modified on Saturday, July 11, 2009 11:43 PM
|
|
|
|
|
Not sure, but here's the pattern I use for such things:
[
System.Runtime.InteropServices.DllImportAttribute
(
"User32"
,
SetLastError=true
,
EntryPoint="FindWindow"
)
]
private static extern System.IntPtr
API_FindWindow
(
string lpClassName
,
string lpWindowName
) ;
public static System.IntPtr
FindWindow
(
string WindowName
)
{
return ( API_FindWindow
(
null
,
WindowName
) ) ;
}
|
|
|
|
|
i din get
i m not able to use this
how do i invoke start menu
is this way correct???
urgent plzzzz
[DllImport("User32.Dll")]
public static void send(string str);
private void button1_Click(object sender, EventArgs e)
{
Form1.send("^{ESC}");
}
how can i use sendkeys.send in this way
This code was posted by me...
|
|
|
|
|
Are you looking for System.Windows.Forms.SendKeys.Send ? You don't need to import to do that.
|
|
|
|
|
1. Put a breakpoint at the line: if(condition) .
2. Run your code.
3. When the breakpoint is hit, press F10. If the control goes to line:SendKeys.Send("^{ESC}");
Then the start menu will be displayed.
4. If control does not goes to that line, then condition is false and hence the start menu will not be displayed.
There is no need to import User32 for this. SendKeys is a class in System.Windows.Forms namespace.
|
|
|
|