SirAndre007's Q&A profile
Visual C# Design Issue
I have the following forms and the MDIparent can open 3 different types of child forms. MDImain form. ChildForm1 ChildForm2 ChildForm3 So the MDI has to transfer fileNew() or fileOpen() to each childform since the child knows best how to handle this. Should I use a property to trigger this event from the MDi fileNew_click event Something like ChildForm1 childform = new ChildForm1; childform.MdiParent = this ; childform.setNewFlag(true); <<===== trigger event in child which can invoke &nb ...Show All
Visual C# how do i get a file from a site in c#
how do i get a file from a site in c# something like that, but i need it to retrieve info from a site and create a data file. If you want, reply to me and i will send you an example. Thanks - wwechopper1 ...Show All
Windows Forms How to control the location of ClickOnce installation?
I successfully installed my ClickOnce application from a remote site. However, it is be default installed in c:\Document and Settings\myloginname\.... How to change the installation location to be under c:\program files\... Thanks How did you find the location of the application I can currently do it from with in the app but for that, the app needs to be run atleast once before the location entry is created. I am using a custom installation routine to install the custom prereqs followed by the Click Once installation routine (all from cd). However, I am not sure how can I get the installation location of my app without ha ...Show All
Smart Device Development SocketException Connection attempt failed
I have build a small application using system.Net but when the application come to execute the following code Dim DataSender As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) Dim HostString As String = "10.0.0.1" Dim ipAddress As IPAddress = System.Net.IPAddress.Parse(HostString) Dim RemoteServer As New IPEndPoint(IPAddress, 11000) DataSender.Connect(RemoteServer) On the DataSender.Connect the programe give execption that (On my iPAQ) "System.net.sockets.soctekExeption: Aconnection attempt failed because the connected party did not respond after ...Show All
Windows Forms Simple multiple form application
I have an application with two forms, FrmLogin and FrmMain. When application opens up, FrmLogin pops up for authentication, once successful, FrmMain should open and FrmLogin should close. Looks like I can not close the FrmLogin! Any idea Thanks. This is the code behind the Login Button. Unfortunately I can NOT close the FrmLogin once authentication is successful! Priv ...Show All
Windows Forms Called Forms referencing calling Forms controls
I have a form A that calls the Form B. I know that if i put the modifiers of textbox in the Form A i can reference it from form B. But, all textboxes that i have in form A are created on the fly and i cannot use the modifiers. I need access to all controls on the Form A from Form B. how can i do it ...Show All
Windows Forms Clientside controls in IE
Hi all, I've been working on running a clientside control through IE. The control is a dll which comprises of 3 other dll's. Basically the aim is to give the user graphical directory access to pick files for uploading. Currently I have the component working through localhost, but am having trouble getting it to even download from an intranet site. I have tried a ...Show All
.NET Development OLEDB CONECTION ERROR
Me encuentro realizando un programa en VB2005 previamente compilado en VB2003 (en esa version si funciona con coneccion a SQL 2000), pero al querer ejecutarlo en 2005 con su respectivo SQL me da error en la cadena de coneccion. Cual es la forma de escribir la connection string para esta version Adjunto el codigo que estoy usando para mi coneccion Gracias Corsario007 Imports System.Data.OleDb Module Coneccion # Region "Variables de Coneccion" Public cn As New OleDbConnection Public cmd As New OleDbCommand Public par As New OleDbParameter Public dr As OleDbDataReader ...Show All
Visual Studio Express Editions Converting a System.Object to a byte[] and vice versa?
Is it possible to convert a System.Object to a byte[] and vice versa The reason I ask is I'm using the encryption built into the framework and need to encrypt some objects after I put them into an ArrayList. If this isn't possible, how could you convert a struct to a byte[] and vice versa I found the following code posted by a MS VIP in another forum but it doesn't work with my structs (I'm thinking because I have strings in them, which means I can't use the Bits.Converter class) static unsafe byte[] NoteDataToBytes(MyStruct nd) { byte[] NoteDataInBytes = new byte[sizeof(MyStruct)]; fixed (byte* pNoteDataIn ...Show All
.NET Development 'FromObject' is not a member of 'System.Nullable'
I tried to build a project that ran flawlessly in vs 2005 beta2. I did two searches before I submitted this post. However the compiler generated 6 errors in the dataset designer. All were of the type error BC30456: 'FromObject' is not a member of 'System.Nullable' in similar if blocks: If ((returnValue Is Nothing) _ OrElse (returnValue.GetType Is GetType(System.DBNull))) Then ...Show All
Visual Studio 2008 (Pre-release) SSPI fails without userPrincipalName, why?
I'm using a netTcpBinding with a self-hosted service running as my own user, with a client of ASP.NET hosted by IIS running as Network Service on another machine. I'm a bit confused on the service/client identity and how it relates to authentication. I find that if I don't specify anything in the <identity> for my client <endpoint> things fail: Error: System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The target principal n ...Show All
.NET Development DeriveParameters with Provider-Independent Data Access
Well the Provider-Independent Data Access is quite good in ADO .NET 2.0 My only problem with it and what makes it somehow useless is that DbCommandBuilder does not have an implementation for DeriveParameters... Now My code goes: ------------- DbProviderFactory DbProvider = DbProviderFactories .GetFactory( "System.Data.SqlClient" ); DbConnection dbConnectionObj = DbProvider.CreateConnection(); dbConnectionObj.ConnectionString = ConnectionString; DbCommand dbCommandObj = DbProvider.CreateCommand(); dbCommandObj.Connection = dbConnectionObj; dbCommandObj.CommandText = storedProcedureName; dbCommandOb ...Show All
Visual C++ is there a better way ?
I'm new to C++.NET & for the 2 or 3 applications I've written that have used .lib files, I explicitly add them into Linker >> Input>> Additional Dependencies & type in the path for my computer. Thus works fine, but every time I transfer the application to another computer & I need to open up the project & chnage the path. Is there a better way to include the lib files regards, ak Linker - Input - Additional Dependencies are stored in the project file (.vcproj file). You don't need to open the project every time, it will be saved in the project. As long as ...Show All
Visual Studio Team System Test projects and private/protected members...
I watched a Channel 9 video showing some Team System stuff and they included showing off unit testing. When the speaker was asked about private and protected members, he said they had something for him, but he never actually said what it was. How is this possible I don't want to have to make methods public and wrap a property around every field just for testing. This blog could help: The inner works of private method testing in VS Team System ...Show All
Visual Basic Visual Basic 2005 Express Ed. BETA 2
Hello. I was wondering if it's possible to get Visual Basic 2005 Express BETA 2 on CD without having to have a Credit Card in Australia. I have tried the manual and automatic downloads and they don't work for me at all, both at home (not connected to internet) and at work. (I couldn't use the automatic download at work due to me not having admin privleges) Thanks. Hello again I've just downloaded it. I had to split it into 5 pieces and take it home like that... It should still work... I hope... I've only got 2 pieces left! Yay! (As long as they don't reset the server) Once I've got all the pieces I'll burn it to one of my brand ne ...Show All
