|
hi sorry but could u plz clear whart u mean plz dnt get nervous from me :->
Thanks alot
Hamody
|
|
|
|
|
|
hi there, i tried the path u sent me and i looked in it for what i look for but there still a problem in saving the email as *.msg format
i made a form that i can check the inbox thrugh it i want to save the emails that i choose as *.msg could u plz help me
Thanks alot
Hamody
|
|
|
|
|
hello
i wonder how i can embed fonts in my assembly and use them without installing them on each computer ?
regards.
|
|
|
|
|
|
Hi all!!!
i'm quite bored with a problem I can't solve.
I'm doing a program which imitates the mouse, and I need that when I do "click" (double click or whatever) in another application, although the latter is actived now, I want my window to still keep the keyboard input to can handle it.
I have try with SetFocus() and GetFocus() from Windows API but I can't make it works.
If you could help me,it would be great;)
Thanks,
ciao!
|
|
|
|
|
|
Thanks Mazdak...
I was just working with hooks now, and I succeded getting all the keyboard input. But then I have a new problem which seems easier but I cannot solve.
In a form with some controls (all of them buttons) how can I know wich button is selected? I'm trying with the focused and containsfocus property but it's not working.
And the last thing... in case I could know which control is selected, how could I generate the click event of this button without actually "click" it?..
Thanks;)
|
|
|
|
|
Not sure but you can look through:
BegoBergua wrote:
In a form with some controls (all of them buttons) how can I know wich button is selected? I'm trying with the focused and containsfocus property but it's not working.
GetFocus() or GetGUIThreadInfo() API
BegoBergua wrote:
in case I could know which control is selected, how could I generate the click event of this button without actually "click" it?..
Look for SendMessage() API. I remember that there are some samples in CP. Use search textbox at the top of the page.
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
Hi
i have to set a focus on to a text box after checking for some validations
i have used javascript as a client side script and it is working
but is it possible to do using C# ?
Sukanya
|
|
|
|
|
On a textbox? What kind of textbox are we asking about -- WinForms, webforms, html, etc?
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
textBoxName.Focus();
isn't it simple:P?
|
|
|
|
|
My question is can we serialize an array (array of objects) at a time in .Net. Can anybody annswer me........
Thanx
Pradosh
|
|
|
|
|
Sure. Using System.Runtime.Serialization(.Formatters.Binary):
Example:
string[] a = new string[3]{"One", "Two", "Three"};<br />
<br />
BinaryFormatter formatter = new BinaryFormatter();<br />
MemoryStream stream = new MemoryStream();<br />
formatter.Serialize(stream, a);<br />
<br />
stream.Position = 0;<br />
string[] b = (string[])formatter.Deserialize(stream);
Hope this helps,
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
As an addendum to turbochimp's example, please reference my response[^] to your post in the ASP.NET forum. In the future, please don't cross-post to multiple forums. At least give people a couple of days to answer the first post before reposting to another forum.
Hope that helps.
--Jesse
|
|
|
|
|
|
Hey
I am using a TreeView
I have made my own TreeNode that is made fron refular TreeNode(it saves obj to)
I have added this own made TreeNodes to my TreeView and this looks good.
But when i want to change anything in the tree i update the entire tree, this mens that al catalogs is colapsed?
I have tryed to store
Treenode tmp = TreeView.SelectedNode;
Do the changes
TreeView.SelectedNode = tmp;
TreeView.SelectedNote.EnsureVisibility
But when it is running TreeView.SelectedNote.EnsureVisibility i get an error about teh instans is null? but its not?
Is there any way to open up so the last selected is visible? or cant i make my own TreeNode class like this?
//SnowJim
|
|
|
|
|
Hey!
I have solwe one bit of the problem.
When i select an item in thre tree and this item is an new item, then is vill change to old item with old imageIndex(icon).
I am doing this by :
tmpNode.SelectedImageIndex = 2;
where 2 is the index for old image, and this works fine until i select anotner treenode in the tree, then the icon is going back to be new again?
I have stated in my own made TreeNode that it is Visited TRUE, and this means that it is old.
The change to old icon is appering when i release the mouse button on another Treenode.
Any ide why it is doing this?
SnowJim
|
|
|
|
|
Hi all,
I have windows forms application,but what I have to do is I have to generate a license key in a sql server database when anybody wants to install my application.Also i have to limit no of installations per domain.The way to generate the license is, wherever application is installed, a KEY is generated with that computers CPU number. My problem is i do not know how to start coding for solving this.if any body knows please tell me the approach how to start this.Please send me any sample programs.Its an urgent requiremet..?
thanks
sastry.
sastry
|
|
|
|
|
Hi all,
I have windows forms application,but what I have to do is I have to generate a license key in a sql server database when anybody wants to install my application.Also i have to limit no of installations per domain.The way to generate the license is, wherever application is installed, a KEY is generated with that computers CPU number. My problem is i do not know how to start coding for solving this.if any body knows please tell me the approach how to start this.Please send me any sample programs.Its an urgent requiremet..?
thanks
sastry.
sastry
|
|
|
|
|
|
Hi,
From one form I would like to call a procedure on another form without creating a new loaded instance of that form.
The Scenario is that I have an MDI form loaded with a child form and when an action is evaluated on the child form I would like to call a procedure in my currently loaded MDI form to perform an action.
Any help is appreciated.
Regards
Stephen
|
|
|
|
|
Insert the following inside the evaluation method of your child form:
((YourMdiForm) this.MdiParent).WantedMethod(...);
www.troschuetz.de
|
|
|
|
|
|
in .net documentation, System.String stated as reference type. so, i supposed it will pass the reference to the method and the modification will affect to the original variable. but, i found it is not true! here is the sample i draft.
anyone could give me a help so that i work as call by reference.?
<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
System.String A; System.String B;<br />
A = "A for apple";<br />
B = "B for boy";<br />
Sub(A, B);<br />
MessageBox.Show("A: "+A+", B: "+B);<br />
<br />
}<br />
private void Sub(System.String a, System.String b)<br />
{<br />
System.String tmp;<br />
tmp = a;<br />
a = b;<br />
b = tmp;<br />
}
|
|
|
|