humair's Q&A profile
Visual Studio Express Editions database saga
I am at my wits end. I am trying to create a program that will add users to a database. I have read the various posts regarding the output file and have changed the Copy To Output File to Copy Never. I have also tried Copy If Newer. The database still does not retain my changes/additions. The code I have used is shown below. Code Here... Private Sub AddUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddUser.Click Dim newUserRow As Database1DataSet.Table1Row newUserRow = Me.Database1DataSet.Table1.NewTable1Row newUserRow.Name = nameBox.Text newUserRow.Password = Password.Text Da ...Show All
Windows Forms Fonts are replaced on Windows NT
Hi I have a VB.NET Windows Forms application. Controls are built using the default font, Microsoft Sans Serif. When I install the application on NT SP6, font becomes Arial. Any idea why this is happening I am using .NET 1.1 Thanks and Regards Prasanth Hi Thanks for the reply. It seems I will not be able to use Microsoft Sans Serif. Found an&nb ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a way in the .NET classes as it seems you have to connect to the destination then write data to the stream. Thanks! You will not be able to communicate with a TV IR receiver through your standard ...Show All
Windows Forms FileNotFound Exception When Closing a Web-Deployed App
I can open my windows app just fine from the web. The program works like it should except when I close it, I get a System.IO.FileNotFoundException. I don't know why. It seems like IEEXEC.exe is still looking for the app or something. I get that exception when rinning the app from the command line like this: c:\> ieexec.exe http://localhost/ ...Show All
Visual Basic display files names in a button in alphabethic
I have visual studio 2003. how can i show, in alphabeth, files names in different buttons without the extension, thanks anyway You can create Buttons dynamically, and add them to a Form or Panel at runtime. The code would look like: Dim fileNames As String() = System.IO.Directory.GetFiles(..., "*") for i As Integer = 0 To fileNames.Length-1 fileNames(i) = GetNameWithoutExtension(fileNames(i)) Next Array.Sort(fileNames) For Each fileName As String In fileNames Dim NewButton As New Button() NewButton.Location=... NewButton.Text=fileName &n ...Show All
SQL Server Port 1433
Hi. I'm trying to deploy AdventureWorks sample reports on the local server. Prior to opening the solution file in BI Dev Studio, the data connection does have a red cross on it in the closed state. Clicking on the connection to open it takes a fixed 30 secs every time, suggesting a timeout maybe The report deployment fails with the following: A connection could not be made to the report server http://localhost/reportserver. Additional information: The underlying connection was closed: An unexpected error occurred on a receive. (Microsoft.ReportingServices.Designer) Netstat info below. 1264 is the instance of sqlservr.exe. 40.7 is the local ...Show All
Visual C# Access Web Form member from it’s hosted windows user control
Hi. I have a web app that uses a IE hosted windows user control. I would like that, somehow, lounch an external event from that hosted control that I could catch in my web form’s code behind or set a web form’s member value. Does anybody know how to do that I would appreciate any suggestions! Thanks in advance! First off you need to define your interface. This is a simple interface declaring the events you will fire, and any properties/methods you will access from the web page. It needs to be visible to COM, so use the following as a template: [GuidAttribute("1F98211C-7A71-4588-8D4A-AD85CA80BAE7&q ...Show All
Visual Studio 2008 (Pre-release) DLinq Extensibility for Custom ADO providers?
As we're thinking about writing our own ADO provider library (connection, command, reader, adapter etc.) I was just wondering how extensible you are planning to make DLinq and how it will fit in with the current ways of extending ADO. Any pointers to documentation on the subject would be very much appreciated. Thanks, Trev. I am not sure I understand the specific aspects on extensibility you are talking about. Here is what we have and are planning: What we have in the preview: 1. Interop with ADO.NET SqlConnection 2. .NET framework transaction model - that is *the* transaction model for DLinq and he ...Show All
.NET Development Calling the GC.Collect method
I have a code like this : public void SetFrmLoginNull() { frmLogin = null ; GC.Collect(); } This method is in FrmMain. But when i run a code analyzer from some tools i have, it's said that i shouldn't explicitly call GC.Collect(); b'cos it had side effect. I just need some comment from you all regarding this topic. Any Comment You should not call GC.Collect() yourself, because it has indeed a negative impact on performance. I think you should only call it, if you know that you've allocated a lot of memory that is not used / referenced any more at the time you call gc.collect, ...Show All
Visual Studio Tools for Office Clear data from excelsheet
Hi I am able to bind ListObject/ExcelSheet control from the database. Now I have created one Button control named as "Clear". When this button clicked the content of listobject should be disappeared (not from database). What code should I write on click event of the button. Thank you. Hi, When I put your above code to my clear button, I am getting following error: "COM Exception {"Exception from HRESULT: 0x800A03EC"}" at myListObject.ListRows[index].Delete(); Thank you ...Show All
Visual Studio Team System Build problem TF42004
Hello, I Have problem with Team Build. When I star building, everythink goes well, but soon as building has started I got a faild message: Team build failed to open folder \\fihel-mibsw02\TestWork\Hei\Testi2_20060607.1 . The system cannot find the specfied path. I am totally lost with this. Hi, i think you did not follow the steps properly. just to make things clear, follow the steps below: 1. Right click on the folder to be shared 2. Click on "Properties" 3. Go to the "Sharing" tab 4. Select "Share this folder" 5. Give any Share name for eg, "drops" or you can give the defau ...Show All
Visual Studio registration of COM dlls fails in dynamic clearcase views
Hi all, we have a problem, since we migrated from VS2003 to VS2005. Our project contains several COM DLLs, but the registration of these DLLs fail with the error message: error PRJ0019: A tool returned an error code from "Performing registration" Registration on the command line also doesn't work. Our build runs in a dynamic clearcase view. When I copy the build output to local harddisk, then registration succeeds. It also works, if I use a snapshot view, but our build process requires a dynamic view. When I build the DLLs using VS2003, there's no problem registering them in a dynamic view. The a ...Show All
SQL Server Upgrade Express to 2005 CTP
Is there a way to upgrade SQL express 2005 to SQL Server 2005 CTP Upgrades via Setup are not yet supported. You will need to uninstall Express, install the full CTP, and then attach your databases. Note: Uninstalling Express will not delete your databases. However, it will remove any users, jobs, etc you created. Dan ...Show All
.NET Development WSE 3.0 question
I am new to WSE 3.0. I was trying to use one of the sample which comes with WSE 3.0. The sample demonstrates how to use kerberos security. But when I try to run the sample I get following exception: "Security requirements are not satisfied because the security header is not present in the incoming message" I also tried to create kerberos token and set it on proxy, but no success Do I have to make any changes to the sample before I can run it. Thanks in advance KDV Depending on whether you are using the code example or the policy example have you update the policy to have the name of the host you are talking ...Show All
Visual Studio Express Editions Q : Exceptions
hi, i want to ask about try and catch should it be used just for exceptions or i can use it like "if" for example i have a treeview and i want to know if the node has a parent or not so i don't know anymethod to indecate that so i used try and catch like this, Try mylastfolder = mylastfolder.Parent Catch mylastfolder = Nothing End Try or should i use catch nullreferenceexception and endurse it with throw; i saw your post in the other thread about exceptions along with this link http://msdn2.microsoft.com/en-us/library/ms182137(VS.80).aspx second ex ...Show All
