alejandrohidalgo's Q&A profile
Audio and Video Development Live Audio/Video Streaming
Aslamualaykum, Hi, This is Sohail from khi, Pak. Iike to do Live Audio Streaming by Windows Media Player anybody now how can i do that Its is possible on my web page hosting or i get seprate hosting for this purpose Regards, Sohail Wa Alaikum Salam! Here is an article that describes how to do what you need: http://www.microsoft.com/windows/windowsmedia/howto/articles/webserver.aspx You need a machine with Windows Server 2003. You can have the web server on either the same machine or a separate machine. Note: This forum is for questions regarding Media Foundation, the new media SDK in Windows Vista. If you need further details regarding your question, the right forum is the Windows ...Show All
.NET Development Problem while importing CSV data in DataSet (ASP.Net using C#))
Hi, I have written a class to import data from CSV file into DataSet. Following is the code: //////////////////////////////////////////////////////////////////////////// public class CSVToDS { #region Variable Declaration private OdbcConnection mobjCon; private OdbcDataAdapter mobjAdapter; private string mstrConnectionString = string .Empty; private string mstrFileName = string .Empty; private string mstrFilePath = string .Empty; private string mstrFormat = string .Empty; private string mstrMaxScanRow = string .Empty; private string mstrCharacterSet = string .Empty; private const string INI_FILE = "schema.ini"; private bool mblnColNameReq = t ...Show All
.NET Development ICloneable???
I am using .net 1.1 and i need to create a new instance of an object but keep it populated with all the data thats in it when i instaniate it the first time can i use I cloneable to get this done...because when i create a new instance i loose all the data...when i dont create the new instance i get the exception object reference not set to instance of an object.....Will ICloneable help this issue ICloneable itself won't help you as it is only an interface and does not provide any implementation. Depending on the object you may have to implement the cloning yourself. Is this object a custom object or an object from within the Framework ...Show All
Windows Forms DataGridView1_CellValueChanged
hi Private Sub DataGridView1_CellValueChanged( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged 'Usually after editing, the enter key is pressed and the current in th dgv goes to next row, 'how do i make it go to next column instead. i have the code to make it go to next column. it is 'going to next row automatically. End Sub hi , i am going in the right direction with the custom noentercolumncombobox column, i am looking for a class to implement something like iList that will give me the properties of datasource etc.. i'm currently looking on that. if in the wrong direction, let know , thanks Public Class No ...Show All
Visual Studio Express Editions Select text...
Hey, i have a 2 textboxes, 'search' and 'text' and a button 'searchbtn' in 'text' a have a text and in 'search' you most typ somthing. Then my program search the string from 'search' in 'text'. But kan a mark in 'text' the string that is found But you could if you used a richtextbox control which would allow you to control specific formatting within the control to highlight multiple items. OK here's a function and some code that should work to highlight specific words in a richtextbox control. Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.RichTextBox1.Text = "this is a test of the test system" End Sub Functio ...Show All
Visual Studio 2008 (Pre-release) Handling clickevent from Custom Control
Hello I have this Custom Control "MenuBar" which contains several buttons. This "MenuBar" control is embedded in a larger Main Window. For each button I have a corresponding eventhandler for when they are clicked, but how do I set a Grid in the Main window to Visible when they are clicked. The eventhandlers are defined in the codebehind file for the MenuBar. I can't seem to access the controls of the Main window from my MenuBar control. This makes sence since it's a completely different class, but then how do I access that Grid to make it vissible -- Sparre Hello About a second after I remembered what to do. I set the following in the window constructor. MainMenuBar.SettingsButton.M ...Show All
Windows Forms Designed Bound Datagridview Empty
Hi, I have the following Problem: ( Visual Studio 2005, Dotnet 2.0 MySQL, c# ) Whenever I bind my Datasource to a DataGridView with the designer, I can see the columnheaders in the designer as expected; but the Datagridview is never populated with the Data. When I start the Application, the DataGridView remains empty. ( I worked around the mysql "double-dot" bug in the select statement and a datapreview works alright) When I bind the DataSource manually to the DataGridView it is filled properly after Application startup. I am sure the problem is a noob one - but please help anyway. tia well, yes.. with the fill Method added manually it works. :-) I only thought there was some way to init the dgv ...Show All
Visual Studio Team System Protocol violation - can I change how sensible the test shall be to protocol errors?
I get this error when running a test on a web page that I have no possibility to change: RequestFailed: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF Is it possible to configure how the test shall handle this so the test will not fail I'm also getting same error while debugging the captured script. RequestFailed: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF This request is for login. The response tab for this request is blank Please will you give me proper solution Thanks, ...Show All
Windows Forms DataGridView set index of Row Selector
Hi All, In VS2005 VB or C# I can select rows in a DataGridView, so the row is "Highlighted": DataGridView1.Rows(1).Selected = True But the RowSelector (ie the little black arrow in the Left Margin) does NOT change to the selected row. I'm having extreme difficulty changing the rowselector's index, I've tried lots of things & based on a post Regis Brid made I thought this method might be the trick... DataGridView1.Rows(1).HeaderCell.Selected = True But no luck, it always returns the error "Property Selected of a DataGridViewHeaderCell cell cannot be set." How do I go about programatically making the RowSelector the same as the selected row Please help, thanks in advance ...Show All
Visual Basic IDE annoyances
While i absolutely love the new visual studio, there are a couple of things that drive me nuts!!! when i right click on a symbol in code (such as a variable or procedure name), i can choose "Definition" and jump to that location. unfortunately, the "Last Position" menu item (that was available in VB6) was removed so now i cannot jump back to where i was previously. when i want to save my file with a different name, i would normally choose "File->SaveAs". this has now been changed to include the file name, which i find to be reallly annoying, especially since i will not be using the same name. opening visual studio is really quick, but closing visual studio takes forever. opening the design (GUI) view takes forever. switch ...Show All
Visual Studio Express Editions Zip Files
Are there any free zip libraries for c++ Other wise I was just thinking of using a system command and use a dos zipper like pkzip to zip files, but I would like to have more programtic control and so a library would fit much nicer. Any clues from anyone If this is a native C++ application you make want to look into zlib or zlib for Windows . If on the otherhand this is a .NET app written in C++, #ziplib would be your best bet. ...Show All
SQL Server accessing another database on the same server
Let's assume we have 2 databases db1 & db2 and we have a table named "MyTable" which is located in db2 database in the db1 database I create a stored procedure by using following code: << use db1 create procedure myproc as begin select * from db2.dbo.MyTable end; >> this code does not execute successfuly and I face an error which says << invalid object db2.dbo.MyTable>> and as you know we are not allowed to use USE database key word in stored procedures I can's access a table which is located in another database, whithin a stored procedure which is located in different data base but on the same server thanks ...Show All
Visual Studio 2008 (Pre-release) WCF Performance: ASP.NET Client
I'm trying to compare performance of WCF services (recent release) with ASMX webservices in the scenario when service is called from ASPX page, under load (hundreds of concurrent users). Here is the client code in aspx.cs: MyServiceCleint proxy = new MyServiceClient(); proxy.MyTestMethod(); proxy.Close(); MyTestMethod() here doesn't really do anything, just a stub that returns an empty string; WCF security is disabled - so there should be no extra overhead. WCF service is hosted in IIS. It seems like WCF service performs much worse than similar ASMX service - WCF is more than hundred times slower ( !). I have tried different modes/settings such as ConcurrencyMode, InstanceContextMode and Throttling as described here: http:/ ...Show All
Visual Studio Team System unable to connect to this team foundation server
I've installed the db professional edition of VSTS and am getting "unable to connect to this team foundation server" error messages. I've checked security. I'm a domain admin on the tfs server. Would it help to reinstall the team explorer client Reinstalling the TFS client Is that the same as installing the Team Explorer from the TFS install disc I can connect to the TFS server from a different machine via VS Team Suite. DB Pro is not on that machine. ...Show All
.NET Development How to know what exceptions a method can throw?
I was reading in some other posts that you only have to catch known exceptions. And that it is not allowed to catch Exception like this: private void CheckCancelEntryWeighingRecords() { try { mis.Transfer(data.CsvData); //Call to a third party dll } catch (Exception ex) { LogError("Error occured in CheckCancelEntryWeighingRecords", ex); } } How can I know what exceptions a method can throw So that i can decide on which situation i can recover and on which not I know that the Framework.NET has documented the most exceptions. But what about third party dll's with bad of no documentation I also know i could use reflector to look what the possible exceptions a ...Show All
