|
You really need to improve your programming skills, the questions you ask are very basic.
You need to put it there where you placed the question marks:
f (m.Msg == WM_LBUTTONCLICK)
{
???
???
???
}
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I want to display XML file in tree view and then by using popup menu by right clicking on nodes i want to add or delete entries in tree view to make changes in the xml file.
Please guide me about "popup menu", "Adding Nodes" and "Adding ImageList with different node entries".
Also please refer to any existing project if any.
|
|
|
|
|
Hi h@s@n.
You can create a ContextMenuStrip and call the method "show" when the MouseClick event has been fired on any node.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Hi
Every control has a ContextMenu property (in framework 1.1) that you can pass a context menu to it and every time you right click on your control the context menu will be shown( you don't have to implement any mouse event)
The tree view control has a image list property that you can pass an image list to it and then you can select the image of a node by setting its ImageIndex property (aNode.ImageIndex=1 for example)
The tree view control has a Nodes collection property that contains all the modes that have been added to a treeview and you can add or remove nodes to it and each node has a nodes collection too that has the same funcionality.
Take a look at http://msdn2.microsoft.com/en-us/library/ch6etkw4.aspx[^]
Regards
|
|
|
|
|
I want to remove the title bar so I can customise the look of a form (e.g. windows live messenger).
But when I set formborderstyle to "None" the form behaves differently;
- The taskbar button looses its menu when you right click it,
- You can't minimize the window by clicking on its taskbar button
- It goes to full screen when you maximize it.
Can anyone suggest a way to sort these problems or provide an alternate way to remove the form boarder that doesn't cause these problems?
Thanks
ps. setting the region of the form solves this problem but I cant find a way to find the correct region as the dimensions of the title bar can vary.
|
|
|
|
|
Hi Sanstrom.
Try changing the property "ControlBox" follow of "FormBorderStyle"
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
I've developed my app using C# and SLQ Server 2005 Express. Now near it's completion, I've just realised I need to create a set-up program that not only deploys my app, but ensure SQLServer Express is also installed, set-up, configured with my database and a default user ready for my App to run straight away.
Where do I start as the end users of my product will not necessarily be IT literate?
Andy
|
|
|
|
|
use the Launch Conditions option
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Again, assuming my users have no in-depth technical knowledge of computers, i.e. local or network installation. Although the pre-requisites alow me to select and install SQL Express, I can't seem to alter the installation process i.e. force the type of installation, instance name, auto create a user etc.. Do I need to write my own specific installation/set-up windows? If so what's the best site to learn how to alter the set-up.
Andy
|
|
|
|
|
Hi, I wonder if someone can help, please.
I am coding up a web application using ASP, C#, and a bit of javascript, and wish to enable videos from the server to be played in a popup window. I am using Windows Media Player.
Two specific questions I have:
1. I want the video to start playing automatically as soon as possible after the popup window opens, and so want to make use of the video buffer to stream. At the moment, however, the video loads but won’t start playing until the video is fully loaded. I have noticed that the windows media player is not displaying at the bottom of the player the fact that it is buffering, and wonder if anyone can help. I probably need to change some default parameters when popping up the window and running windows media player? Any ideas?
2. Also, I’d like to show a 'gallery' of videos that are available, similar in principle to that shown in windows explorer when viewing a directory of videos. I’d like the first frame of a video to be displayed to give some indication of content, and I wonder if anyone knows how to do that without going to the trouble of playing the first frame, capturing it, and displaying it as a static graphic. Any ideas?
Great if you can help !
|
|
|
|
|
Welcome to The Code Project.
Please don't post the same question in more than one forum. If you think that it is relevant for more than one forum, post it in the most relevant one, and post a link to the thread in the others.
---
b { font-weight: normal; }
|
|
|
|
|
hey,
im also working on something similar, I need to stream video to a client from my server, how do i do that? i need a sample code.
thanks,
|
|
|
|
|
i posted about how to pass my parameter to Crystalreports and a person reply to me by this code :
crystalReport11.SetDataSource(MyDataSet);
crystalReport11.SetParameterValue("PrintDate1", "2006/05/07"); // this line that error occured
crystalReportViewer1.ReportSource = crystalReport11;
but the following error shown me :
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
how to solve my problem and pass my parameter to crystalreports ?
thanks
|
|
|
|
|
Hi hdv212.
Use the follow sintax:
this.crystalReportViewer1.SelectionFormula = "{table.field} = value";
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Hello,
I'm a newbie in computer programming.
I'm looking for a program help me to change file attributes(Created time,Modified time and last access) like FileDate By T.YogaRamanan.
Here is link :
http://www.codeproject.com/file/FileDate.asp[^]
But I want to ignore its user interface.(No Dialog box , No Text box)
I want to choose file as coding and change file attribute as coding too.
I have tried to read source code of FileDate above.
I still can't do.
Can you help me ?
Thank you.
|
|
|
|
|
Take a look at the FileInfo class and especially its properties CreationTime , LastAccessTime and LastWriteTime .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Why don't you read the replies that you actually get, before you repeat the same question all over the place?
---
b { font-weight: normal; }
|
|
|
|
|
I'm writing a managed COM plugin, and would like to catch all exceptions the control throws.
Since there are over 15.000 lines of code, and numerous places that can throw exceptions, I would like to set a boolean whether exceptions should be swallowed (in that final unhandled exception function) or thrown. So that all exceptions seeple down to only one exception which I can either throw or swallow.
|
|
|
|
|
Hi
i have a problem i don't know how to handle.
it is not easy to explain so feel free to ask me more details..
my main program runs in the backround with notifyIcon.
i have an extra class which is a form of notification (like msn notification message).
the program should run on the background and pop up the small MSN-like form on the buttom of the screen.
i want the user to type in any window and on some case i show the notification message.
at first run of the programm(the user didnt choose items on the small notification message so from some reason it works in the beginning), the user is typing in notepad(just an example) and when i want , i pop up the small window.. if the user don't care about it he continue to type on the notepad without loosing the focus to the noification message.
the first time that the user select an item (listbox) on the message notification, then everything changes:
when he types on the notepad and i popup the message notification, the focus changes to the message notification form, but i want him to keep staying focused on the notepad.
what can i do?
please help.
R.Z
|
|
|
|
|
I believe the message you get when your app gets focus gives you the HWND of the app that lost focus, so you can just bounce the focus back.
|
|
|
|
|
Hi,
1. it's the required work-around but how can i disable that?
can i disable focsu from my application at all?
2. if not, then which event should i listen to? cause i have main form (not visible) and the notification form . so to which one?
3. can i listen to Application/Process gotFocus event?
Thanks for your help.
R.Z
|
|
|
|
|
Hi all
if it intrests anyone..
the notification message that i was talking about was set with TopMost=true
this cause auto activation and force to get focus.
thats why it got some last focus.
why i did is overided the property ShowWithoutActivation
and everything start to work.
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
thanks man.
R.Z
|
|
|
|
|
how can I create an API file
|
|
|
|
|
|
Hi,
Do you mean to say Class Library ?
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|