Software Development Network Logo
  • .NET Development
  • Visual C++
  • IE Development
  • Windows Forms
  • Audio and Video
  • SharePoint Products
  • Visual C#
  • Visual Studio
  • Microsoft ISV
  • SQL Server
  • Game Technologies
  • VS Team System
  • Windows Vista
  • Visual FoxPro
  • Visual Basic

Software Development Network >> Kees_de_Waard's Q&A profile

Kees_de_Waard

Member List

Nitin Khurana
Netmaster0000
Amos Soma
cgraus
Gary7
StephenP
karephul
sammy chen
RCS300
flarmon
developer810
ACraigM119
Melvinsb
Lj47
1nsane
ArcSend
hungryghost
Justine
RizwanSharp
Matt Penfold
Only Title

Kees_de_Waard's Q&A profile

  • Smart Device Development An established connection was aborted by the software in your host machine

    Hi, I am using sockets to communicate with a Java Server. I get a list of sponsors as text so I used sockets instead of tcpClient. I use this function to send a request and receivve the response but the problem i guess is the buffer size I want something that would read till it finds "\n" public void SendRequest( string req) { lineToBeSent = req; socket.Send(encoding.GetBytes(lineToBeSent)); byte [] Serbyte = new byte [5000]; socket.Receive(Serbyte, 0, 5000, System.Net.Sockets. SocketFlags .None); IT BLOCKS HERE response = encoding.GetString(Serbyte, 0, 5000); } If you want to read text until you reach a newline I would recomend just creating a NetworkSt ...Show All

  • Visual C# Get the computer Id

    I want to get computer id that always be uniqe even if windows of that computer have been changed. please tell me how and where I can find something like this. Code sample is helpfull too. You need a way of retrieving hard disk Volume ID. I know that when i need such thing i did with api function. There are many articles that shows how to do it. Here is link http://www.eggheadcafe.com/articles/20021019.asp  that   i find in 10 seconds. This is used very offen for creating better security of your application instalation, because it will work only on that hard drive. ...Show All

  • Visual Basic Convert Date to string

    Hello, How can i convert a field type dateTime from a database to string so i can insert it into a textbox with .text property. thnx in advance every object in .Net has a ToString method, you can simply use it. Me .TextBox1.Text = mDataTable.Rows(0).Item( "Date" ).ToString if you only write   " Me .TextBox1.Text = mDataTable.Rows(0).Item( "Date" )  " it will also work Or you can do something like this Dim mDate As DateTime = mDataTable.Rows(0).Item( "Date" ) Me .TextBox1.Text = mDate   or  Me .TextBox1.Text = mDate.ToString Me .TextBox1.Text = mDate.ToShortDateString Me .TextBox1.Text = mDate.Year  'only gets the year     ...Show All

  • .NET Development Asynchronous Vs Threading

    Hi, I want to know what are the differences between Asynchronous invocation and threading.Does Asynchronous invocation creates a new thread Thanks, Suresh Hi Salvador. I'm familiar with fibers. But I'm not aware of any asynchronous mechanisms in .NET that use them. (Although you could write a custom host using the host APIs that would make use of them.) Which mechanisms use fibers Async delegate invocation certainly doesn't - it just uses threads. And as you and I have both pointed out, sockets and other I/O uses devices drivers in a way that does not require either threads or fibers. Given that my example used sockets, that's why it used so few threads - fibers don't enter into the picture ...Show All

  • Windows Forms combobox displaymember question

    Hi, I have bound a combobox to some data. The displaymember and the valuemember have the same value which is a number representing a contract duration. I'd like to add the text "years" to the displaymember so it shows, 2 years, 3years, 4years etc instead of just 1,2,3,4. Is this possible and how do i do it. thanks for any help cnSQL.ConnectionString = modDataConnections.NetQT_DATASQLCnString cnSQL.Open() cmdText = "SELECT DISTINCT ContractDuration FROM GlobalMonthlyChargeDiscounts WHERE ContractDuration <> 0 ORDER BY ContractDuration" cmd.Connection = cnSQL cmd.CommandText = cmdText Dim da As New SqlDataAdapter(cmdText, cnSQL) Dim ds As New DataSet da.Fill(ds, "Contracts" ) D ...Show All

  • Visual Studio Express Editions how to: bind a single control to multiple datasources

    hi, im really new to programming and i was wondering if there's someone out there who's kind enough to teach me how to bind a single control (ex. a textbox) to multiple datasource's (ex. two or more table's). thanks a lot.. im not sure, but I would think you may need to do it manually in this case, taking the value from the textbox without binding it to anything, so you can take this value and update it in several tables or something. Again, im not sure but can't think of a way, or can't seem to find a way, of making it bind to multiple datasources. I've just tried it and if you try to add another databinding into the textbox control, it will throw an exception as you are binding to the same property ...Show All

  • Visual Basic VB2005 Upgrade, or not?

    Hello, I am not sure if this is the right place to ask this question, but I couldn't find anything more fitting. I am considering getting the Visual Studio 2005 IDE, but I have a reservation. I currently have VS2003, and have heard that the .NET 1.1 framework is falling by the wayside, so to speak. I have used the trial version of VS2005, and like it very much. However, I have heard that VS 9.0 will come out soon, and I don't want to have to upgrade again in a year or two. So, I guess my question is, is VS2005 going to be viable long enough to make it worth the purchase Is Microsoft making the higher level languages like Visual Basic "disposable", in other words, changing every few years Please, don't take me as being an ...Show All

  • Visual Studio 2008 (Pre-release) Textblock animation in RC1

    I have a textblock in a viewbox that I animate width and height to get a "zoom in" function. Using Tahoma 11 in June CTP it animated smoothly to the required size and looked nice. With RC1 it animates to required size then seems to "pop" as the text adjusts. It seems to adjust to a sharper font but the "pop" is annoying. Any ideas Thanks, John Looks like it is here to stay, at least for v1. http://blogs.msdn.com/seema/archive/2006/10/20/after-animating-text-the-text-seems-to-pause-for-1-second-and-then-render-more-sharply-than-before-why-is-that.aspx John ...Show All

  • Windows Forms Single Dataset instance with BindingSource designer support in multiple forms

    I would like to know whether a single DataSet should be used for the whole application The reason is I can't see any points that I should use multiple DataSet instead of single one. (Certainly, it's in my case. Any counter example is certainly welcome.) Moreover, I found it impossible to make relation between tables in two DataSets. So, is there any drawback of having a single DataSet instead of multiple ones I found that I've created more and more DataSets in my application and it seems that a single one is better. It's possible to share a single DataSet instance and still have designer functionality in multiple Subforms (UserControls). The same trick is valid for applications with multiple Forms. I'm working on a  ...Show All

  • Windows Live Developer Forums Calling GetRoute() from script in <body> rather than in <body onload=...>

    I'm trying to determine if there is a way to call the GetRoute() method from script that is embedded in the <body> of the page rather than in the <body onload=...> tag. Here are the two simplest map examples I've been able to construct to illustrate this idea. The second version doens't load in IE but works fine in Firefox. I get the following error in IE - --------------------------- Error --------------------------- A Runtime Error has occurred. Do you wish to Debug Line: 1 Error: Unexpected call to method or property access. --------------------------- Yes No --------------------------- Can anyone help me understand why this is happening in IE and if there is a workaround. I don't control the whole construction ...Show All

  • Commerce Server How To Show Ads For A specific User?

    I have a virtual Catalog (CommerceCatalog) And I have Also CatalogSet (CatalogSet1) I have created a userobject profile and I specify the CatalogSet for this user is (CatalogSet1) How Can I show this user specific Ads I noticed that in the Ads We Can Creat Expression UserObject.UserCatalogSet IsEqual Then the name of the catalogset But in the value list I did not get any Of CatalogSets Availabe In The CatalogSets !! So How Can I show Specific Ads and Discounts for Specific Users Based On His Profile What is the best Way So How to Specify Set Of Adds For Set Of (Orgnizations Or Users),With Recpect to Profile. So,This As will shown Just For This group Of Users. thanks ...Show All

  • SQL Server Analysis Services Access Database

    Hello, I am trying to generate a cube in SSAS 2005 with an Access database as the data source. I can create the Data Source and successfully test the connection. Here is my connection string: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\DB\LSAM.mdb I can also successfully create my Data Source View and I can return data by right clicking on any of my table objects and selecting 'Explore Data' However, when I try to generate my cube, I receive the following error message: OLE DB error: OLE DB or ODBC error: 'E:\DB\LSAM.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.; 3044. Any assistance would be GREATLY appreciated. Thank ...Show All

  • Visual Studio Team System branch on a label

    Let me walk you through my scenario which will lead to my question. I recently migrated a large project from VSS to VSTF. We stayed away from branching in VSS, which was probably a wise descision. Now that we have much more sophisitated branching functionality in VSTF, we have started using it. When the project was in VSS it was under the root $/foo. About a week before the migration, we cut a label on $/foo called 1.0.0 (as it was just released to production). I created a "foo" team project and then migrated the project from VSS to VSTF under $/foo/main for the mainline development. I then did a branch from the cut label 1.0.0 and called it $/foo/Rel1-Maint. The interesting thing is that I can't do a merge at the $/foo/Rel1-M ...Show All

  • Visual Studio error processing subreport ; LoadSubreportDefinition

    Hi, I have a report with several subreports. I load the report and subreports via MemoryStreams using reportViewer.LocalReport.LoadReportDefinition(), and reportViewer.LocalReport.LoadSubreportDefinition(). However the subreports aren't rendered, all I can find in the warnings collection are messages like this : "An error occurred while executing the subreport ‘subreport1’: An error has occurred during report processing." Not very informative. Is there any way to get more detail The report works fine when I go by the usual route of simply specifing the main report path (ie setting reportViewer.LocalReport.ReportEmbeddedResource). However I need to modify the rdlc at runtime, so I have to use Streams. Thanks for any help... ...Show All

  • SQL Server Active Directory domain change

    We are moving to a new AD domain and I have a number of SQL 2000 and 2005 servers that will be affected. I would like some tips on what to expect. The plan so far is: 1. Change schema of objects that currently are in a Windows login schema. I have listed all such tables/procs/views/functions on all boxes, I plan to have them all changed to dbo or a SQL schema before the change. On SQL 2005 I am only dealing with schemas, not owners. Currently access is managed primarily through fixed database roles (ddladmin, datareader, etc.). I'm assuming that if logins from the new domain are added in the same roles, they will have the same permissions to the same objects without changing object ownership. 2. Databases owned by a Windows login wi ...Show All

©2008 Software Development Network