|
try to make a pblic property to the panel
like:::
pblic Panel MyPanel
{
get{return this.panel1;}
set{this.panel1 = value;}
}
ByMindOnlyYouCanDoIt
|
|
|
|
|
Hi all,
Does anyone how can I creat a mapfile for my c# project?
For c++ project it's very easy.
You can do it from Project Settings,
just need to set generation of mapfile in Link Tab.
How can I do the same for c#?
Thanks in advance,
Anna.
|
|
|
|
|
|
|
I have a problem i was hoping someone could help me.
I have a windows form and based on a menu selection i'll display a specific user control uc1 that has various information on it (like a calender with appts on it) when i press down on the mouse I want to present another user control uc2 (this is a custom drawn via gdi+) at a specific location. I set the uc2.Location as to where I want uc2 to appear. This is where my problem occurs. Wherever i press the mouse on uc1 it uc2 always appears at a location just above and left of the mouse based on the location where i press the mouse on uc1. also note when i press the mouse down uc2 initially briefy appears where i want it but than moves/appears just above and left of the mouse. I also dispose of uc2 when the mouseup event fires.
i also use the mousedown event to move uc2. this works fine (but with the location problem) and uc2 moves fine but starts from the location just above and left of the mouse not where i had set the position via uc2.Location.
note i also use uc2.visible=true and uc2.BringToFront()
Does anybody have any ideas?
As always - thanks in advance for your help
Bob d.
|
|
|
|
|
hi i want to make a program that will read the inbox of the outlook 2003 and then save the inbox mail messages as *.msg format so can any one help me to get this code
Thanks alot
Hamody
|
|
|
|
|
Look at Internet part in C# section in this site , there are some articles about how to get emails from your mailbox.
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
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
|
|
|
|