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

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

MichaelEber

Member List

Lawrence 007
JasonFx
MadVax
kuntushi
SQLScott
Golden Strands
kangalert
Tahir Sultan
McGeeky
Briam
Computer Guy69146
satya999
Sportsdude
Peter Richard
errpop
Ilia
Paul Yau
prrao
TJ2007
Scotty12105
Only Title

MichaelEber's Q&A profile

  • .NET Development Requesting a list of datasources in vs 2005 and VB

    I'm trying to provide a way for the end user to select an ODBC datasource from the available datasources on the machine. I've searched the net, many books, and available documentation and am now at a loss. Can someone point me in the right direction d I found one way to do this. Basically, I read the registry keys under the ODBC section. Not glamorous, but functional. You would think there would be a function call in .net. d ...Show All

  • Visual Studio Express Editions void pointer

    Hello, I need to write a bit of code that can read a data file of unknown size and type ( i.e. it could have 1000 ints or 2000 floats). The data file that Im using to test my file consists of short ints and has nelements in it -this bit of code works so far..... short int *dataIn; switch(MRD->datatype){ case 1: //doubles break; case 2: //floats break; case 3: //case 3 is the short int data type //std::cout<<"short data\n"; dataIn = new short int[nelements]; //dynamically allocate some shorts myInFile.read((char*)dataIn,nelements); break; default: std::cout<<"nope\n"; break; }//end of switch for (i=0;i<6;i++) { std::cout<<" first few points of mydata a ...Show All

  • SQL Server Catching more then one Error

    Hello all, not to sure if this can be done but I am attempting to catch a series of errors with in a single TRY CATCH statement. For example, the following code triggers a single error ( which work fine) SET NOCOUNT ON declare @errmsg nvarchar(4000) begin try select 0/0 end try begin catch SET @errmsg = 'Msg ' + cast(ERROR_NUMBER() as varchar(20)) + ', Level ' + cast(ERROR_SEVERITY() as varchar(20)) + ', State ' + cast(ERROR_STATE() as varchar(20)) + ', Line ' + cast(ERROR_LINE() as varchar(20)) + ', ' + CHAR(13) + 'Procedure ' + isnull(ERROR_PROCEDURE(),'') + CHAR(13) + isnull(ERROR_MESSAGE(),'') end catch select @errmsg AS ERRMSG RESULT: Msg 8134, Level 16, State 1, Line 4, Procedure Divide by zero error encountered. But ...Show All

  • Windows Forms MSI Package Question

    I have developed an VS2005/VB application that I have installed on a couple of end-users PC. The application works great with one exception. After I install the package and run the application the first time, either as a local administrator or standard user, the application looks for the MSI package to complete the install. What can I do to get this to stop. I'm not sure why it would not work the first time I setup the install package, but I deleted the setup routine and re-created it and now it works just fine. ...Show All

  • Windows Forms how can i bind List<Sale> to DataGridView and bind Sale.Item object to DataGridViewComboBoxColumn

    Hi All , I want to bind Sale object array to DataGridView . this sale object has Item object , so i use this item object for DataGridViewComboBoxColumn. how can i connect object with comboBox I bind List<Sale> to DataGridView. Sale object has ( SaleID , Item object ) ... Item object has ( ItemID , ItemName ) So , i use DataGridViewComboBoxColumn for Item object . At FormLoad() function dgvComboBoxColumn.DataSource = GetItemData(); // populate all row for items. dgvComboBoxColumn.ValueMember = "ItemID"; dgvComboBoxColumn.DisplayMember = "ItemName"; how can i bind itemID of this combobox with Sale.Item.ItemID field... Please help me . if not clear what i mean ...Show All

  • SQL Server Call Web Services from Sql Notification services

    Hello - Can someone please let me know if we can call a Web Service from Sql Notification services. If yes can a sample code be provided. I figured out the way to call a web service from NTS. Basically we need to implement iHttpProvider interface to call a web method. ...Show All

  • .NET Development Web Services & Partial Encryption

    i am developing a set of web service methods which return reporting data. ideally i do not want to use HTTPS due to the extra performance hit. what would be ideal is to encrypt only that data which is sensitive. for example, 1 particular report has 12 columns of data. but only 1 column of data really needs to be encrypted over the wire (the client name). at the moment my web service method returns a dataset. although i can change this, if it is easier to implement partial encryption by returning a different type. please could anyone advise if it is possible to perform partial encryption in .NET2.0 like this if so i would be grateful for any advice, URLS, etc. to get me off on the right foot. thanks ...Show All

  • Visual Studio Need to order columns in a table embeded in Reportviewer.

    Hi, I have requirement to change the order of the columns displayed in the report viewer which could be done in crystal viewer. Can anyone please help Hi, I am using report viewer on the client side to generate local reports. I don't know if it is similar to crystal reports or viewer, but heres what I do...I have the column names set as parameters (to make columns dynamic), and then I set the values of those parameters from codebehind (necessarily field names, I give user dropdowns to choose the field names)...and then set the columns according to what the user has chosen... hope this helps, if you think this is what you want and you need more help with setting up everything, let me know... thanks, bullpit ...Show All

  • Windows Forms Problem with editing cells in dataGridView

    I have the dataGridView control with a checkBox type column. When i click on that column, there is no state change on it. Visible state is changing, check box is checked but from the code it has old value. That cell change its state when i move the cursor to the row abowe or below. I don't know what is the issue of that problem. Maybe i do something wrong Did i must use some method like EndEdit or something But EndEdit is not changing state of cell to... I recommend handling the DataGridView.CurrentCellDirtyStateChanged event. In the handler, if the current cell is a check box cell, call the DataGridView.CommitEdit method and pass in the Commit value. For more information, see the DataGridViewCheckBoxCell reference topic. ...Show All

  • Visual C# Inherit Generic Forms

    How can generic forms / controls be inherited I made some generic forms and controls i want to use in my application as base forms/controls. When i inherit these forms/controls i cannot view the designer anymore. Is it possible to inherit these generics and how Nightmare_BE wrote: How do u write the code, when u look at the code of a new form both the form and the designer class are partial classes. Do u put the public class MyCustomIntForm : MyGenericForm < int > { } on top of the form class, at the designer or into a external code file It can't be the first class in the new form's .cs file, because the designer will crack it anyway if you do that. I just put that si ...Show All

  • Windows Forms specialfolder

    Hi, How can i get the folderpath of an application from where its being executed I need to know this in order to save a file in that path. And i mean the folderpath of the application im writing myself. Thanks in advance! Application.StartupPath would give you the directory your application is running from. To access other special folders, like my documents etc... string thePath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); //for example program files ...Show All

  • Windows Live Developer Forums windows live sign in and my 2 accounts

    Every time i try to sign into windows live on my user account i come up with the error code 80048821 which says that the sign-in name or password does not exist but when i created a new user account and signed in there everything works perfectly. Can you please help or tell me why i cannot sign into windows live on my user account but i can on the new user account i just created. Thanks Alex Pellas Malini Nitai wrote: I was just looking for an answer to the same problem and then I realized I have been typing wrong e-mail @hotmail.com instead @hotmail.co.uk ! Once I changed it to .co.uk it worked ok.That may not be your issue but worth trying..... ...Show All

  • Visual C# Why do we need Interfaces?

    Hi, I am not able to understand the significance of the interfaces. Interfaces exposes some behavior through methods, but classes can also expose its behavior through public methods directly, then why do we want to use the interfaces is it just for an assurence that all the methods in the interfaces are inplemented in the class Is there any other reason like performance I guess interface object will/can not be created at runtime, is it correct if so then how does the communication happen at runtime any thoughts/links to understand "what an interface is ". Thanks and Regards, Benin. You can read my article about the difference here: http://blogs.microsoft.co.il/blogs/maordavid/archive/2007/05/09/Inter ...Show All

  • SQL Server Extended Property size limit

    I'm using SMO for code generation and I store information about some of the sql objects I generate on extended properties on those objects. There seems to be an upper size limit on them that I can't find documented anywhere. If I dump a large string into an extended property I get the following error: {"Operand type clash: nvarchar(max) is incompatible with sql_variant"} Is this a known issue Is there a work around that will allow me to store large strings in extended properties, or is it just a bad idea in the first place ...Show All

  • SQL Server Calling SqlDependency.Stop() in class destructor

    Hey guys, Have you ever tried to call the SqlDependency.Stop() method in a class destructor (C#) It seems like the finalization process hangs after the call to the SqlDependency.Stop() method (for example the assignment after the SqlDependency.Stop() method call is never executed). ~Program() { if (!_finalized) { SqlDependency .Stop(NocConnectionString); _finalized = false ; } } I tried to use the ADO.NET 2.0 tracing, and it shows that the SqlCommand.Cancel() method call throws an exception during finalization, but it’s not possible to intercept it. Do you have any clue about it or have you ever experinced the same problem Regards, ...Show All

©2008 Software Development Network