|
Hi All,
i want to get the folder path which the user has selected in the explorer....
urgent please................
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
With the over file dialog? if so then it is like this in C#:
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "Open Text File";
ofd.InitialDirectory = Application.StartupPath;
ofd.Filter = "Text files (*.txt)|*.txt";
ofd.FilterIndex = 0;
if (ofd.ShowDialog() == DialogResult.OK)
{
MessageBox.Show(ofd.FileName,"File picked:");
}
|
|
|
|
|
Hi all,
I would like to have a dropdown control column in my windows form datagrid,
can anyone please help me with this??
I am using .NET 1.1 so no .NET 2 control info plz
|
|
|
|
|
Examine the e.Node property
|
|
|
|
|
A TreeView has several events; some of them have a TreeViewCancelEventArgs parameter,
and that one has a Node member. MSDN will gladly concretize all of this.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
You know that the first sign of madness is talking to yourself. Obviously, the second sign is getting an answer.;P
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
More and more the challenge on these discussion boards is to come up with answers that
make kind of sense no matter what happens to the original question...
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi all,
I use a 3rd party component in my winform, and I try to show the same smart tag menu I use in design time(visual studio 2005) in run-time.
So the end-users can customize the component. (change Text, add Image...)
Is there a way to enable the smart tag menu at run-time ?
perhaps should I use reflection
Thanks in advance
kam
|
|
|
|
|
no, you're asking for VS2005 to exist inside your app. You can write your own code, or you could indeed write some code that uses reflection to find and expose properties. But, you cannot get the VS IDE outside of VS.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
I am creating an application for a Cinema Complex which has 4 cinemas running movies concurrently so far I'm trying to find some examples on the net but have not come up with any. Would anyone please help me to see any example.
|
|
|
|
|
Why are you finding the example for that?
What you should do is that ~
- find out what your customers wants (collecting the requirement)
- design the application based on requirement.
- create the demo and show it to customer.. (get it approved)
- then, start the coding...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
What does this application do ? You've given us no idea. Also, unless this is homework, you want to ask the client what they want, as someone else said. Nothing we say means much, we don't run cinemas, and we sure don't run THAT cinema
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
I think he is looking for a ready-to-run-after-a-download from an opensource website.
|
|
|
|
|
It has been quite a while. I have a task to identify a calling Windows' batch script's name and its location. Basically, the batch script calls/spawns my C++ executable as a parent process and I failed to identify the parent. I can identify a number of different calling processes using NtQueryInformationProcess(), but failed to do so to the batch script. The main reason is that the batch process is shown as cmd.exe not a real script name. Any deal?
Thanks a lot for the help.
|
|
|
|
|
Hi,
I`ve run into an interesting situation here.I created an AppBar
(as per the tuto :http://www.codeproject.com/csharp/csdoesshell3.asp) and am now trying to extend it by preventing any window from being anywhere within the Appbar`s reserved space.
The current implementation always keeps the AppBar as topmost on the z-order, but is it possible to stop a window drag operation from entering the AppBar area itself, or in general for any form`s area ?
One technique i tried was to use the ShellAPI function of SystemParametersInfo for GETWORKINGAREA & SETWORKINGAREA , but the trouble with this is that the "boundary" keeps varying i.e all the other windows are supposed to be confined to the reduced desktop working area but if u try to drag these windows they get progressively closer to my appbar(which is docked to the left edge of the screen). The code snippets are as below :
<br />
private const int SPIF_SENDWININICHANGE = 2;<br />
<br />
private const int SPIF_UPDATEINIFILE = 1;<br />
<br />
private const int SPIF_change = SPIF_SENDWININICHANGE;<br />
<br />
private const Int32 SPI_SETWORKAREA = 47;<br />
<br />
public static int SetWorkspace(RECT workspaceRect)<br />
{<br />
<br />
IntPtr ptr = IntPtr.Zero;<br />
ptr = Marshal.AllocHGlobal(Marshal.SizeOf(workspaceRect));<br />
Marshal.StructureToPtr(workspaceRect, ptr, true);<br />
return UnmanagedMethods.SystemParametersInfo( SPI_SETWORKAREA, <br />
Marshal.SizeOf(workspaceRect), <br />
ptr, SPIF_change);<br />
}<br />
1. Is there any setting via control panel that enables me to reduce the desktop area manually(coz that way , i can do registry changes at startup and let the system handle all the behind-the-scenes manipulation )
or
2.Is there any other alternative approach ?
thanks in advance
|
|
|
|
|
Hi
I'm using a custom UserControl in my project.
Whe I created the control, debugging it went fine.
Because we are using a Team Foundation Server
with Sourc Control I have to check in this project
daily.
Now my problem. After an check out VS2005 won't debug
this control any more. I says that I can't debug
class libraries. Of course it can't. But I don't know
why my control is now recongized as an class library.
And debuging it through a little win form won't work
either, the control isn't shown in the toolbox.
Inserting the control directly by .dll into toolbox makes no sense,
because debugging doesn't work.
And the "UserControlTestContainer" is useless, too.
thanks in advance
regards pdluke
|
|
|
|
|
How to upload image in Windows application.Like in Web application ,there is File upload control.In windows app How can we upload a file or image.
|
|
|
|
|
Do you wanna upload the image to a directory of Web Server?
Then, you can use "WebClient" for uploading the image..
Do you wanna upload the image to database?
then, convert the image to bytes and send it to database...
Dim prmPersonImage As New SqlParameter("@pPersonImage", SqlDbType.Image)<br />
prmPersonImage.Value = ImageContent<br />
myCommand.Parameters.Add(prmPersonImage)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I want a whole functionality of how a user select a image or u can say which control should i use to select a image in Windows Application.
after selecting images (In this case i m giving functionality of user to select upto 3 images),There should be made a folder in my project and images should be saved there.
Kindly tell me How can i make this functionality.
Kartik
|
|
|
|
|
Place one textbox, one button and one FileOpenDialog control on the form.. Show the FileOpendialog on click event of button...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hello Guys,
I have a file (e.g test.txt) with the content:
123456
456789
abcdef
!@@#$%
Now, i want to remove one line of this file.
Anyone know? please help me
So many thanks
Thuan
|
|
|
|
|
read the whole thing, remove the line, write it out.
Christian Graus - Microsoft MVP - C++
"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,
You can use "System.IO.File.ReadAllText(path of ur txt file)" to copy the contents of the file in a "TextBox". Then remove the line u want to remove and save the file using "System.IO.File.WriteAllText(path of ur txt file, TextBox1.Text)".
Regards
Paramhans Dubey.
|
|
|
|
|
how to set a tooltip for a cbutton in c++ using only one method ?
dghdfghdfghdfghdgh
|
|
|
|
|
ellllllllie wrote: using only one method
Why only one method? If it takes two, then why not two?
|
|
|
|