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

Software Development Network >> Harald Hedlund's Q&A profile

Harald Hedlund

Member List

shakalama
pvvr
exo_duz
gafferuk
Wolfgang12345
Kharkov Alexander
FritzDeVries
David Scherf
Steve Hempen
lemax
Bigmo
dszhou
Dan Lingman
Carl Daniel
Fabien Masson
IamHuM
Sam_dia
Olivier .NET
Yusuf Hermanto
brian_tsim
Only Title

Harald Hedlund's Q&A profile

  • Windows Forms DataGridView CustomComboColumn BackColor turning black when DataBound

    My issue is that i am creating a Custom Combo Cell that inherits DataGridViewComboBoxCell, that will set its datasouce from the business object that the DataGridView is bound to. I am using the OwningRow property to get to the business object and the OwningColumn to get the DataPropertyName. The properties of the the BO are actually what we call "SmartObjects", They provide the meta data from the database and so on. These objects also have methods to get lists of valid values for each field. These methods are returning a DataTable and that is what is eventually becoming the DataSource of the Combo Box Editing Control. The list is bing populated with the correct value but for some reason the backcolor of the editing control is black. ...Show All

  • Windows Forms Raising events in inheritance forms

    I have two forms that inherit one from another. In both of them I have implemented the Form_load event (with the same method name) and on the ancestor form I declared the method as virtual and in the child form as override.   The thing is the event raise twice in the child form (in the examle i will see ( "form3" twice)  . Why's that   See code for example –   public partial class Form3 : Form2 {         public Form3 () {             InitializeComponent();         }           public override void Form_Load ( ...Show All

  • SQL Server Backup database with encrypted column data

    Hi, I have database with encrypted column data in my customer server. Sometime, I might need to backup their database back to office for troubleshooting. How could I backup/restore master key, symmetric and asymmetric key created for my database Thank you You don't need to backup or restor any key, to be able to use your database backup on another machine. You just need to know the password protecting the database master key. On the machine on which you restore the database, you will have to reencrypt this master key with the service master key of the database server. You can do this with the following statements: OPEN MASTER KEY DECRYPTION BY PASSWORD = 'password' ALTER MASTER KEY ADD ENCRYPTION B ...Show All

  • Software Development for Windows Vista Security Shield "Unidentified Publisher"

    After searching everyplace I could think of, this is the last hope. When installing my application on Vista (every version so far) I get a dialog box that pops up stating "An unidentified program wants access to your computer". On this dialog box, it states "Unidentified Publisher". I don't mind the "...program wants access to your computer" part. I just want to try and switch the "Unidentified Publisher" to state my companies name. Does anyone know how this is done Is it done by the installer software, or is this what "digital signing" is supposed to handle If it is done by the installer software, does anyone know which installers currently support this I currently have acces ...Show All

  • Windows Forms MouseMove Problem...

    Hi everyone.. I have a strange problem in a form... I've added in the FormMouseMove event some code (MessageBox.Show("I've been moved")) to be execute... and I find that the event is fired everymoment... also whe the mouse is stoped... Maybe I'm wrong but the MouseMove event don't must be fired everytime that the mouse is moved over a control I'm trying to catch when the mouse is stoped and when is starting to move... I thought that is pretty easy but I found this kind of whatever is happen... Thanks Ok friends... I've founded the solution to my problem... On my narrow point of view, it's like the MouseMove event has a "bug" (I apologyse if I'm wrong) because it reises the event even when the mouse is stoped... Now the s ...Show All

  • SQL Server dynamic pivot table

    hi i am trying to create a dynamic sql statement so i can pivot information... my problem is that when i run this query i get the error information below. i am running sql server 2000... can this run in 2005 this runs perfectly when only one record is returned in the sub query... declare @query varchar(300) select @query = 'Select '+ char(10) + ( select Code +'case when Code = '''+ Code +''' then count(Code) else 0 end as '+Code+''+char(10) as [text()] from WipAvailable WA )+ char(10) + ' from WipMaster group by Code' select @query exec (@query) Server: Msg 512, Level 16, State 1, Line 3 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, > ...Show All

  • Visual C++ warning C4996: 'std::locale::_Addfac' was declared deprecated

    Hello I am trying to store unicode files. I use the way suggested in Upgrading an STL-based application to use Unicode. By Taka Muraoka . at address : http://www.codeproject.com/vcpp/stl/upgradingstlappstounicode.asp df=100&forumid=16224&exp=0&select=788194 while i'm trying to compile the soloution I've got the warning warning C4996: 'std::locale::_Addfac' was declared deprecated My question is how can I remove this warning, or, use any other function instead of _Addfac . I'm looking forwared for any suggestion. Thank you. #define IMBUE_NULL_CODECVT( outputFile ) \ { \ NullCodecvt* pNullCodecvt = new NullCodecvt ; \ locale loc = locale::classic() ; \ l ...Show All

  • Windows Forms Change column type DataGrid

    Hello, I'm a Costa Rican student of systems eng. C# I have a DataGrid bounded to a DataTable, and I want to change the DataGrid column type from int to String but I can't do it like this: dt.Columns[7].DataType = typeof(System.String); because the DataTable is filled already. Is there anyway that I can do that The thing is that I want to change the int value "0" (or "1" or "2") fom the database's table to a String in the DataGrid. Because those numbers have a meaning, and I need to translate those numbers into text. 0 means "frecuent" cust 1 means "credit" cust 2 means "black list" cust I need to put those strings into the DataGrid. Thanks. Thanks. ...Show All

  • SQL Server Aid with store procedure

    Hello, I have a problem, I want to execute in a single transaction three insert in store procedure, as it could implement. Thanks for its attention e.g. create proc usp as begin tran insert tb1 values(...) if @@error<>0 goto rollbk insert tb2 values(...) if @@error<>0 goto rollbk insert tb3 values(...) if @@error=0 begin commit goto done end rollbk: rollback done: return GO ...Show All

  • Visual Studio Express Editions Expression Expected (and Name is not declared)

    As my first useful program, i am coding a simple calculator. So far, I have the following code: 'When "Equals" is pressed Private Sub EqualsBTN_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EqualsBTN.Click 'Getting the information from the input boxes Try Dim a As Integer = InputA.Text Catch MessageBox.Show( "Error. Either you did not enter data into the first textbox or it was not numerical" ) End Try Try Dim b As Integer = InputB.Text Catch MessageBox.Show( "Error. Either you did not enter data into the second textbox or it was not numerical" ) End Try Dim operation As String = FunctionSel.Text If operation = ...Show All

  • SQL Server Question on Internal Activiation

    Hi Could it be assumed that a stored procedure, activated internally by Service Broker, is executed under the same environmental variables (resource allocation specifically) than when that same stored procedure is executed via an EXEC statement from a non-Service Broker procedure When I have 10 of these procedures running (somewhat concurrently) overall performance is not even close as to when I let Service Broker activate the procedure via 10 messages on the queue. If all variables are equal than I am not sure why this is. Or is it possible that everything is not equal Thanks Paul Are you certain that all 10 are actually firing up at the same time via SSB   It's possible tha ...Show All

  • Visual Studio Express Editions Rounding TextBox Value to 2 Decimal Places

    How do you let a user only put a number to 2 decimal places in a texbox I put that code in, but when I delete all the letters in the textbox, It says that there is an error in this piece of coding If Not Me.TBX.Text(Me.TBX.Text.Length - 1) = "." ThenIndexOutOfRangeException is the message that comes up. ...Show All

  • SharePoint Products and Technologies sharepoint 2007 how to know when a new site is created

    I there any event in c# to know whe a new site is created The guys on the SharePoint forums should be able to help you... ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Managed C++

    So I understand Managed C# is the primo langauge for Game Studio Express but would it be possible, either when it comes out or eventually, to use Managed C++ with it too It really bothers me I'd have use C# over C++ for the Game Studio... What about common open source C++ libraries for collision detection and physics simulation I'm developing Bullet Physics Library, targeting improvements over Open Dynamics Engine (ODE) by supporting convex hull and continuous collision detection (time of impact/sweep). Should we wait until we can have a C# wrapper for those existing C++ libraries Is there a special repository for shared/common libraries for physics, sound etc Erwin Coumans http://bullet ...Show All

  • Visual C++ Thread Problem

    Hi All, i am working on a dialer application. presently i am using one wait for event function. i am waiting for 500 milisecond for any event, after getting the event, i got the channel associated with the event and then take actions on that channel as per event and wait again for another event. e.g. for (;;) { ret = sr_waitevt(500); /* 1/2 second */ if (ret != -1) { /* i.e. not timeout */ process_event(); } now the same events are required on parallel 30 channels. but i have only this one function to get any event. after getting event, in process event function i can get the channel associated and take some actions on that channel. can u guide me the better way of doing this thing. i am a little bit confused in ...Show All

©2008 Software Development Network