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

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

Judah

Member List

nhaas
Daniel Gary
Eirian
msdobrescu2
Yves1
Lucas Condé
.NETPhreak
Shadi Mari
zhihao
Gordon Duff
IceAngel89
Allwin
SOAC
Ludo-R
Will George
altamash
DaveSussman
GSharad1234
Alex Hoogendoorn
MilesP
Only Title

Judah's Q&A profile

  • Visual Studio Express Editions music

    Hi, I'm creating a program and i would like to know if it's possible to play 2 sounds at the same time.If it is,how (doesn't metter the format) Thanks DirectSound can do this. First, download and install the DirectX SDK , that will give you access to the managed DirectX assemblies. Start a new Windows Forms project, Project + Add Reference, select Microsoft.DirectX.DirectSound. The version I used (June 2006) has a problem with the debugger; Debug + Exceptions, open Managed Debugging Assistants and turn off the Thrown check for "LoaderLock". Paste this sample code: Imports Microsoft.DirectX.DirectSound Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As ...Show All

  • Visual C# Make stand alone exe

    I posted this in one of the visual studio 2005 forums and someone suggested I try posting it here. In Visual Studio 2005 is there any way to actually make just a standalone exe file, like in visual studio 6.0 where you just go to Build or Make EXE or something similar All I can find is the publishing section which creates a setup.exe which then "installs" the program and checks for updates etc. I just want to make one exe file that can be run from any PC anywhere that you just double click and away it goes, straight into your program, in visual studio 6.0 this was no problem at all yet I have spent hours searching and am still unable to do this in VS 2005. Thanks yer I can understand that but still I dont understand why ...Show All

  • Visual Studio Express Editions How To implement ListView with controls like "eMule Transfers list"

    I'm looking for a ListView that include for each row an image box,checkbox,progressbar,label or textbox,combo box..ect.. Where can I find it Thanks Add a new class to your project and paste this code: Public Class ControlScroller Inherits Panel Public Sub New() Me.AutoScroll = True End Sub Public Sub Add(ByVal ctl As Control) '--- Adds control to scrollable list '--- Set location ctl.Location = Point.Empty If Me.Controls.Count > 0 Then With Me.Controls(Me.Controls.Count - 1) ctl.Location = New Point(0, .Bottom) End With End If Me.Controls.Add(ctl) Me.AutoScrollMinSize = New Size(0, ctl.Bottom) End Sub Public Sub Remove(ByVal ctl As Control) '--- Removes control ...Show All

  • Visual Studio 2008 (Pre-release) How to access Parent Element of the ItemsControl's Panel?

    Here is the situation: I have created an overloaded Canvas object as an external assembly. Now I use it as a panel object in ItemsControl: <Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:Custom="clr-namespace:CustomNamespace" Stretch="Fill"> <ItemsControl> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Custom:CustomCanvas/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> </ItemsControl> ....... </Viewbox> How can I access that ItemsControl object from my assembly. Thing is that I define some resources on ItemsControl and I want to use them in my Canvas Assebmly C# code. On runtime the CustomCanvas has P ...Show All

  • SQL Server BufferTempStoragePath - Global setting?

    By default the BufferTempStoragePath is mapped to the user running the package's Documents and Settings folder. This is problematic when numerous packages are running simultaneously and using this disk location (i.e. sorts), and you don't have a large disk for your C: drive. The property of course can be changed. However the property is specific to a data flow task, so this would require developers to change the property is every data flow task of every package. Is there a global setting to change the default location that SSIS will use An alternative is to use configurations, however a configuration will be required for every data flow, as it is specific to the data flow task (and name of that data flow task) Any ideas Thanks ...Show All

  • SQL Server SQL Management Studio from desktop PC connecting but no acccess to service functions

    I have a new and virtually full installation of SQL 2005 Developer with SP1 installed (named instance), on a Windows 2003 standard server, which also has a default instance of SQL 2000 SP4 installed. I have the browser service running also enabled TCP/IP for remote connections via configuration manager. All services are currently using LocalSystem. From the server I can use Management studio to connect and manage the services i.e. I can right click, start stop etc.. From a desktop on the LAN I can connect just fine, but I cannot see the service states, nor can I manage them from the right click context menu. There are no firewall issues here, just a hub separating the server from desktop. What am I missing ...Show All

  • Smart Device Development Lock Device

    Good Day. I am programing on WinCE and now I have a problem. I am writing a program which must lock SmartFone device.I found function SHLockDwviceandPromt and SHLock but they are not documented and I can not find ther implementation. Can you suggestion h ow to solve this problem. Thanks. This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati,. ...Show All

  • Visual Basic listbox not saving...

    hi, i'm trying to write a program with a listbox and trying to save it using streamwriter and i cannot get it to work.here is the code:Dim saveFileDialog1 As New SaveFileDialog saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" saveFileDialog1.FilterIndex = 2 saveFileDialog1.RestoreDirectory = True If Me.savefiledialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim grocerySW As New IO.StreamWriter(saveFileDialog1.FileName) For Each i As Object In Me.groceryListBox.Items grocerysw.WriteLine(i.ToString) Next End Iffirst of all, when i run the program, and try to save it, if i type in a new filename, i get an error saying the file cannot be found. how can i correct this ...Show All

  • SQL Server sp_dbcmptlevel problem

    I am trying to upgrade the compatibility level from 80 to 90 as I have upgraded to 2005 but when I run sp_dbcmptlevel DairyManager , 90 and it kept on coming back with :- 'Valid values of database compatibility level are 60, 65, 70, or 80.' if I tried sp_dbcmptlevel DairyManager , 80 that worked fine.. Please can someone help as I need to sort this out before any further development Running @@VERSION will settle the question. Also the version number of the SQL instance you are connected to will show up in SSMS. If you are in a query window, it will say something like 9.0 SP1 down at the bottom, or in Object Explorer it will say SQL Server 9.0.3042 (for 2005 SP2) ...Show All

  • Visual Studio Team System How to prevent users from viewing other projects when creating queries

    We have 3 projects on TFS, Project A, B, and C for example. Members of Project A should not be able to see anything about B or C, not even the names of the projects. I've figured out how to prevent showing "project information" from TFS. However the other projects still show up in reporting services. I went to Reporting Services configuration and could not figure out how to add a Deny View permission. Is there any way to do this Unfortunately I do not know of a way to restrict query permissions based on a users project membership. The, for example, work items for all projects are stored in a single table - if a user has read access to it they can query any other project's work items. You can ...Show All

  • Visual C# IList<> or ICollection<> which one is more efficent????

    In my code I use ICollection<> for some reason I decided on ICollection<> after doing some research but I forgot why I am using ICollection<> ;-) Looking at different samples I have come across on the web it seems that most people use IList<> which is better or does it matter Portion of my code using ICollection public static Collection < AvatarImageInfo > GetAvatarImages() { string key = AVATARIMAGE_KEY + "GetAll" ; Collection < AvatarImageInfo > avatarImages = new Collection < AvatarImageInfo >(); if (avatarImageCache.Contains(key)) { //Get an AvatarImageInfo collection from the cache. avatarImages = ( Collection < Avatar ...Show All

  • Visual Studio Formatting QuickInfo tooltips

    Is there any way of formatting an IntelliSense QuickInfo tooltip I'd like to be able to add bold, italic, etc. to the tip - but there doesn't seem to be any way of doing this. I'm currently just returning some text via the GetDataTipText method in my AuthoringScope object. Any ideas anyone Other than setting the foreground and background colours via the "Editor Tooltip" page in tools options there isn't much you can do here. You can also use the IVsFontAndColorStorage interface from the SID_SVsFontAndColorStorage service to get and set colours too. Use OpenCategory, make any changes you want by calling SetItem, SetFont etc., then call CloseCategory. Look in HKLM\SOFTWARE\Microsoft\VisualStudio ...Show All

  • Visual Studio Replacing Project Name

    I have a solution developed in Visual Basic with one Class Library and one website. I have the custom template created and it works fine. However, the website always comes across as 'Site' or whatever I put in the vstemplate for the project name. I am looking to have the developer choose one and have it update it. I was looking into WizardExtensions but have been unable to get it to work. Now I am looking into GAT. Can someone point me where I should look for this since I have not seen examples that create web sites as well and being that its in VB and not C# Thanks. Kosmo Looks like that FirstSelectedProject built-in value provider is throwning. I guess this may be because of the state of y ...Show All

  • .NET Development Fastest way to call C++ code from C#?

    I would like to write plug-ins for my application using C#. My plan was to make the C# objects COM visible and derive from my plug-in interface. I’ve been told that the transition to and from managed code is a very expensive operation and I should limit the transitions as much as possible. This makes sense but I would still like to do things in the most optimal way since there will be no way from the transitions to be eliminated. That said, what would be the optimal way to call C# code from C++ (COM) and C++ code from C# My current plan is to use COM visible interfaces to call C# code C++ and COM connection points to call C++ code from C#. Hi, When you compile with the CLR ...Show All

  • Visual Basic Detemining the "owner" of a ContextMenuStrip

    I'm working on a project that utilizes a TableLayoutPanel containing many controls. The controls can be one of three types, and each type has an associated ContextMenuStrip. I have it working where the ContextMenuStrip is applied to it's respective controls within the TLP, and can show and select items from the CMS, but need to be able to determine specifically what control was was right-clicked to show the CMS or the Point of that right click. Thanks for any help! How about this: Code Snippet Dim ac As String Dim mbutton As Boolean Dim mlistbox As Boolean Dim mcombobox As Boolean Private Sub TestToolStripMenuItem_Click( ByVal sender As Object ...Show All

©2008 Software Development Network