|
How do I open html files or any other file that opens up in normal ie using a simple form. I want to be able to press spacebar and it would open up the next file in the directore using my form. But files are dcr(director) files and onlu open up in ie.
Thanks
|
|
|
|
|
Right-click on the VS.NET toolbox and click Customize. Select the COM tab and find the Microsoft Web Browser component. Add it and click OK. Then drag and drop it from the toolbox to your form. Now you've got an instance of the Internet Explorer WebBrowser control. You can open files using WebBrowser.Navigate2 , for example. There's other ways, though, just as there's other ways to add the WebBrowser component to your project.
Search CodeProject for "WebBrowser" for more examples and articles using the search textbox below the logo toward the top of the page.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
|
Is there a way to run a console application in the background with out that black console screan popping up on execution?
|
|
|
|
|
Process action = new Process();
ProcessStartInfo si = new ProcessStartInfo(Program);
si.CreateNoWindow = true;
si.RedirectStandardError = true;
si.RedirectStandardOutput = true;
si.UseShellExecute = false;
top secret xacc-ide 0.0.1
|
|
|
|
|
When i compiled it with that code it just gave me and error about
ProcessStartInfo si = new ProcessStartInfo(Program); < looking for variable
|
|
|
|
|
Well, you have to tell it what "Program"...
Of course, leppie could have misinterpreted your initial question. Given the context of the forum and without additional qualification in the original posting, it reads as if you are asking: I am launching a console application from within another application, but how do I ensure that the Console window does not appear?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Welcome to the "Point-and-Click" programmer age.
I think that dude just didn't enable a feature in the compiler that allows
mind reading behaviour. Add the "/Cmr" option. It's a wonderful option that allows basically any code with undefined variables to compile without a problem, by just asking a telepathic question to the dumb a** programmer cutting and pasting something out of a internet forum.
|
|
|
|
|
Hello!
I want to learn how to work with IRC and make a IRC Client (very easy one) so I searched alittle and I only found a C# IRC Bot on c-sharpcorner:
http://www.c-sharpcorner.com//Network/IrcBotPH.asp
I downloaded the source code and got the two classes used. But how do I test this? There is no project in the sorce code only two .cs files. When I open them I can't run them. Can someone help me with what I need to do to make it run?
Create a project, add the two .cs files and then create an object of the IRCBot class?
Thanks in advance!
~~~~~~~~~~~~~~
Martin Lundberg
Student, Sweden
I have to thank every member of the Code Project for making it such a great place for a beginner to learn!
|
|
|
|
|
Either put them in a new project or use the C# command-line compiler to compiler them both. Type csc.exe /? on the command line (if %WINDIR%\Microsoft.NET\Framework\v<version> is in your PATH environment variable). Read the .NET Framework SDK for more information.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
If you are searching for a .NET IRC library, then check this: http://thresher.sourceforge.net/
|
|
|
|
|
here is a good one
aeruIRC[^]
/\ |_ E X E GG
|
|
|
|
|
Dear sir
+. I'm using Tapi3.1 and C#.Net for developing simple Phone Application
+. My simple Phone can playback, record, detect DTMF, detect Disconnected, ...
but it can't detect silence.
+. I don't no. What should i do
+. Which modem support silence detection
+. Please help me
|
|
|
|
|
|
Dear sir
+. My TSP I use is not support silence Detection.
+. Which modem is support silence detection
|
|
|
|
|
This is the C# forum, not the modem/hardware forum. Just like I (easily) found the article I linked above, so should you try to search for your answer. You can also check the OEM's web sites for information about their modems, which is the first place I would've checked.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
+.Any modem with "voice-out" capabilities sound work.
+.Also called voice modems, more new modems are of this kind AFAIK.
+.No-one use modems any more.
+.I dont use one.
+.More info I do not have.
top secret xacc-ide 0.0.1
|
|
|
|
|
Buy proper hardware if you are writing a proper CTI/IVR application.
If it's not targeting consumer market, opt for some of Dialogic's cheap hardware, such as the D4/PCI board.
If you are writing software to work with modems, you should know the limitations and not use features that most definetly won't be supported by the driver(and TSP). Silence detection, positive answering machine detection, positive voice detection and more are all domain of more advanced hardware boards. Anyway Brooktrout and Dialogic are leaders in the field at the moment, so that's where you should be looking.
|
|
|
|
|
Hey,
I have a Windows Application for showing some pictures.
I'm using a Listview / LargeIcon to show the picture thumbnails. I hope I can use a background image for the ListvieItem.So I can change the background iamge to indicate if the item is selected. Is that posible? If yes, how?
|
|
|
|
|
|
Hi,
I want to edit just a cell or a row in a DataGrid.
I think that I have to set Readonly property to true, but when I change this property to false all cells and rows will be editable.
I know I can have it easily in web application, but I want to know how can I do it in C# windows application.
|
|
|
|
|
Edit the data itself and update the DataGrid . This works different than in ASP.NET because it is different that in ASP.NET. In Windows Forms, it's a control. In ASP.NET, it simply generates different HTML based on state. There's a big difference.
Once you've edited the data (like a DataSet , which you should use the DataTable.DefaultView to take into account any re-ordering), you can re-data-bind your control either by setting the DataSource property to null and then back to the DataSet (or whatever), or refresh the CurrencyManager like so:
CurrencyManager cm = (CurrentyManager)
dataGrid1.BindingContext[dataGrid1.DataSource,
dataGrid1.DataMember];
if (cm != null) cm.Refresh();
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have seen this done before but am still not clear on exactly how it is done cause for some reason its not working for me. Here are the steps I have taken.
1) Make a DataGrid 2) Make the DataAdapter 3)Make the Dataset 4) set the properties of the datagrid Source=dataSet11 Member=Movie 5) then the code
I have 2 columns in my dataset one title the other information. I want to add a checkbox so I try to do something like the following.
oleDbDataAdapter1.fill(dataSet11);
DataGridTableStyle tablestyle = new DataGridTableStyle();
tablestyle.MappingName = "Movie";
DataGridColumnStyle boolCol = new DataGridBoolColumn();
boolCol.MappingName = "Current";
boolCol.HeaderText = "Info Current";
boolCol.Width = 70;
tablestyle.GridColumnStyles.Add(boolCol);
dataGrid1.TableStyles.Add(tablestyle);
All i get is a datagrid with no fields, or rows. It should be simple to fix but I'm drawing a blank.
Thanks for the help in advance.
Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
|
|
|
|
|
Don't declare your DataGridBoolColumn as it's base class: declare it as a DataGridBoolColumn and set the FalseValue and TrueValue members. Then add your DataGridBoolColumn to the DataGridTableStyle.GridColumnStyles property (no need to cast it - it's a derivative class).
In general, declare your variables as the type you instantiate so you can access members declared by the type. It's still an instance of its base classes.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Is there anyway I can handle click event on a MenuItem which has sub menu. The default behaviour is the click opens up the submenu.
I want to handle the click in two different ways in different circumstances.
In one circumnstance I want to go for default behaviour to open submenu
in other I want to go to the click event handler on this MenuItem.
For some (good?) reason MenuItem is not derived from Control so I can't override WndProc. Does someone know how to catch mouse events on Menu ?
Also is it possible to figure out exactly which Point on the MenuItem did the user click ? I can use this to draw a OwnerDrawn Menu and achive what I want.
waiting eagerly for some suggestion
|
|
|
|