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

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

michael447887

Member List

Cory6132
arogan
AlfonsAberg
GrimStoner
eshashishekhar
NickNotYet
koolholio
skeezix
Dario Galvani
Spangltk
黃泓量 Jeremy Wong
Dejan Kocijasevic
Mykhaylo Blishch
jeff1024
Kraichgau
Kamii47
byteguy
Shabari
Sten Palmqvist
saurabhsule82
Only Title

michael447887's Q&A profile

  • Visual C# DbCommand Property

    Hi, I want to create a property that will handle SqlCommand and OleDbCommand values. for that I defined this propery: public DbCommand DbCmdProperty { set { DbCmd = value ; } get { return DbCmd; } } how can I get a "Name" value in the Properties Window on the Designer, that will tell me if I'm working with a SqlCommand or OleDbCommand (Hoped I succeeded to describe my problom correctly...) This is problematic for a number of reasons. You are trying to add a property to an existing class (This can be done, but it's probably more work than you want to do (and definitely more work than I want to explain)) You want a design-time property to view ...Show All

  • Visual C# Assign a bmp resource to a bitmap variable

    I create a resource bitmap as bmp. I can not assign this resource bmp to a Bitmap variable. What I would like to do is change or swap between two bmps every second in a picturebox image. thanks in advance for your help and time, Edward Try this, to extract the bitmap from your embedded resource: Stream theResource = System.Reflection. Assembly .GetExecutingAssembly().GetManifestResourceStream(Application.Name + ".test.html" ); this .pictureBox1.Image = Image .FromStream(theResource); does this help ...Show All

  • .NET Development IIS 6 connection to SQL Server 2005

    Hi, I have an aspx page with a connection to SQL Server 2005 which works fine on the local VS2005 setting. When I deployed it to an IIS 6 box it could not establish the connection. Could someone help shed some light Scenarios, Local to sql 2000 -- OK Local to sql 2005 -- OK IIS box to sql 2000 -- OK IIS box to sql 2005 -- Error The connection string is, "Data Source=DBServer;Initial Catalog=DB;User ID=uid;Password=pwd;Pooling=true;Max Pool Size=50;Min Pool Size=10;" I get the error message SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a conne ction to SQL Server) If connection string is, "Network=DBMSSOCN;Data Source=10.10.1 ...Show All

  • .NET Development NTDLL.DLL NtSuspendProcess Interop

    Hello, i just do not seem to get the interop of the undocumented NtSuspendProcess right. Has anybody done this before and got it working I've tried tons of different variations of the declaration shown below but all of them throw a EntryPointNotFoundException: [DllImport("ntdll.dll",EntryPoint = "NTSuspendProcess", SetLastError = true, ExactSpelling = false)] private static extern long NTSuspendProcess(IntPtr processHandle); Any help is welcome! Thanks in advance, Peter Vrenken ...Show All

  • Visual J# java.util.TimeZone.getAvailableIDs(rawOffset) does not return the availableIDs.

    I am using .NET Framework 2.0. API Comments on MSDN: TimeZone.getAvailableIDs (int) Gets an array of all the valid IDs for all time zones around the world that have the given offset from UTC. By calling: string[] zones = java.util.TimeZone.getAvailableIDs(8); The returned zones is empty. However, if we check the list of timezones returned by call java.util.TimeZone.getAvailableIDs(), the timezone CTT is with rawOffset equals to 8. Is this a bug in the API Or I am understanding this call inccorectly   ...Show All

  • Visual Studio Programmatically editing keyboard maps

    Hello, I'd like the next version of my product to create an alternate keyboard map (as seen in Tools|Options|Keyboard), make it the default, and edit some of its bindings. I haven't found any way to do this. I've also had a look at the registry (both the system and the user portion), and it seems keyboard maps are not stored there. Is there any way to do this Any DTE interfaces Thanks, - Jon ---------------------------------------------------- ViEmu - vi/vim emulation for Visual Studio After more than 10 hours of assembly tracing w/o symbols, several hundred memory dumps, and countles vtbl inspections, I've found out what's happening. The put_Bindings method in VS.NET 2003 has a bug in which se ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Reading texture from a stream

    Hi, im trying to find out if there is a way to read a texture from a stream, im reading from a large file which holds loads of texture files (DXT1 and DXT3 mainly), all the information about the texture is given and then you are given the texture data. So far i have been reading the data using a binary reader and unpacking the colors into A8R8G8B8 format to use when rendering. My question is since i know all the texture info is it possible to read the texture and use it in it's original format without the overhead of converting Thanks for any help. With your own “custom” texture format things are a little bit more complex. You first need to create the texture with the necessary siz ...Show All

  • Visual Studio 2008 (Pre-release) Forms , XAML , Events

    Hi Just to get started I created an new WPF project. . I want to add an event to an button I drop to the form (Designer shows me it is the XAML file) The button is shown in the designer and the code in the XAML is generated. But first tehres no context menue on any Form or its components. So I show it manually via the VS Menu. But there no events From one point of view this is correct because XAML is only an "Designer Format" but so how can I create an Click event to the button In the Code file theres no reference to the button of the form. The Second thing is that I want to show in a really fast way some text. Which method is the most performant in .NET 3.0 to draw text by myself Thanks for your help Boas ...Show All

  • Visual Studio 2008 (Pre-release) Adding WCF service as web reference creates additional parameters on methods

    Ive created a WCF service that works correctly when I create a proxy using svcutil. If i add the service as a web reference, additional parameters are added to the methods available through the service. For example, i have a method GetEntity(int entityId, bool FullObject), however when it is made available through the webservice its signiture is GetEntity(int entityId, bool entityIdSpecified , bool FullObject, bool FullObjectSpecified ). If i sent that additional parameters to true, the call still works and returns the expected result, but i was wondering why these params are added, and can i avoid the need to specify them Thanks WCF uses svcutil.exe tool to create proxy, while VS2005 uses "Add web ...Show All

  • Visual Basic Copying Test from a webpage into a label

    So what I need is to copy a number on a web page to a string variable inside my program. This variable will be displayed in a label. How do I copy the number from the internet ...Show All

  • Visual Studio Team System Cannot call set cookies because my cookie list contains commas

    I'm trying to call set cookies and have done so successfully but have become blocked. I have a list of names to put into the cookie and it looks like so: CookieName=A.aspx,B.aspx,C.aspx,D.aspx,E.aspx I'm calling Context.CookieContainer.SetCookies(uri, "CookieName=A.aspx,B.aspx,C.aspx,D.aspx,E.aspx ; expires=Fri, 31-Dec-9999 23:59:59 GMT; path=/" ); the problem is my call gets broken up because of the commas, I tried using %2c instead but later the developer's code expects unencoded commas. So I need to know if there is any way to create a cookie value with commas Hi MatthewVincent, If you want to put a co mma in the cookie value, you will have to escape the comma, ...Show All

  • Visual C# tab pages keyboard shortcut

    Is there a way to assign a keyboard short cut to a tab page The following: TabPage.Text = "&My Page"; outputs as a literal string, instead of making it a keyboard short cut. As far as I know this is not possible with the controls in the BCL. You could however implement it yourself: http://www.google.be/search as_q=MnemonicTabControl&hl=en&num=10&btnG=Google+Search&as_epq=&as_oq=&as_eq=&lr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=&as_rights=&safe=images ...Show All

  • Windows Live Developer Forums spatial queries

    Is there a way with the latest release of Virtual Earth to perform spatial queries For example I want to know if a point from my database (like an address) is within a polygon I defined or list all points inside a polygon area... or list all addresses 3 miles from a point. If not then what are my options Pay for MapPoint web service and then is there a way to combine that with Virtual Earth instead of the maps made by MapPoint web service I want to stick with Microsoft but I do know that ESRI has spatial queries feature in their web mapping service. Thanks! Andrew Jones Not with just VE. But you are right, the MapPoint Web service does provide point-in-polygon functionality. You can combine the t ...Show All

  • Visual Basic How to call a memory release ?

    Hi, I am currently building a VB.Net Application that uses Adobe Acrobat Professional 7.0. The problem is that the amount of memory used while the process is running always keeps growing. And I am sure that Acrobat is responsible for that. So I would like to know how to call a memory release in VB.Net. thanks for helping. Alex I tested the command : System.Runtime.InteropServices.Marshal.ReleaseComObject And it finally works, Acrobat keeps taking a lot of memory space, sometimes more than 200megs for a 4meg document but when I close the document and release the COM object it gets a little smaller. Lets just say that to run my application, users will need at least 1024 meg RAM for optimal performance :-) Thanks again f ...Show All

  • Visual Studio Express Editions RichTextBox: Change Bold, Italic, Size etc. in a selection

    I want to create a text editor using a RichTextBox and the user should be allowed to make parts of the text bold, italic, change font face and size and so on. The problem is: How can I change these properties in a selected piece of text without affecting the other properties Let's say the user typed in: This sentence has both bold and italic words in it. Now let's say the user selects the part " both bold and italic words " and clicks on the button for bold which in this case should change the selection to bold. I cannot use: RichTextBox1.SelectionFont.Bold = True as it is read-only, and I cannot use: RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold) either, because the se ...Show All

©2008 Software Development Network