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

Software Development Network >> Marnik Van Hileghem's Q&A profile

Marnik Van Hileghem

Member List

jaomello
kidwidahair
Socrates Kapetaneas
datamark
fripper
James CACN
laker2000
Leebert
Kolja
TryVoipandStuff
e.henriquez
ravindra_pn
Lee Brimelow
Puffarbubbole
redcode
Sumit Kumar
Suman Ghosh
geraud c
madlogik
Lawrence 007
Only Title

Marnik Van Hileghem's Q&A profile

  • Windows Forms Copy & Paste for DataGridView

    Does anybody has a good mechanism to do paste for DataGridView control The only way I can think of is that getting content from clipboard then use a loop to assign the content to each cell. I think there got be some efficient ways to do it. Any help is appreciated. ...Show All

  • Visual Studio Express Editions Currency Textbox Like In Visual Foxpro

    I Want a Currency Text Box Line In Visual Foxpro That only Accept Numeric Values in Visual Foxpro Numeric Textbox Has Fixed 0.00 how do like this in vb.net 2005 The MaskedEdit control is from VB6. You CAN use it via interop with .Net, but it is very slow. Hopefully you can use 2005's new MaskedTextBox (or was that what you were refering to ) (on a side note, DeborahK, loved your object book back in the day. I'm amazed to see they still have copies of the VB4 book on amazon. Glad to have you here.) Jim Wooley http://devauthority.com/blogs/jwooley ...Show All

  • .NET Development generics and static methods question

    I'm learning generics and c#. Is there a way to call static methods in the T class so I can streamline this I have two static methods in T named GetItem and SaveItem that I would like to invoke by something like T.GetItem(astring) and T.SaveItem(t). Reading some of the other posts seems to indicate that a static method can not be used. Thanks for any recommendations. public class FrmUpdateManager <T> : Form { T t; // etc // would like to do something like T.GetItem(tb.Text) to eliminate the if clause // for each type I implement i f ( typeof (T) == typeof ( InsuranceCompany )) { object obj; obj = ( InsuranceCompany .GetItem(tb.Text)); t = (T)obj; displa ...Show All

  • Visual Basic [2005]Text to text tagged with BB Code

    Hey i wasn't quite sure where to post this topic i am trying to program an application that converts text to BB Code Example :- If u write something in the top text box and code is checked then once u click Tag It in the second textbox the text will be wrapped in BB Code i am not sure how i go about doing this would be great if some 1 could pls help me :) just can't seem to do this but without brackets so the resulting text comes ut looking like ([code]please help me[\code]) in text box 2 so maybe 1 example would be great on how to do this would be greatly appreciated thanks How about something as simple as the following which will scan all the check boxes on a form and only include the ones that are checked in the tags. What ...Show All

  • Microsoft ISV Community Center Forums Help with a formula

    I need to write a formula for Excel that calculates the amount of fuel that is in a tank. Here is what it is for. We have cylinder tanks that lay horizontaly. Each month we put a dipstick into the tank to measure how many inches of fuel is left in the tank. I need a formula that will take that and calculate it into gallons. Here is the formula I have to work with. / -1 r - h \ V = L * | [ r^2 * cos (--------)] - [sqrt(2rh - h^2) * (r - h)] | \ r / Any Help is appreciated (BTW I am not the best at math so if possible an explination of this formula would be greatly appreciated) Hey man, The ...Show All

  • SQL Server Help on creating SSIS

    Hello , I am getting the given error message while creting SSIS. Please help me to solve the error.... Error loading 'Package.dtsx' : QI for IEnumVARIANT failed on the unmanaged server.. regards, Malhar , THanks Hi, Error is coming in Error List... When i open new project->Integration Service Project.. I see the Package.dtsx with the following error Plz help me out if u can.. Thanx n Regards, Malhar ...Show All

  • Windows Search Technologies OneNote 2007 Beta

    I have Office 2007 B2TR installed. I recently installed OneNote 2007 B2TR and every time I open OneNote 2007 it crashes. I have tried this on multiple computers and I get the same result. Would you please let me know what I can try to do to make it work or where I should look for more informaton Thank you. Yes I am also using Windows Desktop Search 2007 and have upgraded to the most recent version. Even with the upgrade I am still experiencing One Note 2007 crashing everytime. The interesting thing is that I can get it to work on a computer without the Office 2007 B2TR upgrade. Thanks, Andrew ...Show All

  • Visual C# Late binding in C# - How to pass an object and yet use hardcoded properties?

    Hi, I will use an example to describe my problem: I have two objects - Say Student and Teacher. The two objects share some properties - Say Name and Birthdate I have one method that lists person name and birthdate. I need to pass an object and yet use the properties - Something like this: private void ListPersonInfo(object person) { Console.WriteLine(person.Name, person.BirthDate) } The above does not compile since at compile time the Name and BirthDate are properties of their respecitve objects and are not properties of the Object class. I don't want to use two methods one for teachers and one for students. I also know that it is not a good OO practice to pass plain objects like this and I don't want to us ...Show All

  • Visual C++ Returning the memory allocated for a pointer

    Hi! I would like to ask if there is a function (or some way) to return the memory allocated for a pointer. Example: char *s = new char[69]; cout << DesiredFunction(s); //I would like this to print 69 Thank you in advance. If he knew the size would be constant, then yes, that would work.  But I'm assuming that at the time of the printf, he doesn't know the size. If you're dealing with the size of a particular kind of object (say a blob), why not create a class that encapsulates the memory along with its size). myBlob.GetData() and myBlob.GetSize()   If the object type is to be arbitrary, then create a C++ template around it that implements these two methods. Brian   ...Show All

  • .NET Development How to remove empty element from xml file

    Hi How do I remove the empty elemet (coloured in blue) from the xml below and save as xml file only with the element has value .I pasted only a portion of xml. I need a CODE to iterate through the document and remove all empty elements and leave only the START ELEMENT and ELEMENT with values                                 FROM (the xml below) - < LeaseDetails > <                <LeaseType > <                 ...Show All

  • SQL Server Execute SQL Task Error: no result rowset associated...

    I am getting the following error when I execute my sql task: An error occurred while assigning a value to variable "NullVar": " NO result rowset is associated with the execution of this query. " I am executing a SP that has one input & one output parameter. The output parameter is returning a single row for debugging if the sp failes. I tried using Jamie's method:( http://blogs.conchango.com/jamiethomson/archive/2005/12/09/2480.aspx ) to get it to work but keep getting the above error. I have the following variables: sqlSource (string) := Exec RBCprcsInsertWmsInvTransactionRecords '" + (DT_WSTR,10 ) @[User::SnapShotDate] + "', NULL" NullVar (string) In the execute sql task, I set the Resul ...Show All

  • SQL Server Model Builder Field Order and Inheritance

    When I create a report model, it is easy to change the order in a given entity. Does anyone know how to order the fields in an entity when you are using inheritance or inlining I want to have the fields in alphabetical order so that the end user doesn't have to hunt for the correct field. The other item I need to find out is how to customize the prefixes that inlining uses. Any ideas there Ron That was right on the money with both of the questions. That folder trick is really helpful in cleaning up some seriously unmanageable lists of fields. R ...Show All

  • .NET Development How to change a Environment variable?

    I'm trying to save a variable into environment variable to share with other process, is it possible or not my code seame only work in my own process. String strLogin = ""; int iLogin = 0; PermissionSet ps; // put permission; try { ps = new PermissionSet(PermissionState.None); ps.AddPermission(new EnvironmentPermission(EnvironmentPermissionAccess.AllAccess, "QAddonLogin")); //ps.PermitOnly(); } catch { return; } try { strLogin = Environment.GetEnvironmentVariable("QAddonLogin"); } catch { strLogin = ""; } if ((strLogin == null) || (strLogin.Length <= ...Show All

  • Visual Studio Express Editions Viewing Web Pages IN your Application

    I have 3 questions: 1) What is the Web Browser 2) How do I use the Web Browser 3) Can you give me any help Im not entirely sure but looking at the events of the WebBrowser control, there is a "ProgressChanged" event, which you can implement and use. According to the documentation, it states that when the event is fired, the CurrentProgress property will give you the number of bytes successfully downloaded and the MaximumProgress property will give you the total number of bytes available for downloading. Based on this, you can then create your own UI progress bar using these 2 properties I believe. http://msdn2.microsoft.com/en-us/library/system.windows.forms.w ...Show All

  • Visual Basic Hiding Scroll Bar on AxWebBrowser

    Hi Everybody! In my search I have found the following example in C++ code..... but am unable to convert this into Visual Basic .net code. Can anybody help Thanks. The problem with this approach is that it requires you to change the HTML code of the page displayed — something that is not always feasible. A better way to remove the vertical scrollbar is by using one of the IDocHostUIHandler callbacks. When MsHtml interacts with the user interface, it frequently makes calls to these callback methods to see how to proceed. By implementing the method GetHostInfo() , you can disable the vertical scroll bar. The nice thing about this programmatic customization is that it doesn’t require you to make any changes to the content o ...Show All

©2008 Software Development Network