nfreeze's Q&A profile
.NET Development Enumerating ports in use?
Hi, Is there a way to enumerate ports in use Thanks in advance, Rana It is often overlooked that a simple list of ports in use is not that useful. A given port can exist actively in multiple tuples <Protocol, local IP, localPort, remoteIP, remote port> Eventhough is hard to believe You can have two tcp connections from same local ip and local port to the same remote address as long as you connect to a different remote port. A better thing to consider is why would you want a list of ports in use ...Show All
SQL Server JDBC: DatabaseMetaData.getURL() returns jdbc:sqljdbc://
Hi, I'm using: Microsoft SQL Server 9.00.1399 Microsoft SQL Server 2005 JDBC Driver 1.0.809.102 Executing the DatabaseMetaData.getURL() method when database is connected returns "jdbc:sqljdbc://". The documentation for getURL() specifies that this URL is returned only when accessing pre SQL Server 2005 versions while when connected to 2005 it should return the correct URL (ex: jdbc:sqlserver://192.168.1.105:1223;databaseName=test) My question is why I don't get the correct URL as I connect to a 2005 database (Another related question is why a proper URL is not returned even when connected to a pre 2005 database ) Regards Roger Minq Software ...Show All
Windows Forms DataGrid Column Width Problem
I cannot set the datagrid column width using the DataGridColumnStyle.Width property, unfortunately, it keeps reverting to the DataGrid.PreferredColumnWidth. Does anyone have any idea what's going wrong DataGridColumnStyle prodCol = new DataGridTextBoxColumn(); prodCol.Width = 500; prodCol.MappingName = PRODCOLNAME; prodCol.HeaderText = PRODCOLNAME; ProductTableStyle.GridColumnStyles.Add(prodCol); The column width at runtime goes to 120, wh ...Show All
Windows Forms Bindingsource Filter Problem
When using the bindingsource filter I run into trouble if columns have a certain character in their names. e.g. "Part #" or even "Part Number" gives me problems, becuase of the reserved word Number. Is there anyway to encapsulate the column names in the filter string so they are looked at as only column names instead of filter commands. I have tried surrounding them with ' ' and " " but neither work. Thanks for any help Try @ or [ ]. Like this: @"Part #" or @"Part Number" or [Part #] or [Part Number] ...Show All
Visual Studio Express Editions Line Numbers
Hi there, I'm trying to create a nice basic text editor for learning/educational purposes. Basically been working on the basics and want to add more and more advanced functions as I go and learn. So I've come to a point where I want to add line numbers down the left hand side of a text box which indicates what line the user is typing on. Just like in the VB interface and other software such as Dreamweaver and Notepad++. I have no clue how to do this. I'm fairly new to this whole thing. I'm using Visual Basic 2005 EE. The last time I used VB was years ago and was verion 6.0. Any help as how to do this would be much appreciated. I'm guessing t ...Show All
Software Development for Windows Vista WindowsSDK is incompatible with Vista
I downloaded a WindowsSdk and burn it on cd. When I installed it on Vista, a dialog said "the version of this file is not compatible with the version of Windows you'r running.Check your computer's system information to see whether you need an x86(32-bit) or x64(64-bit) version of the program, and then contact the software publisher." I don't what's the matter If the file is not fit for 32bit system, where can I get an available one WindowsSdk version (6.0.5308.0.9.WindowsSDK_Vista_idw.DVD.Rel, size 1,114,850kb) Vista version (en_windows_vista_ctp_february_2006_32bit), That's the correc ...Show All
Visual Studio Team System TFS Version Control workspace structure
hi Is there any API or Sample to get folders and files in project I try to write a small program working as Source Control Explorer, but I can only list the project under workspace. Here is my test program tfs = TeamFoundationServerFactory.GetServer(); versionControl = (VersionControlServer)tfs.GetService(typeof(VersionControlServer)); Workspace workspace = versionControl.GetWorkspace("Administrator", versionControl.AuthenticatedUser); foreach (TeamProject teamProject in versionControl.GetAllTeamProjects(true) ) { treeView1.Nodes.Add(teamProject.Name); treeView1.Sort(); } ...Show All
Visual C++ Buttons
I know that this is probably one of the most simple and easy things to do, but I don't know how to do it,so can someone please help me with Click events so that when I click a button it goes from "form1" to "form2." Because I'm new at programming in C++. this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click); System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Form2 form; form.ShowDialog(this); } ...Show All
Software Development for Windows Vista render videos on a d3d texture with the VMR9
hallo, a the moment im trying to develop a program which should play videos. i want to build the menu with d3d sprites and display the videos with the vrm9. until now i've tried to do this with the allocator presenter from the ms samples. rendering the video as a sprite works fine, but theres a problem in the sample. the allocator presenter calls the draw function, when the video stops, the rendering of the sprites stops too. but a menu has to be rendered all time independend if the viedeo is playing or not. i've tried two several ways to solve this problem without any succsess. 1. i tried to call in the allocator presenter ...Show All
Windows Forms Determine loading completed
Is there anyway that I can determine whether a loading is completed. I've a textbox which has a initial text string. What I'm going to do is to make it invisible when user change its text. However, I found that the initial text string assignment has already trigger the event of making the textbox invisible. So, I would like to know is there anyway that I can check whether the loading is completed or not and add this code into the event handler of the textbox. Hi, You can make use of the KeyPress event to check if the Enter key was pressed which will signify that text typing is complete. The following is a generic example from ...Show All
Smart Device Development Speech to text
Hi, I am developing an application in VS.Net 2005 for Pocket PC 2003 and Win CE 5.0. I want to add an feature like speech to text for a form using c#. Please tell me how can i achieve this functionality. Thank you, Prashant Take a look at this search result of the .NetCF newsgroup: http://groups.google.com/groups as_q=speech+to+text&num=10&scoring=r&hl=en&as_epq=&as_oq=&as_eq=&as_ugroup=*.compactframework&as_usubject=&as_uauthors=&lr=&as_drrb=q&as_qdr=&as_mind=1&as_minm=1&as_miny=1981&as_maxd=16&as_maxm=2&as_maxy=2006&sa ...Show All
Windows Forms passing dataset reference to another form.
Hello, I am trying to pass a reference to a dataset that is being used in my main form to a modal dialog form. The form is being used to add/edit records in a database. I would like to use the exact same dataset in the other form, as opposed to working with a copy of the dataset. Any help would be extremely appreciated. Thanks, Adam You could put a property on the Modal Dialog form that is a DataSet property but if you want to use the DataSet as a ref instead, then you could do something like this: In the modal form: private DataSet _dataSet = null ; public void SetDataSet( ref Da ...Show All
Windows Forms DataGrid Error - No Value at Index 2
Hello, I am developing a VB app that uses a datagrid to navigate and update a simple table. The table t_Rule has only 3 columns. They are R_GUID, R_Name, R_Desc. R_Guid is the primary key. I've got the datagrid working fine except that when I try to create a new row in the grid I poped a constraint exception on R_Guid as a null. ...Show All
.NET Development Identity from Access
Hi, I have been searching around for a solution to this problem with not much luck. From what I have read, I don't like the answer, but I thought I would check just in case. I have been given the impression it is impossible to retrieve the identity value from an Access database after an insert. I have been purely using the dataset designer and using the tableadpater methods I have created in the designer as I am still getting to grips with the whole "visual" experience. I created a "select @@identity" query in the designer and ignored the warnings. It actually compiled and run, but as expected it returns 0 all the time. I ...Show All
Visual Studio Team System Excel as a data source for Web Test Databinding ?
I am currently using Sql Server 2000 tables as a data source in my web tests. Is it possible to use an Excel spreadsheet as a datasource for databinding in a Web Test If yes how can I do it in VS2005 Team Suite June CTP If this cannot be done in the june CTP can it be done in the july CTP Or will it be avaialble in some future CTP or the RTM -Ahmed There should be no perf problems that will impact execution of the test since we load all data into memory before the test starts. Note that we do not support inserting and updating records in the data source for test data on the fly. Ed. ...Show All
