|
try codepage 1251.
|
|
|
|
|
thank you verry mutch for your answer, but it doesn't work, i try for the utf-16 (unicode), codepage 1251, the text was : кв. Запад - ДКЦ Св.Иван рилски - каб.4,7,8,9 , please help me, thank you verry mutch.
|
|
|
|
|
If foreign text is not showing correctly, these are the two main reasons:
1. the text does not contain what you expect, e.g. because you did not use the right Encoding or codepage;
2. the output is not able to show the characters, e.g. because the font chosen does not contain them.
Not sure how you are looking at Console.Write() output but 2. is very likely since a "Command Prompt", "DOS Window" and the like probably use a "non-proportional" or "monospaced" font which may have a very limited character set.
You are likely to have better output on a Windows application, using a font such as Arial
or Microsoft Sans Serif.
If yours is a Console Application, you can still add a reference to System.Windows.Forms and open some Forms, with TextBoxes and the like. Maybe that is the easiest approach.
|
|
|
|
|
Thank you verry mutch for this explication, it show correctly in message box or tex box, but in Console.write(), it show ???????, how i can resolve this problem, thank you very mutch.
|
|
|
|
|
Change the font of the console to "Lucida Console" to display special characters.
|
|
|
|
|
|
|
If WordWrap is false then you can simply use Textbox.Lines.Count .
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
|
|
|
|
|
|
ohh my mistake...its Length .
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
|
|
|
|
|
Could someone help me here please? I have a control which I derived from another. For the purpose of this post, let's say I derived from a Panel to make my own custom Panel.
Now, I want to write my own MouseClick event for this control so here is what I have:
public class MyPanel : Panel
{
public MyPanel()
{
this.MouseClick += new MouseEventHandler(MyPanel_MouseClick);
}
private void MyPanel_MouseClick(object sender, MouseEventArgs e)
{
}
}
This works and I can put the control on a form and subscribe to its MouseClick event. What then happens in run time when the control is clicked is that the event handler specified on the form is fired first and after that has finished the event handler in the control (the one in the block of code above) is fired.
My problem is that I wanted it the other way round. I want the "internal" event handler to fire first and based on some criteria in there (for instance the position of the mouse click) I may want to prevent the "external" event handler to fire.
I hope I'm making sense. Any help perhaps?
|
|
|
|
|
This is the reason most events are actually raised in a
protected virtual void OnEvent method.
Override the OnMouseClick method, and in your overriding method, call base.MouseClick if/when you want to call the base classes event.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thanks a lot. Works like a charm.
|
|
|
|
|
I tried this and it worked correctly for me. AFAIK, events fire in the order it is subscribed. Since you hooked the event handler in your control's constructor, it should execute first. Or as Davey suggested, override OnMouseClick method.
|
|
|
|
|
How i connect MYSQL with C# for Windows mobile Application.plz help me its urgent
modified on Saturday, April 18, 2009 1:43 AM
|
|
|
|
|
Have you tried MySQL connector .NET?
|
|
|
|
|
I'm trying to rework some code posted by GWSyZyGy called Detecting Application Idleness.
It works fine in VS .net 2003, but when I try to convert it to vs 2005 or 2008, I get an error message that TargetInvocationException was unhandled by user code.
This occurs in the constructors area of the timer code, as follows:
private void OnApplicationIdle()
{
// Check to see if anyone cares.
if (ApplicationIdle == null) return;
// Build the message
ApplicationIdleEventArgs e = new
ApplicationIdleEventArgs(this.lastAppIdleTime);
// Iterate over all listeners
foreach( MulticastDelegate multicast in ApplicationIdle.GetInvocationList() )
{
// Raise the event
multicast.DynamicInvoke( new object[] { e } );
}
I am getting an error on the very last line.
I hope this is enough of the code to clarify what's going on. If so, can someone kindly shed some light on why this is happening?
Thanks
|
|
|
|
|
TargetInvocationException is too general. You need to look into InnerException property to see what is the exact error.
|
|
|
|
|
Hi. thanks for looking at my earlier post.
When I tried to look at the inner exception, I got to this page in MSDN:
http://msdn.microsoft.com/en-us/library/fd85b3df.aspx
Does that make it any clearer to you?
Thanks
|
|
|
|
|
Hi
When i try to debug a Windows Application it says "Application failed to initialize properly". It also gives "hpqwmiex Module has encountered a problem and needs to close. We are sorry for the inconvenience". What is that i should be doing for this error
|
|
|
|
|
Do yourself a favour and Google for 'hpqwmiex Module'. You will get a lot of hits, some of them about viruses!!!!
Only you will be able to tell which of them apply to you.
Good luck! I hope that you don't have an infection.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I got an untyped DataSet that holds some disconnected data I queried from a server. I'm trying to add a DataRow with this block of code in a button.
I get "The name 'newMEALSrow' does not exist in the current context". But if I comment the line with the id, I can get the WinApp to compile and run, but if I add a row, the id to the row will be empty.
DataRow newMEALSrow = dsMEALS.Tables["MEALS"].NewRow();
newMEALSRow["id"] = System.Convert.ToInt32(txtID.Text);
newMEALSrow["name"] = txtName.Text;
newMEALSrow["description"] = txtDDescription.Text;
dsMEALS.Tables["MEALS"].Rows.Add(newMEALSrow);
Any comments?
|
|
|
|
|
Raymundo Valdez wrote: newMEALSRow
C# is case sensitive. Your variable name is newMEALSrow not newMEALSRow
|
|
|
|
|
tyvm
|
|
|
|
|
Hi ,
I am trying to display a crystal report using the crystal report viewer in vs 2008,and it does not display instead it gives a database login screen.
This is the code which I am using .
==================================================================
CrystalReport1 objRpt;
//Usermaster objRpt;
objRpt = new CrystalReport1();
string connstr = "Persist Security Info=False;userid=btssys; password=xx23;database=bts;server=xxxx";
MySqlConnection mc = new MySqlConnection(connstr);
try
{
mc.Open();
string sql = "select userid,
usergiven,userfamily,status,expiry,created,created_by
from user_master";
MySqlCommand cmd = new MySqlCommand(sql, mc);
MySqlDataAdapter adp = new MySqlDataAdapter(sql, mc);
//new MySqlDataAdapter(
DataSet ds = new DataSet();
int li_rows = adp.Fill(ds, "myds");
if (ds.Tables[0].Rows.Count == 0)
{
MessageBox.Show("No data Found", "CrystalReportWithmysql");
return;
}
// Setting data source of our report object
objRpt.SetDataSource(ds);
// Binding the crystalReportViewer with our report object.
crystalReportViewer1.ReportSource = objRpt;
================================================================================
If I debug I can find that the ds is retrieving the rows. But nothing comes up on the crystal report viewer.It displays a database login screen instead with server name as myds. Is this something to do with Mysql or something wrong with VS 2008 or crystal report coding.
Thanks
|
|
|
|