| Invalid media player file (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, Does anyone know what event (if any) you get from the media player AX if you point it at an invalid file, or a file the codecs aren't too happy with ? i.e. { mp.FileName "c:\\invalid.mpg"; mp.Play(); } (Tried the media player NG, but guess it was the wrong one.) TVMIA, Adam. Adam Benson adam.benson@NOSPAM.omnibus.co.uk |
|
| Help with StreamReader (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| hello im trying to read emails from a pop3 server. when i call my GetMessage below it works fine when i step thru it. it steps thru the following loop until all the text is read. while(sr.Peek() 1){ resp sr.ReadLine(); } however, when i do not step thru it, then i only get the first line. i am guessing this is because stepping thru it slows it down enough to give the other end time to send all of ... |
|
| Updating the value of a control on a different form (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| I have a main form (frmMain) that has a listview control to display summary information about processes that the program is running. I need to be able to update one of the subitems text values in the listview when a user clicks on a button that is located on a seperate form. This seperate form is opened when the user clicks on a button on the main form. I am an old VB programmer, so my inital thou... |
|
| C# variable hiding. (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| I've got a BaseClass which declares all the panels I'm using in each of my derived classes, the purpose is that these derived classes are used to display info on my site. In my base class I have... Panel DisplayPanel new Panel(); ....but the problem is that in some of my derived classes I want to change this to... BoxPanel DisplayPanel new BoxPanel(); BoxPanel is simply a Panel derivative with a b... |
|
| DataAdapter (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| After adding a dataadapter, when trying to generate dataset, I receive an "Unspecified error". Nothing else. Did anybody ran into this before? Any help will be appreciated Thank you Larry |
|
| VB6's Split in C#? (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| In ancient VB6 days, to make a quick array of a string with a delimiter, such as a comma you could use the SPLIT() command. How would I do that in C# and not in the constructor of an Array. |
|
| Marshalling (5 replies) |
| microsoft.public.dotnet.languages.csharp |
| Can someone explain the term "marshalling"? I've seen it used many times and I'm unfamiliar with it. Thanks Jim |
|
| How can i use EventLog class to access remote server event logs ? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi All , I'd like to know how the EventLog class to access remote server's event logs?? i just know how to access local machine, but for remote server ?? in framework sdk document don't have message about this. // my test source code aLog.Log "System"; aLog.MachineName "."; // local machine foreach (EventLogEntry Entry in aLog.Entries) { Console.Write(Entry.EntryType); ............................... |
|
| Iterate enum (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm a beginner to .NET. How can I iterate an enum type variable? For example, I want to list out all special folders in Environment.SpecialFolder. Thank you. http://ckso.uhome.net or http://go.to/ckso |
|
| ShDocVw, MSHTML and IDocHostUIHandler interface (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi Sirs I'm incorporating the Web Browser control in my App. and I need to Disable the context menu (when you right click in html document). I have read at http://msdn.microsoft.com/workshop/browser/hosting/wbcustomization.asp that you can implement the IDocHostUIHandler interface and hereby control the context menu. But I can't find the fu.... interface. I have stepped through the ShDocVw.dll and... |
|
| a weird bug in .NET? (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Is it a bug or am I doing something wrong? I wanted to get the height of my window's toolbar. So in my form class I have this variable tBar of type System.Windows.Forms.ToolBar. And I noticed that call to tBar.Size.Height gives me the wrong number (in my case it was 39 instead of 25). It remained the same even if I initialize the Size property of the tBar with new values. It did not affect the Wid... |
|
| Can anyone tell how I do batch update to the database with SqlDataAdapter and Dataset (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi All! I want to do all the changes I want to make to a Dataset and to Update the Database with SqlDataAdapter's update(DataSet) method.But the Changes I made to the DataSet Locally are not reflecting in the Database.The Local DataSet shows the changes.My code Listing is as follows. Code to Bind the Grid: string QueryString "Select * from employeemaster"; string TableName "employeemaster"; DataAc... |
|
| Registry Usage (6 replies) |
| microsoft.public.dotnet.languages.csharp |
| Another question for you all... I would like to use a registry key in this function, but would like to know if it is wise to do so... Value Registry.LocalMachine.OpenSubKey(KeyName).GetValue(ValueName); However, I don't know if this would automatically close the key when it is finished. I'm assuming the garbage collection with the destructor would take care of this, but I would like to be sure. Th... |
|
| SQLDataReader (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, This is my Scenario I have a sqlcommand that does a SELECT * ... on a table in my database. I use SqlDataReader to read the values into the database. I must use the correct method of SqlDataReader for the data types that I am getting (for int I have to use GetInt32 for smallints I use GetInt16 for string I use GetString etc..) However, I would like to be able to use one method and simply retur... |
|
| TextBox (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| I am using a string in C# that will be filled with data to display in a textbox. In that string, I need the ability to create a carrage return, line feed. How do you do this in C#/TextBox? Thanks Rick |
|
| C# Object Design (4 replies, VIP) |
| microsoft.public.dotnet.languages.csharp |
| Most of the samples web apps that I've seen posted do not specifically create "entity" objects as one might do in Java. Instead, the C# objects typically contain methods that return the equivalent data as a datareader or resultset of some sort. I.e. the data is frequently contained in a system object. For example instead of instantiating a Person object with attributes like Name, Address, Age etc,... |
|
| Selecting Rows from a DataGrid (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi! Does anyone know a better way how to select a Row from a DataGrid without displaying a ID Column... Especially when you Sort for a different column you can't use the RowNumber... ....this is a bit clumsy. I think Users should not see the DataBase ID. Greetings Michael |
|
| Fitting the columns to width of Data Grid (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello All, When I create a DataGrid component, the columns of the datagrid to not fill out the whole width of the table. consequently there is a gray area in the table. Is it possible that the width of the columns gets adjusted so that the whole grid is covered ? thanks in advance. regards, Abhishek. |
|
| Web Service Problems with new release. (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| I have installed the final release of the Framework on our server. I have installed the new release of VS on my machine. I am trying to create a web service on the server. When I attempt to browse the web service I get the following error: CS1595: 'System.Runtime.CompilerServices.CompilerGlobalScopeAttribute' is defined in multiple places; using definition from 'C:\winnt\microsoft.net\framework\v1... |
|
| How to do string comparison with wildcard pattern (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, Did C# provide any method to compare the string with a wildcard pattern like "A?2*" in Dos command. Or I can say I want to find a "Like Operator" to do string comparison. I found the IsMatch() method of Regex class is very close to my requirement, but can't 100% fit the requirement. Below is my code and I also post the result at the bottom. Any correction and reply is grateful. //My test code.... |
|
| Serializing a Stack of classes (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm a bit confused on serializing a Stack object that contains classes. I'm implementing the ISerializable interface as suggested in a previous post. I'm good with all the normal member variables and classes I have, but one of the objects is a Stack, and I'm stumped. I have something like; class one : ISerializable { int a; SomeOtherClass b; Stack s; // Stack of 'class two' } class two : ISerializ... |
|
| Flashing windows? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| How does one go about to make a window flash รก la MSN Messenger. When something occurs in minimized or otherwise hidden mdi child I want to notify the user of this event. GhostNULL m ghost null; |
|
| ToolBarButton capturing Mouse events? (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| I've created an application shell in VS.NET Design mode. The app includes a ToolBar control which itself contains ToolBarButtons. The ToolBarButtons have a black/white icon for default state. When I put the mouse pointer over any ToolBarButton, I want the black/white icon to change to its color equivalent. The ToolBarButton Class in Namespace System.Windows.Forms doesn't contain events such as "Mo... |
|
| How do you get a newline in a textbox and string in C# (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| Using C# and I have a form, on the form is a TextBox. I am doing some manipulation of a string that will be assigned to the text property of the textbox. In that string, I want to cause a newline to occur in the textbox. What character or function do I use for this? Thanks in advance Rick |
|
| Beware this WinForms .NET bug (Can't close form) (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Friend, There was a bug that crept into .NET in Beta2. I've posted about this before, but I want to repeat it because it wasn't fixed in RC1 or the official 'release'... The problem scenario: You have an instance of a Panel or anything that derives from Panel (like TabPage), and you use the Controls property to Add() a control to the panel at runtime and throughout the course of your application's... |
|