Software Development Network Logo
  • Visual Studio
  • Visual Basic
  • .NET Development
  • Visual J#
  • Visual C#
  • Architecture
  • Visual FoxPro
  • Game Technologies
  • Windows Vista
  • VS Team System
  • Microsoft ISV
  • Windows Forms
  • SQL Server
  • Windows Live
  • VS Express Editions

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

YAWAR

Member List

micwazoo
SAPUTELLO
JGauthier
Kapadia Shalin
Frank Zeng
CodeButcher
DanteTheCoolOne
--JC--
timseal
potter12
Chris Du
madhusreddy
ladykai
Nicholas T
Ildeon
Nick McClure
laura-magma
Michael Mortensen
Jonathan Davlin
TJSR
Only Title

YAWAR's Q&A profile

  • Visual Basic Why can I do this in VB6 but not in NET(Sockets)

    OK I have a problem with sockets This code returns: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: No connection could be made because the target machine actively refused it Public Sub ConnectTo(ByVal strHost As String, ByVal intPort As Integer) Dim mClient As New System.Net.Sockets.TcpClient mClient.Connect(strHost, intPort) End Sub I get the same error with this code: Public Sub ConnectTo(ByVal strHost As String, ByVal intPort As Integer) Dim mClient As New System.Net.Sockets.TcpClient Dim ipAdd As System.Net.IPAddress Try Dim ipHost As System.Net.IP ...Show All

  • Windows Forms RichTextBox and Printing RTF

    Hi, I have made a WordPad in Visual C# using RichTextBox control. I also used Color and Font dialogues to make my text look good. I have also implemented Printing/Preview and Page setting controls in my WordPad. It works fine for PLAIN TEXT. But when i use richTextBox.RTF property to get text inside the text box with all formatted codes of RTF then&nbs ...Show All

  • Visual Studio Express Editions Form with many buttons slow when form is refreshed on VBexpress yet fast on VB6, why?

    Hi, I am new to VB exp 2005. I am currently making a simple program that has 1 form and 100 buttons on it. When I run the program, I could notice the PAINTING process of the buttons. I mean, I could see some uncompletely displayed buttons while the others are already visible. This problem could also be seen when I MINIMIZED, then MAXIMIZED the form. I made an identical program using VB6. And ofcourse the response was faster. Is there any other way that I could make my program display the buttons more faster Thanks Its probably hapenin for ur PC configuration.... vbexpress edn need lots of RAM , i mean around ...Show All

  • Visual Studio Express Editions Product Activation Problem

    I installed Visual C# 2005 Express Edition Beta 2 about two weeks ago. At that time I tried to activate the product, but after filling out personal details was sent to a page with the following message: We were unable to send your e-mail verification mail. An unknown error occurred while processing your request. This is most likely due to a connection failure. Please try again. If you continue to have access problems or want to report other issues, please Contact Us . Thinking it was a temporary problem I decided to try again later. But the problem's persisting. And the "Contact Us" link on the page is broken as well. ...Show All

  • Windows Forms Adding combo button on a textbox

    I'd like to draw a combobox button on a textbox control (in its client area, so that the button seems to be on the right side). I need to use it a value search function. How can I do it Thanks. normaly this works: override the onpaint of the textbox and put this code in ControlPaint.DrawComboButton(e.Graphics, buttonRectangle, ButtonState.Normal)   Buttonretangle is the retangle specifying the button location and size not sure about textboxes, I think there are drawn by the os instead of the framework. if that's the case then draw on it's hosting control   Goo ...Show All

  • Visual Studio Team System Solution keeps losing SCC binding

    I have a solution with 11 projects, all bound to SCC paths.  The entire solution and all of the projects are in a single directory hierarchy, with the filesystem hierarchy exactly mirroring the SCC hierarchy and the solution/project hierarchy. Whenever I close VS and re-open it, the solution SCC bindings are lost.  I can go into the Change Source Control dialog, select the .sln file and click Bind and the binding is re-established, but next time I close VS it'll be lost again. Is this a known bug, or is there something special going on here that deserves further investigation There were a number of problems related to re-bind ...Show All

  • SQL Server Query Paging

    let's suppose that we have a table entitled "tab1" which has more than 1000 rows and about 10 columns so in SQL 2000, if I do this query: SELECT * FROM tab1 the result will be displaying all the rows from the begining. and my teacher told me that there's a new option in SQL 2005 which is you can display the result of the query in a page mode. so can anyone tell me how can I do so for this query: SELECT * FROM tab1 so that I can see the results in pages. thanks I guess you mean the RANK option where you can number the result set to use paging, more information abo ...Show All

  • SQL Server Best Practice for retrieving last record

    Hi there, very sorry if this is the wrong forum to post this in. I want to know what is the BEST practice, the correct Microsoft way of doing this: basically, lets say I am inserting a new record into SQL. simple customer record: firstname lastname address city postcode password dateOfRegistration (SQL has this value and the default value is the getdate()) That's all very well. I want to know how I can get the recordID for this and return that back from the caller (returning is easily done) - You cannot really after this insertion, perform a SELECT statement to get the LAST record entered, as there maybe ...Show All

  • SQL Server Error in the login process when establishing connection

    Hello, I am trying to connect to a database through a web service. I am being able to connect to the databse through the server explorer in Visual Studio 2005, but when I try to do it with code in my application this is the message I get: A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) My code looks like this: SqlConnection thisConnection = new SqlConnection ( @"Data Source=vse1092;Initial Catalog=CurrituckDB;Integrated Security=True;" ); //User id=;Password=;"); thisConn ...Show All

  • Visual Basic Execution of multiple sql statement in oracle

    hellor every one, I have multiple insert statements which should be executed in a single execution and i placed the sample insert statement here. How can i execute these statement in a single execution. Please help me. insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',1,'04509','Abdomen pain');\ insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',2,'04509','Abdominal bloating');\ insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',3,'04509','Abdominal cramps');\ insert into r_symptom_maste ...Show All

  • Visual C++ Corrupt Builds After Cancel

    Our team has a ~50 project solution with a few dlls, lots of libs, and three executables. If I do a build solution, and at any point during the build hit Control-C to cancel it, whatever is being built at the time I hit the button is now corrupt. It looks like it leaves the partially created .obj, .exe, or .dll around and doesn't detect that it only got halfway through. Is this a common symptom Is there some known fix (MSDN and google searches didn't turn up any hits) Our projects and solution are all converted from 2003, if that's any help. Thanks for any info, Chris Jurney Senior Programmer Relic Entertainment ...Show All

  • SQL Server Local Application Launch

    Hi, Does anyone know if there is a way to launch a local application on a users machine from a report We have a bespoke thick client system running which accepts a command line execution i.e. c:\program\programx.exe ref=xyz. I would like to lauch this from a report if possible passing in the ref - has anyone done anything like this before as I presume we may need to add code to do this. We could use client side script and wshost however IE doesnt like this unless its a trusted site so dont want to go down this route if possible although this may be the answer. Thanks in advance for your help Dan. ...Show All

  • Visual Studio 2008 (Pre-release) userPrincipalName element generated in client config

    If I generate a client config file using svcutil the <endpoint> element contains an <identity> element, which in turns contains a <userPrincipalName> element that contains a 'value' attribute set to the user who started the service (service was started as a Console app for testing). However, these elements are not specified in the services config file. e.g. for a basic example: Server definition: < endpoint address = " net.tcp://localhost:8000/Anite/TestService " binding = " netTcpBinding " contract = " Anite.ITestService " /> Clients generated config: < endpoint ...Show All

  • Windows Forms mc++ icon/resource trouble

    Hi, I am writing a program in MC++ and am having a problem getting my main form's Icon to display properly... My application is crashing, based on the following process: 1 - I made a custom icon for the form (myIcon.ico) 2 - Right Click on the form (in the [design]), click "Properties", then click the "..." button of the "Window Style"->Icon field... 3 - choose "myIcon.ico" from the file chooser 4 - VS .NET then produces the following relevant code (which executes inside the form's constructor): void InitializeComponent(void) {     System::Resources::ResourceManager *resources =        &n ...Show All

  • Smart Device Development Visual Studio 2005-Connecting Windows CE.NET Device

    Hi Guys I am trying to install a Visual Basic 2005 application on a windows CE.NET device. I cannot see a CE.NET device in the list so I tried selecting Windows CE 5.0. It gave me a message cannot create a file as the file name already exists. Is there any option to connect to a Windows CE.NET device Any inputs will be highly appreciated. CE 4.x (AKA CE.Net) is not supported by VS 2005. NETCF V2 SP1 currently in beta would add CE 4.2 runtime support. Please see this for more info: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=362741&SiteID=1 ...Show All

©2008 Software Development Network