|
Hi,
As it can be seen from the sample picture I added, my form has a weird white space on it's Windows 7 window preview. This only happens on this from and I have no idea on why it happens.
Sample picture:
http://i36.tinypic.com/11vmzuo.png
Any help is appriciated. Thanks.
|
|
|
|
|
Looks like a scaling-down artefact. The preview seems to have been generated by scaling down the original with performance preferred over accuracy (linear vs more complex interpolation).
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
It might be that, but when I increase the width of my form this white space disappears and the preview is drawn correctly. I suspect maybe a component having a larger width then the form causes this. Is it possible?
|
|
|
|
|
if the scale down is executed by simply skipping some rows and columns of the original image, then the artefacts will depend on the exact location of the various parts in the original; your 3-D effects do include whitish lines. Your scaling down just happened to hit it.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Lucky me.
|
|
|
|
|
hi,
i want send an email from a windows form, but after sending , my Emails are in bulk Folder as a spam.what can i do for sending my emails to inbox?
MailMessage oMail = new MailMessage("myFromAddress", "myToAddress");
oMail.Body = "myText"
oMail.Subject = Subject;
oMail.BodyEncoding = Encoding.UTF8;
SmtpClient oSmtp = new SmtpClient();
oSmtp.Host = SmtpServer;
oSmtp.UseDefaultCredentials = false;
oSmtp.Credentials = new NetworkCredential ("myMail@XXX.com", "myPass");
oSmtp.Send(oMail);
thanks.
3DMeT
|
|
|
|
|
Change your email content so that the receivers spam filters don't think it's spam.
Your email address may be on a blocked list, like if you're sending from a GMail or Hotmail account or the content may be flagged as suspicious.
There is nothing you can do with the code on your end to fix this.
|
|
|
|
|
Thanks for your answer
Change your email content so that the receivers spam filters don't think it's spam
What Can i do the receivers spam filters don't think it's spam?
|
|
|
|
|
Read Dave's response again. There is nothing you can do in code to prevent this.
The message subject or text may contain words that the email filter deems as spam.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You have no way of knowing, from your side, why the spam filter is eyeballing your emails. You can ask the receiver to investigate it for you, but that's about it.
|
|
|
|
|
when i am sending my emails from gmail to yahoo, my emails are in inbox
but when i am sendding same emails from gmail to yahoo by my application with authentication, they are in spam folder.is it common?
|
|
|
|
|
with same settings outlook send my emails to inbox.what does outlook work?
|
|
|
|
|
There is no difference between your app sending an email and Outlook sending an email. The receiver does the filtering, not your app. You simply have no control over it.
|
|
|
|
|
Hi people
I'm using a web service to display the current weather on my main interface. At the moment I have to click a button everytime I want to update the weather, and while this is updating, my interface stalls for however long it takes to update which is usually 5 seconds. What I want to know is, is there a way to have this running on a separate thread without clicking a button and have it update continuously while still being able to work with the main interface?
Here is the code I use to update the current temperature:
string strTemperature = "";
GlobalWeatherService.GlobalWeatherSoapClient proxy = new aXYZ.GlobalWeatherService.GlobalWeatherSoapClient("GlobalWeatherSoap12", "http://www.webservicex.net/globalweather.asmx");
string weatherXml = proxy.GetWeather("Port Elizabeth", "South Africa");
StringReader reader = new StringReader(weatherXml);
XmlReader readerXml = XmlReader.Create(reader);
XmlDocument weatherXmlDoc = new XmlDocument();
weatherXmlDoc.Load(readerXml);
for (int i = 0; i < weatherXmlDoc.ChildNodes.Count; i++)
{
for (int j = 0; j < weatherXmlDoc.ChildNodes[i].ChildNodes.Count; j++)
{
if (weatherXmlDoc.ChildNodes[i].ChildNodes[j].Name == "Temperature")
strTemperature = weatherXmlDoc.ChildNodes[i].ChildNodes[j].InnerText;
}
}
lblTemperature.Content = strTemperature;
|
|
|
|
|
|
Thanks. I'll go through that now.
I tried using a DispatcherTimer like in the following code:
DispatcherTimer _timer = new DispatcherTimer(DispatcherPriority.Normal);
_timer.Interval = TimeSpan.FromMilliseconds(2000);
_timer.Tick += new EventHandler(delegate(object s, EventArgs a)
{
UpdateWeather();
});
_timer.Start();
I've tried about 4 different ways of using the Dispatcher, but no matter what I try, my UI keeps freezing while it's doing UpdateWeather. Can it be because I call this Timer from my form_Loaded event??
|
|
|
|
|
Hi,
you probably need this[^].
BTW: does the weather really change every 5 seconds where you live?
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I was going to lend him some of my threads if he can order me a cold snap for Tuesday.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
No problem. Is a 5-second cold snap within an otherwise hot November day sufficient?
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Okay it seems to work with the BackgroundWorker.
backgroundMessageGetter.DoWork += new DoWorkEventHandler(backgroundMessageGetter_DoWork);
backgroundMessageGetter.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundMessageGetter_RunWorkerCompleted);
backgroundMessageGetter.ProgressChanged += new ProgressChangedEventHandler(backgroundMessageGetter_ProgressChanged);
backgroundMessageGetter.WorkerReportsProgress = true;
backgroundMessageGetter.RunWorkerAsync(this);
void backgroundMessageGetter_DoWork(object sender, DoWorkEventArgs e)
{
try
{
while (true)
{
GlobalWeatherService.GlobalWeatherSoapClient proxy = new aXYZ.GlobalWeatherService.GlobalWeatherSoapClient("GlobalWeatherSoap12",
"http://www.webservicex.net/globalweather.asmx");
string weatherXml = proxy.GetWeather("Port Elizabeth", "South Africa");
backgroundMessageGetter.ReportProgress(0);
Thread.Sleep(2000);
}
}
catch (Exception error)
{
System.Windows.MessageBox.Show(error.Message);
}
}
void backgroundMessageGetter_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
}
modified on Saturday, November 14, 2009 8:42 AM
|
|
|
|
|
Plz help me if any one can.
How I can get Text From TypeAhead Control.
I am using Visual Studio and developing my project in Asp.net using c#.
like i am using
String str = TypeAhead1.Text;
but always null value is returned..
|
|
|
|
|
CrossPost!
And allready answered here: Here
|
|
|
|
|
but plz tell me once more time, i need it.
|
|
|
|
|
Then my suggestion to you is:
Go back to your original post and continue the discussion there.
If people know the answer to your question, I'm sure you will get the help needed.
Posting the same question 4 times crossing various forums is not going to help you one bit.
|
|
|
|
|
I want to envoke some method when user click on tab of tabpage.
Clicking on tab of tabpage is not working but if click on any portion of tab page it works
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
private void tabPageAccount_Click(object sender, EventArgs e)
{
MessageBox.Show("in tab 3");
}
/*/*/*/*/*/*/*/*/*/*/*/*/*/**/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
wats the problem?? Wats the solution?
|
|
|
|