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

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

Harald Hedlund

Member List

gifuran
billconan
Vidar Knudsen
willajo
g e o r g e
CumQuaT
haihtomy
hmayer
elixic
vbnetdiscuss
flyte
MShanahan
OmegaMan
Leonid B
diceydawg
dagfari
T Julich
BobInIndy
JonnyAJAX
Buddy Funny
Only Title

Harald Hedlund's Q&A profile

  • Visual Studio Tools for Office Disable VBA script "on click"

    System: Microsoft Office 2003 Word VSTO Solution using Document Template. I have developed several custom WinForm controls that canbe added to a word document from a "controls toolbar". When the template is opened to be edited and the form is placed in design mode, if the user double clicks on one of these controls in the Word document, Word opens the VBA editor. Is there a way I can prevent that from happening I would have thought this would be easy to resolve, but the solution seems to be avoiding me at the moment. That's a challenge :-) As far as I know, short of removing VBA from the installation, there's no way to prevent this, directly. However, it appears sinking the WindowsBeforeDoubleClick event should work. I tes ...Show All

  • Visual Basic what type of collection to use?

    I have a collection of type System.Collections.Specialized.NameValueCollection, which is great for getting the value of each item using either the Key or Index. However, I also need to be able to get the Name of a Key using it's index, and this doesn't seem possible with this type of collection. The only way I can see to do it is by keeping two collections going, the second with the name of the key in the first collection, that can't be right! Anyone out there who knows about collections can tell me a better way Thanks While setting up an example of the inherited class I noticed that the namevalue collection has a getkey(byval Index as integer) method which will return the name of the key by index...is ...Show All

  • Smart Device Development GPRS Connection!!!

    Hi Everyone, Well, i want help regarding the GPRS connection. Let me give some details of the work i m doing. Actually i want to send some data to HTTP server and i m using winsock for this purpose.. its working fine with the emulator but for device i need to connect to the internet to send the data .. so the GPRS is the only option... i m using ConnMgrEstablishConnectionSync function to connect the GPRS.. and its working fine, as its returning S_OK. But when i call gethostbyname function to get the IP of the server, it gives an error " HOST NOT FOUND ", whereas by using emulator it returns the correct IP as the emulator use the default Internet settings when connected through ActiveSync... Now can anyone plzz tell me ...Show All

  • .NET Development object pooling

    can anybody tell me what is pooling in a DataGrid Control I heard the question in an interview. It will be better to list some links of sites. Thanks everybody Hi, Object pooling in remoting is a different concept from connection pooling in ADO.NET. Yuo have perhaps got mixed up between the two. Here is a link that explains what object pooling is and the difference between the two. http://msdn2.microsoft.com/en-us/library/ff7105zk(VS.71).aspx The following links on connection pooling might also help you: http://msdn2.microsoft.com/en-us/library/aa175863(sql.80).aspx http://msdn2.microsoft.com/en-us/library/8xx3tyca.aspx http://msdn2.microsoft.com/ru-ru/library/ms254502.aspx Hope that helps. -Mamta ...Show All

  • SQL Server rdl or rdlc for custom reports

    Are custom reports going to carry on using the rdlc extension. If so is the rdlc extension going to be associated with the reporting project designer. Currently rdlc files only show up the designer and not the data or preview tabs in BIDS. Paul's documentation blog post refers to rdl rather than rdlc files. If you don't want to rename your report files to .RDLC for the November CTP, you can type "*.RDL" into the custom reports dialog and hit enter. The report will load just fine... however, any subsequent drilldown actions to other reports will probably default to a .RDLC extension instead of .RDL. Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ ...Show All

  • Visual Studio Tools for Office Excel scrollbars get really small.

    Hi there, another ListObject woe I'm afraid. I've a listobject, I bind it to a System.Windows.Forms.BindingSource which has an array of objects as its datasource. I have a test setup so that when I click a button it changes the array the bindingSource is bound to. So it alternates between an array of size 5, and an array of size 1000 (so if I keep clicking the button the listobject alternates between having 5 rows of data and 1000 rows of data). However, when it binds to the 1000 rows the scrollbar at the side gets smaller, as you'd expect. When it binds on the next button click to 5 rows the scrollbar stays the same size, thus making it hard to scroll precisely. If I bind to 1000 rows again (another button click) the scrollbar gets ...Show All

  • Visual Basic what is wrong with this?

    dim y_m as double dim y as integer y_m = 6.09 For i = 1 To 12 y_m = y_m + 0.01 y = y_m If y_m = CDbl(y + 0.12) Then y_m = y + 1 End If Next When y_m is 6.12 the if statement doesn't catch that fact!!! The CDbl() function doesn't seem to help. It doesn't work whether or not I have the conversion function. Single precision is even worse because adding 0.01 several times gets you not 6.10 and 6.11 but something crazy like 6.110002. Brian There is no guarantee in how the editor is showing the values and how the values are rounded. Double might rounded to 7 decimals be 6.11000000 but it actually is 6.11000000001. Rounded output will display 6. ...Show All

  • Visual Basic Selection of item in dropdown not revealing subsequent dropdowns in webbrowser

    Hi there, I'm sure this is a really dumb question but I'm new to webpages etc... I'm trying to fill in data on an online form which when first loaded contains nothing but one dropdown box. When a value is manually selected in that dropdown in the webbrowser, it reveals a second dropdown box. However, when I set the value of the first dropdown programatically (webbrowser1.document.all("ID").value=x) the second box does not appear. I have tried the Invokemember("submit") solution posted elsewhere in this forum, but it does not work as that method is not supported by the "ID" element. Any help would be greatly appreciated as I've just about pulled all my heair out :) Thanks in advance ...Show All

  • Visual Studio Express Editions Saving Pictures/Text and reloading them

    I build computers and program applications. I am trying to program an application that you write down what you have done to build/fix a computer, you save it and you reopen it. Could you tell me how to save and open stuff I need to be able to open pictures to. Have you decided what type of file you will be using to write your information to: Database: ADO.NET - http://msdn.microsoft.com/data/learning/adonet/ XML: System.XML - http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemXml.asp Or Simple Text or Binary files: System.IO - http://msdn2.microsoft.com/en-us/library/system.io.aspx ...Show All

  • .NET Development DataAdapter.Update

    I've got two rows added to my datatable that I need to commit to the database. I begin a transaction on my connection and attempt to update both rows as one transaction to the database. My first record is successful, but my second row fails due to a business logic error raised in the stored procedure. The transaction, therefore gets rolled back and neither record gets commited to the database (perfect). My first successful row has now changed status from "Added" to "Unchanged"(why). So, now I rectify my second row in order to rectify the business logic error and my second row has remained as an "Added" row (perfect). Now I begin the transaction and only my second row gets commited to the database and not my fi ...Show All

  • Visual Studio 2008 (Pre-release) Browsing Service Hosted

    Hi everybody, In my learning of WCF i have again a question. I want to make an "monitoring" of my application server (services hosted). By monitoring i want to say it's just a method into a service that can connect to each service hosted on this instance. So i just want to browse all my service running. Eg ( this a very bad approch i know but i think this is the best eg that can i explain : public void BrowsServices() { foreach ( host h in HostedList) foreach ( Service s in ServicesList ) s.IsRunning } Is it possible to make this and if yes how can i do Thanks for your help, Nicolas If database is not a good option for you, then each service could "register" itself wit ...Show All

  • Software Development for Windows Vista MsiExec generating error 1601, but only when launched from System.Diagnostics.Process.

    I'm writing an app which needs to install or uninstall other apps. My app is using the System.Diagnostics.Process class to run msiexec, and this had been working for a little bit. The odd thing is that while I get the 1601 error code from Process, the same msiexec command works fine from the command line. Actually, it works fine when the app is run locally. I'm only getting this error when I connect to a service that initiates the process. All assemblies are signed and running on the local machine. I've tried the suggestions from other threads -- msiexec /unregister, msiexec /regserver, and reinstalling -- to no avail. Any suggestions Thanks, Jonathan ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 3DS Max export

    Hello everyone, I have been trying to export models from 3DS max for use in my XNA program. The trouble I keep running into is that the axis keep getting rotated and/or flipped from what's in Max. In order to test this, I have created a model that acts as an axis gizmo, with a cone pointing down the X axis, a Rectangle down the Y and a cylinder down the Z. I have exported the model three different ways: Max's built in .fbx exporter - The X points correctly, but Max's Z is now XNA's Y, and Max's Y is now XNA's -Z (Left-Handed). PandaSoft DirectX Exporter (with Left-Handed coordinates turned ON) - The same as the FBX exporter PandaSoft DirectX Exporter ( with Left-Handed coordinates turned OFF) - The X points correctly, the Y points correct ...Show All

  • Visual Basic List values in enumeration

    Hi, Does anyone know of a way in which I can list all of the values in an enumeration I want to use the enumeration values to populate a listbox. Here is my enumeration: Public Enum Processes ForceVolume PeakAdhesion Slope End Enum Regards, Bob Public Enum Processes ForceVolume PeakAdhesion Slope End Enum And put your code inside a button click event, for example Dim EnumValues() As Integer = [Enum].GetValues(GetType(Processes)) For Each s As Integer In EnumValues Debug.Print(s) Next ...Show All

  • Visual Studio Just in time debugger

    Hi. I Have visual studio 2005 on my computer.sometimes that i want run an application, 'visual studio just-in-time debugger' starts and it don't allow the app to run and message to debug it for unhandeled exeption in it. for example, Need for speed or Nero burning rom are apps that don't allowd for running. please help me for this problem. is there a way to disable this service or uninstall it or... Thanks. I have been having a similar problem, when i am playing a game or using interent explorer i get a just-in-time debug error which crashes my program, now i did not have this problem before i started using visual studio 2005 express edition, i might have installed the components in the wrong order, i don ...Show All

©2008 Software Development Network