|
Hi guys,
Please help, i managed to get a combo box to appear in a C# datagrid, now here is what I am trying to do: the grid has a couple of text boxes, what I am trying is to force the combobox to show values if the textbox has a certain value, i.e. if textbox populated from dataset value =CREDIT then populate combo box from datatable otherwise don't.
I hope I am making sense. Please help!!
Thanks
Sameer
|
|
|
|
|
|
hi guys.
visual studio 2005 C#
i was trying to create a setup for my add-in for live messenger. without installing it manually i want it done by installer itself.
i created a setup installer and successfully creates key and set AddinFeatureEnabled values to 1 and messenger already got now add-ins,. but i couldn't install my class library add-in into live messenger .
how can i do that plzz help me!!
so much of happy ending...
|
|
|
|
|
hello,
can anybody help me to know the islamic prayer times.
I am working under c#.net and i need this formulas in my method.
best regards.
dghdfghdfghdfghdgh
|
|
|
|
|
YOUR Question seems complicated.
you want create functions in ur application which alerts you prayer time on scheduled times?
formula? u maybe asking for codes to do so.
you know one day i requested a code like as you seems, i got reply saying here codeproject is not for doing work for you. so but there are some good ppl will help you i hope all are not same.
so much of happy ending...
|
|
|
|
|
ellllllllie wrote: need this formulas in my method.
What Method ??
|
|
|
|
|
hello,
i just need the formulas if it is exist
10x.
dghdfghdfghdfghdgh
|
|
|
|
|
The method isn't important, the algorith or means of determine it so it can be used in any method is what was being asked.
only two letters away from being an asset
|
|
|
|
|
I don't know how accurate this is - and it's done in JavaScript but it may be a good starting point?
Here[^]
|
|
|
|
|
I'm afraid I can't help you with the prayer times formulae, but with my (admittedly limited) knowledge of Islam, I will point out to you that your code will need to consider the effect of higher latitudes leading to divergent values.
|
|
|
|
|
Hello to all,
how can i convert an hexadecimal value to utf-8 encoding
example :
012b must returns in utf-8 i
0160 must returns in utf-8 Š
best regards and thanks in advance
Fady
|
|
|
|
|
Hi, have a look at the Encoding class, in particular UTF8 property and GetChars/GetString
methods.
|
|
|
|
|
string hex;<br />
hex = "012b";<br />
hex = "0160";<br />
int hexAsInteger = int.Parse(hex, System.Globalization.NumberStyles.HexNumber);<br />
char charValue = (char)hexAsInteger;<br />
MessageBox.Show(charValue.ToString());
Jim
|
|
|
|
|
thanks a lot Luc Pattyn and Jim
Fady
|
|
|
|
|
try this
UInt16Converter utf8 = new UInt16Converter();
char MyChar = '\x012b';
MessageBox.Show(utf8.ConvertToString(MyChar));
dghdfghdfghdfghdgh
|
|
|
|
|
or try this
char MyChar = '\x012b';
MessageBox.Show(MyChar.ToString());
dghdfghdfghdfghdgh
|
|
|
|
|
I was unaware of class UInt16Converter.
However the MSDN doc says "You should never create an instance of a UInt16Converter.
Instead, call the GetConverter method of TypeDescriptor."
So you may want to modify your code snippet.
|
|
|
|
|
hehe see the last reply
dghdfghdfghdfghdgh
|
|
|
|
|
hi
how would i put a viewstate in an if statement
set the view state:
ViewState["roomsql"] = SqlDataSource_rooms_to_update.SelectCommand.ToString();
how can i put the above in a string value?
cheers
|
|
|
|
|
ViewState["roomsql"].ToString()
(string)ViewState["roomsql"]
only two letters away from being an asset
|
|
|
|
|
hi that doesnt work
got a syntax error
thanks anway
|
|
|
|
|
So how is your code now? And what does that syntax error says? Mark's code was ok...
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
|
|
Hello,
I had a query related to selecting Only few columns from one datatable to another datatable.
I was trying something like this (Using Select query):
string query = "shorttitle,Identifier";
DataRow[] foundRows = dt.Select(query);
But failed as it throws error.
If There is a solution for the above issue to get only few selected columns from another datatable. It will be great.
Alternative to this is Is it possible to change the order of the columns
example
Original DataTable
name, age, date of birth
New datatable
Dateofbirth,name, age.
Please suggest. Tried hard but not working?
Regards,
Pavas
|
|
|
|