|
Thanks. It makes much clear
|
|
|
|
|
hi..
in a class method like example : methodname(work obj) i pass the parameter of work object.
in that method i want to use the properties of message class like this
sms.ud = work.msg.Content
suggest me the best way so that i can proceed
|
|
|
|
|
What's the issue exactly ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
English please
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
i've created thumnail of picture from a folder
i wanna know the name of the picture that i've clicked on
then i added an EventHandler to each pic but when i used a ImageLocation they don't return anything
so please help
public void pb_Click(object sender, EventArgs e)
{
if (pbSel != null)
pbSel.BorderStyle = BorderStyle.None;
PictureBox pb = (PictureBox)sender;
pb.BorderStyle = BorderStyle.FixedSingle;
pbSel = pb;
string test ="test";
com_image.Text = pb.ImageLocation+"test";
}
thanks
|
|
|
|
|
An image does not store it's path internally.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
PictureBox.ImageLocation will be set automatically only by PictureBox.Load(URL).
When you load the image and calculate the thumbnail you could store the filename
yourself in PictureBox.ImageLocation; then you can retrieve it afterwards...
|
|
|
|
|
I am having 4 panels in my windows form. In that at a time only one panel has to visible and others has to be hidden. I tried it by setting the visibility as true for one panel and false to others but while debugging the visibility is not setting to true and i tried by callinf bringtofront method that time also what i have set in the design time is coming but others are not coming to the front WHY?
Can anyone answer me plz?
note: in the design time all my panels visibility is set to true
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: I tried it by setting the visibility as true for one panel and false to others but while debugging the visibility is not setting to true
Well, that just plain can't be. Unless some of your panels are sitting inside some of the others ? Then disabling an outer panel will disable the inner one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you so much
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
i want to develop window in VC++ as a COM component and thene . use this component in .NET environment in C# client to put..control over that window..
how to do that..i wanna know..?
sam
|
|
|
|
|
You can import any COM dll into .NET and the framework will generate a class you can use to call it's methods. Seems lie a pain tho, what does C++/COM give you ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Everyone,
well I wanted to know how we can change the layout of the keyboard so that we can take input in Urdu language. and Actually I wanna take the input in the dataGridView in a Windows Application in C# 2.0
thanks in advance
Rocky
|
|
|
|
|
U have to install the urdu layout of your keyboard
then install the phonetic keyboard layout (only for your own convenience)
then u have to set your culture at design time or at runtime
and when u run your application u have to select urdu as a keyboard layout
that's all
|
|
|
|
|
OK that looks quiet helpful but can u plz tell me how we set the culture at design time or at runtime via a code example preferably
thanks a bundle
|
|
|
|
|
First in your form's class constructor write this
System.Threading.Thread.CurrentThread.CurrentCulture = new
System.Globalization.CultureInfo("ur-PK");
System.Threading.Thread.CurrentThread.CurrentUICulture = new
System.Globalization.CultureInfo("ur-PK");
actually when u enter any character of any other language .net creates a new resource file for it
u just write the above lines in your code and then run the application or at design time switch your keyboard layout to urdu and type
that's all
|
|
|
|
|
thanks a lot that really is alot of help,
|
|
|
|
|
Respected Sir, do u have a simple program of Urdu listbox or urdu datagrid or urdu on listviewer
using vb.net
plz send me at sa.gdagwadar@gmail.com
Love to Every One
|
|
|
|
|
|
Ok, I have a treeview and it has the following items in it.
Menu 1
Sub menu 1
Then I call a function to write the items to a file.
But when I open the file it shows
Menu 1
Menu 1
Sub menu 1
Anyone know why it is creating the other Menu item?
Here are the functions.
menu += WriteMenu(menu, treeView1);
string WriteMenu(string menu, TreeView treeView) {
foreach(TreeViewMenuItem menuItem in treeView.Nodes) {
if(menuItem.Nodes.Count > 0) {
menu += menuItem.Text + "\n";
menu += WriteSubMenu(menu, menuItem);
}
else {
menu += menuItem.Text + "\n";
}
}
return menu;
}
string WriteSubMenu(string menu, TreeViewMenuItem menuItem) {
foreach(TreeViewMenuItem subItem in menuItem.Nodes) {
if(subItem.Nodes.Count > 0) {
menu += subItem.Text + "\n";
menu += WriteSubMenu(menu, subItem);
}
else {
menu += subItem.Text + "\n";
}
}
return menu;
}
-- modified at 20:47 Monday 4th June, 2007
|
|
|
|
|
Do u have any root node set to the tree view?
Regards,
Murali
|
|
|
|
|
This is giving me a real headache, I hope someone out there can help me.
Basically what I have is a text based adventure that takes input from the user.
for example...
string input;
Console.WriteLine("Where do you want to go?");
input = Console.ReadLine();
if ((input = "north") || (input = "North") || (input = "n") || (input = "N")
{
if ((y - 1) < 0)
Console.WriteLine(You can't move any farther North");
else
y = y - 1;
}
the bit that I want to change is where I check the input vs 4 values, north, North, n, and N.
Is there any shorter way of doing this, say checking it for letters and ignoring case sensitivity.
I suppose I could trim off the first letter, but then people could put anything in then like, nowhere, and they end up going north.
Thanks for your help ahead of time.
|
|
|
|
|
hi,
you could insert
input=input.ToLower();
and forget about uppercase.
|
|
|
|
|
Thanks a bunch, that helps loads. =)
|
|
|
|
|
Another option is String.Compare(s1, s2, true), where the true indicates to ignore case.
|
|
|
|