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

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

sfx1

Member List

Jhedron
Shady9399
search and deploy
Binary
Sajid Hussain
Anna Panna
AdelioStevanato
bukittimah
MBM_Mimo
kgkidd
Mykhaylo Blishch
David222
Vince Cooper 58
langev
@nt
JFoushee
john_paul
dmouser
ZopoStyle
MichaelD!
Only Title

sfx1's Q&A profile

  • Visual Basic how to add DataSource property to my user control

    I want to add DataSource property to my user control. and let me to choose datasource just like DataGridView. Public Class Class1 Inherits UserControl Private uds As DataSet Public Property uDataSource() As DataSet Get Return uds End Get Set(ByVal value As DataSet) uds = value End Set End Property End Class if I use the code above, I can choose dataset at design view but can pass value, the error is: "Object of type 'System.Windows.Forms.BindingSource' cannot be converted to type 'System.Data.DataSet'." What should I do please give me some clues. Thanks! When you set the value of your uDataSource be sure to set it to a Dataset in your project (not a BindingSource component) If you drill into the ...Show All

  • .NET Development HTTpListener

    Hi all. I'm building an application which supposed to handle both remoting and web requests. After considering it, the best design for me seems to be a single (not distriuted) application , with HttpListner running in it to handle the web requests. Now, excuse me for my ignorant , i'm not familiar enough with IIS technical details.I can't figure out what exacly are the drawbacks of using HttpListener and not IIS. I do understand that i'm giving up application pools , application recycling and ISAPI handling. But what else What about security and performance issues Can anyone answer that, or maybe give a good link explaining it Thanks, Ido I think this is a reasonable thing to ...Show All

  • Windows Forms C# Printing Problem

    Dear All, I have been tasked with the following: Firstly design a class that allows the user to enter their name. The class should contain only one method and uses the console namespace to ask the user. Once the name is obtained the method should fire an event that will initiate the printing process In the event handler, a PrintDocument object will be required to initiate printing, a seperate method that controls printing of pages will need to be created. In the print handler the name entered by the user should output to the middle of the page The print page handler will need to access the name entered, this must be done via the use of a private class field. I have developed the following code, but cannot f ...Show All

  • .NET Development I want to redeploy .NET Framework 2.0 without downloading it from INternet.I have the file caled "dotnetfx"

    Look guys, Let's supose I don't have an internet connection. I want to deploy my dotnetfx.exe with my application.(.NET Framerwork 2.0) I am creating the Installer with Visual Studio 2005. My question is what I have to do to make it install the .NET framework automatically. In the properties of my setup project I am using the prerequisites and selecting .NET Framework. What do I have to write in the "Installation URL" What about the property "Installation URL" from the Launch Condition of the .NET Framework dotnetfx.exe can be either on CD-ROM or in a folder where the user launch it from. Thanks lot . I couldn't upload some screenshots, but if anyone can help me I could e-mail him the screenshots I am on Yahoo Mese ...Show All

  • Windows Forms asp.net + vb.net; error index out of range

    hi i’m developing an onlinesupport with asp.net and vb.net. i’ve got a database (mssql 2003 express) wich is splitted in support-themes and support-documents. by loading the page, a gridview displays the support-themes as a link. if you select a theme, it will be created a sql-statement which selects and displays the depending support-socuments in another gridview as link, too. if you select a support-document it should be displayed as a html-site, but it doesd’t work. instead i get following error-message: Der Index lag auserhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein. Parametername: index Index out of range. It doesn’t have to be negative and not smaller than the listed. for displaying the ...Show All

  • Windows Forms TextBox with AutoComplete

    Hi, I am trying to populate AutoCompleteCustomSource (for my TextBox) only when the user hits the <Enter> key. I.e. when the user hits the <enter> key in the TextBox, i want to (a) send the text to the server, (b) do a server-side search for matches, (c) return the set of matches to the client, (d) populate the AutoCompleCustomSource programmatically, & (e) then display the matches in a drop-down. The difference here relative to how one normally sets this up, is that i want to issue a server-side request for the list of matches, & dynamically populate the AutoCompleteCustomSource. Now, i am able to do (a) thru (d), above; just not (e). Any idea how i'd do this Thanks, Mark ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. directinput not working!

    I'm trying to get directinput working but for some reason it just does not work. Why doesn't the following code cause any visible results in the textbox keyboardData I had a previous program i wrote that used directinput,, but it was much more complex and for the most part i just copied the basic idea behind what i did then and that works, but for some reason this doesn't work :( using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DXInput = Microsoft.DirectX.DirectInput; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace DirectInput {     public partial class Form1 : Form &nbs ...Show All

  • Smart Device Development Code that works on .NET Framework but not on the .NET Compact Framework

    Hi all! The following C# code: [StructLayout(LayoutKind.Sequential)] internal class ASRX_RO_Name_And_Rule { public byte[] Name; public IntPtr Rule; } private void button1_Click(object sender, EventArgs e) { ASRX_RO_Name_And_Rule[] roNameAndRule = new ASRX_RO_Name_And_Rule[1]; roNameAndRule[0] = new ASRX_RO_Name_And_Rule(); roNameAndRule[0].Name = String2ASCII("Test"); roNameAndRule[0].Rule = IntPtr.Zero; IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(roNameAndRule[0])); Marshal.StructureToPtr(roNameAndRule[0], ptr, false); } internal byte[] String2ASCII(string text) { return Encoding.ASCII.GetBytes(text + '\0'); } Correctly works in a Windows Form application, but the Marshal.AllocHGlobal instruction ...Show All

  • Community Chat New Windows Mobile Devices around 2007

    What are the Windows Mobile devices manufacturers (like HTC, Palm, etc.) will be releasing with Windows Mobile 6.0 around second half of 2007 I know it's too early to ask but I felt like asking my question since I have my BlackBerry 7290 for instant messaging, e-mail, etc. (didn't have a credit history) and my contract will expire around July of 2007. I'm an "early-adopter" when it comes to looking forward on what Microsoft has to offer. For me, I'd like to have a laptop-style PDA/SmartPhone with a large screen, but small enough to fit in a pocket. In other words, bigger than Palm Treo 700w/wx and Blackberry, as my thumbs are big and makes me make typos in my Blackberry; plus, it takes a lot of training for typing without look ...Show All

  • Visual C# Relative Paths (or CurrentDirectory) wrong if called with arguments?

    Hello Community, i got a very strange behaviour here. For example, i am working in the directory: C:\Test. When I call my assembly, abc.exe, the Environment.CurrentDirectory (or all relative paths) are C:\Test. Now, my file takes files as arguments (like an Editor). So when i drag and drop a file (test.txt) on my exacutable, the Environment.CurrentDirectory variable (and relative Paths) change to my default User directory which is something like C:\Files and Settings\Username\... and so on Why does this happen How can i get the Path, where the File is located I am working on .Net 2.0 beta 2 Thanks in advance!!! Your help is very appreciated. Thomas  You need to view the command line arguments and no ...Show All

  • Visual Basic Best practices for Error handling and Callbacks

    Are there any best practices for placing error handling blocks This is a VB winforms scenario. Is it best to place the error handling in the client form, or middle tier / business logic side Thanks MSNetDeveloper wrote: Frank, could you possibly post sample code / or examples I like your idea, but wanted to get a clearer understanding of what you are doing. Here's a little code that shows this that I snipped from my database layer Protected LastSqlCommandProperty As SqlCommand Protected LastExceptionProperty As Exception Public Function ExecuteNonQuery(ByVal nonQueryCommand As SqlCommand) As Integer Dim ReturnValue As Integer Try OpenConnection() ...Show All

  • Visual Studio 2008 (Pre-release) Custom IServiceBehavior attribute not invoked when hosting under ASP.NET?

    I have a custom IServiceBehavior attribute implementation that works great when hosting under ServiceHost. However when hosting under ASP.NET it doesn't seem to even be instantiated let alone invoked. What's even weirder is that if I turn on ASP.NET compatibility mode it doesn't even load the assembly that my IServiceBehavior attribute is defined in. Any thoughts/experiences are appreciated. Cheers, Drew Brian, 100% correct. Service class has attribute applied, .svc file points to that service. Quite strange. I'm actually writing a custom BehaviorExtensionElement now to see if that approach works, but I shouldn't have to do it this way. Will fill you in on my results, but please let me kno ...Show All

  • Windows Forms toolStripButton

    For some reason the toolStripButtons on a toolstrip don't have a handle when using Spy++. At the same time a toolStripComboBox on a toolStrip has handle. I am tryign to send a message to the toolStrip buttons but I can't because thre is no handle. Is there a workaround Why doesn't a toolstripbutton have a handle and a toolstripcombobox does Thanks a lot! Maybe this article and code will help... ...Show All

  • .NET Development Creating DSN to SQL Server in the code.

    Hi. Can somebody tell me how to create a system DSN for SQL Server programmatically in vb .net The following code always fails to create the DSN. What am i missing Private Sub Build_SystemDSN_SQL() Dim ret%, Driver$, Attributes$ Driver = "SQL Server" & Chr(0) Attributes = "DSN=" & mstrDSNName & Chr(0) Attributes = Attributes & "Server=" & mstrServerName & Chr(0) Attributes = Attributes & "Database=" & mstrDBName & Chr(0) Attributes = Attributes & "Uid=" & mstrUser & Chr(0) & "pwd=" & mstrPwd & Chr(0) 'Attributes = Attributes & "Trusted_Connection=yes" SQLConfigDataSource( ...Show All

  • .NET Development Can't register VSS Provider COM+ dll object on x64

    I have a pair of binaries that implement the VSS Requestor (an executable) and Provider (a dll). The Volume Shadow Copy Service (VSS) is a set of COM interfaces that implements a framework to allow volume backups to be performed while applications on a system continue to write to the volumes. (taken from http://msdn2.microsoft.com/en-gb/library/aa384961.aspx) The requestor initiates the process, the vss framework then loads the provider. Everything works fine on an x86 platform. We now wish to have it run on x64 as well (aka AMD64, WOW64. Not IA64). The executable itself runs w/o any problems on the x64. However, the dll doesn't register properly. The registration is done using the script register_app.vbs that is supplied with windows S ...Show All

©2008 Software Development Network