|
You can use webBrowser1.ScrollBarsEnabled = false; in .NET. As for right click I'd do it with javascript on the actual page, haven't a clue how to do it with code.
|
|
|
|
|
Can you write me this javascript code please?
|
|
|
|
|
|
Microsoft Web Browser have not ScrollBarsEnabled property.
I speak about browser that described here
http://support.microsoft.com/kb/815714
It is another WebBrowser, not habitual web browser from ToolBar.
It is located here - COM Components-Microsoft Web Browser.
|
|
|
|
|
how can i find the checkbox is checked or not.....
present inside the datagridview...
send me sample coding..
|
|
|
|
|
Checkbox must be in some ItemTemplatefield in gridview.It must be server side.Get the control by its ID in cs file and find whether it is checked or not.
Cheers!!
Brij
|
|
|
|
|
|
Refer Below snippet
bool bflag;
checkbox chk=-(checkbox)datagridview1.cell[2].findcontrol("checkbox1");
bflag=chk.checked;
find the checkbox control in the gridview in the particular cell. Now as per above code the chk is your control name.You can use the chk.checked property for your purpose.
Regards,
Suyash
|
|
|
|
|
hi,
i have a file with Hebrew letters.
while reading the file with:
string s;
SreamReader SR=new StreamReader(Dir);
s= SR.readLine();
the string contains: ����� (something strange) and not hebrew letters.
how can i receive hebew letters?
i have Microsoft Visual Studio 2008
thank you
|
|
|
|
|
Is your file Unicode? And where do you get this strange output. Keep in mind that you won't get correct Unicode output in console (try to output in a Label for instance).
If your file is not Unicode, try passing the Hebrew encoding to the StreamReader constructor.
Regards,
Lev
|
|
|
|
|
tinase leishtamesh be ASCI.
yahol lehiot she ze yazor leha:
TcpClient newClient;
byte[] bytes = new byte[1024];
ns = newClient.GetStream();
bytesRead = ns.Read(bytes, 0, bytes.Length);
message = Encoding.ASCII.GetString(bytes, 0, bytesRead);
|
|
|
|
|
The answer you provide might be valuable for a lot of people, so please, answer in English.
Regards,
Lev
|
|
|
|
|
Ok Did it help you?
Try to use ASCI code.
In the past i created chat(server and client) that get stream(text) from tcp connection and show it in textbox.
TcpClient newClient;
NetworkStream ns;
string message=" ";
byte[] bytes = new byte[1024];
ns = newClient.GetStream();
bytesRead = ns.Read(bytes, 0, bytes.Length);
message = Encoding.ASCII.GetString(bytes, 0, bytesRead);
|
|
|
|
|
Hi all
I am encrypting my password using md5 algo to store in sql server..
While retriving the password the esacpe sequence "\r" is replaced "\\r".
thus the 2 password doesnt match.
i tried to check for \\ at the rertival string and replace it with \ using string.replace also tried to resolve the problem using regex..
It doesnt work for me..
thx in advance.
|
|
|
|
|
After encrypt before saving to database,encode it in 64 bit and then save it.and do vice versa after retrieving from DB.By this you won't get this type of issue.When get resolved ,let me know too.
Cheers!!
Brij
|
|
|
|
|
Thx for the immediate solution ...
This has resolved my problem
Tejesh
|
|
|
|
|
k
Cheers!!
Brij
|
|
|
|
|
Hey everyone,
I have the following text block wrapped in one long line line
From: ilaria simeone <ilaria.simeone@libero.com>
To: <muammar_y@hotmail.com>
Subject: RE: Merry Christmas!
Date: Wed, 24 Dec 2008 18:59:29 +0100
What pattern do I need to get:
ilaria.simeone@libero.com
muammar_y@hotmail.com
RE: Merry Christmas!
Wed, 24 Dec 2008 18:59:29
Many thanks!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
This works for your case, but it might not with some other formats. You need to carefully test it:
From:.+<([^>]+)>\r?\n?.*<([^>]+)>\r?\n?Subject:\s+(.+)\r?\n?Date:\s+(.*?)\s[+-]\d\d\d\d
Apart from that, I strongly suggest you take a look at this book: Mastering Regular Expressions[^].
I read it and that's where I got my knowledge from. It's by far the best book about regex you can get.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks Greeeg!
Actually, I was about to ask you how to fish instead of asking for a fish each time
Many thanks Greeeg!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: Actually, I was about to ask you how to fish instead of asking for a fish each time
Haha, this book will tell you how to fish
Of course you can still come back and ask if you have any questions - I'm not a regex guru myself, but my knowledge is enough for some of the simpler patterns.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
excellent answers are here[^].
Why do you repost? It will not help you, continue the existing thread if you have to.
|
|
|
|
|
Hello everyone,
I am writing the following program to send a message to my gmail box. There is no
exception, but I can not receive any email in my gmail inbox. Does anyone have any ideas
why?
MailMessage mailMsg = new MailMessage();
mailMsg.From = new MailAddress("youremail@example.com");
mailMsg.To.Add("someone@example.com");
mailMsg.Subject = "Test subject 2";
mailMsg.IsBodyHtml = true;
mailMsg.BodyEncoding = Encoding.UTF8;
mailMsg.Body = "This email is sent from asp.net code";
mailMsg.Priority = MailPriority.Normal;
SmtpClient client = new SmtpClient();
client.Credentials = new NetworkCredential("myemailaccount@gmail.com",
"mypassword");
client.Port = 587;
client.Host = "smtp.gmail.com";
client.EnableSsl = true;
object userState = mailMsg;
try
{
client.Send(mailMsg);
}
catch (SmtpException ex)
{
Console.WriteLine(ex.ToString());
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
return;
thanks in advance,
George
|
|
|
|
|