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

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

radiorus

Member List

Jassim Rahma
acm programmer
Nelson Ota
Visualbrin
Hamez
wsy
tamccann
John Knoop
Sunil Virmani
Shawn Wildermuth - MVP (C#)
Sarwanan
avinash kundal
Jay433882
COLLECTOR
Flintman
Mindaugas Lukošius
NADANASABAPATHY I
Jagdeep Sihota
Lee John
briendjf
Only Title

radiorus's Q&A profile

  • Visual Studio Express Editions Process commands

    Hi, I am writing a program that will start a program at a certain time (I have the time thing working) with parameters And at another set time either send that process a command OR end it Are either of these two possible Cameron. well you use the Process class in the System.Diagnostics namespace to run a process, or its assistant the ProcessStartInfo class, which has additional flexibility like redirecting input/output from the application you are going to run and setting the working directory and setting the window style etc... http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx http://msdn2.microsoft.com/en-us/library/system.diagnostics.processstartinfo.aspx ...Show All

  • Visual Studio 2008 (Pre-release) Play a musical note with WPF

    I was recently told that the concept of the MDX (managed direct X) API was obsoleted by Windows Presentation Foundation. So, I went about trying to re-write some of my old MDX code in WPF - and ran into a snag. I need to be able to produce a musical note... and I don't seem be able to do it programmatically any more. Even if I have to simply supply a frequencey and a duration - I can do that since the frequency range of musical notes is well known. Anybody know how to use .NET Framework 3.0 to play a musical note Any help is appreciated. - Thanks! MDX is definitely not obsoleted by WPF. There are some things in WPF that save you from having to use MDX in your apps, but it is not intended to replace it. The answer to your questio ...Show All

  • Software Development for Windows Vista Activity Deletion event

    I am looking for something in my rehosted designer that will notify me when an activity is removed from the workflow, then I can remove any bindings to to the deleted activity. I have my own root sequential activity, so I figured that I could just use the OnActivityChangeRemove method, but it is never firing - it doesn't on any of my composite activties either. I looked up the documentation and it doesn't appear to be implemented! Does anyone know how I can be notified when the an activity is deleted from my designer Jason - you can get the IComponentChangeService from the DesignerHost - and then subscribe to the ComponentRemoved event. ...Show All

  • Software Development for Windows Vista Both GetSystemMetrics(SM_CXSIZE) and GetTitleBarInfo returns wrong values for Vista Aero

    Hi Does anyone know, how to determine the location of the system buttons in Vista Aero theme Any suggestions WM_GETTITLEBARINFOEX This will work whether the Windows is in Aero, Aero Basic, or a Classic mode. ...Show All

  • Visual Studio Express Editions are methods called asynchronously in the same thread better than those called in another thread?

    i was just wondering since calling methods asynchronously in the same thread acts just like calling the method on another thread. so which is better or preferred by you programmers out there are methods called asynchronously in the same thread better than those called in another thread What I posted may have been a bit confusing: when I said 'begininvoke' will create a thread, I was refering to an asyncdelegate object. When you use 'begininvoke' on a control, it is designed to marshal the call onto the the thread which owns that controls handle. It clearly states this in the documentation. It also states the BeginInvoke is thread safe (which it should be, since it's designed for thread marshalling). There was a reference to a ...Show All

  • SQL Server Error Creating CLR UDF

    Hi: I am trying to create a CLR UDF in SQL 2005 and cosnistently run into the following error. What am I doing wrong . Please correct me and show me the right way of doing this. Msg 6551, Level 16, State 2, Procedure EmailSplitter, Line 3 CREATE FUNCTION for "EmailSplitter" failed because T-SQL and CLR types for return value do not match. Here is what I am trying to achieve. Split a Email field in the database. For that I am trying to return an array using C# and then trying to call the UDF for the C#. --1).CLR Code. (EmailSpitter.cs) using System; using System.Collections.Generic; using System.Text; namespace SQLTools { public class EmailSplitter { public static string[] Parse(string data) { ...Show All

  • Visual Studio Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel.dll

    My VB .Net Windows application using SQL Reporting runs fine on my development machine.  But when I deploy it to a user's machine and try to run a report, I get the message: Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel.dll This file is in the GAC on my machine, but not on the deployment machine.  I tried installing SQL Reporting Services on the deployment machine, but that didn't resolve the problem.  Can someone explain how to get a DLL out of the GAC on one machine so it could be copied over to another one   Thanks. http://go.microsoft.com/fwlink/ LinkId=49981 - says 404. setup.exe created by Visual Studion says the same error, but it worked earlie ...Show All

  • Windows Forms Deploy simple unmanaged C++ DLL along with ClickOnce?

    Hi, What is the best way to deploy a simple unmanaged C++ DLL that is called from a C# WinForms app using PInvoke I was thinking about adding the minimum Reg-Free COM stuff to it (without actually needing it) just to make ClickOnce deployment easier. Is that a good idea Anything simpler If ClickOnce doesn't know how to update unmanaged DLLs, what does it do when you update the managed parts of an app deployed with ClickOnce Does it always just recopy and "install" whatever unmanaged DLL is currently in the solution Thanks, Alex Here is what I did.  This seems to work fine. Since I have the sources for this unmanaged C++ DLL I created a second minimal managed C++/CLI project and then included ...Show All

  • Visual Basic Returning UNC from Map Drive Dailog

    I am writing a simple form that allows the user to browse for and map a drive. I need to return the resulting UNC map from the function. To data I have been able to open the map drive dialog and return a one or zero. Here is the code: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_mapdrive.Click ReturnValue = WNetConnectionDialog( Me .Handle, RESOURCETYPE_DISK) txt_servershare.Text = ReturnValue.toString End Sub Private Declare Function WNetConnectionDialog Lib "mpr.dll" ( ByVal hwnd As IntPtr, ByVal dwType As Integer ) As Integer WNetConnectionDialog provides no feedback with ...Show All

  • Windows Forms Control for docked "flyout" (unpinned) panels?

    I'd like to include a pinned/unpinned navigation window in my C# Winforms app that works like the docked windows in the VS05 IDE that are docked on the side with an icon and legend. In the unpinned mode it should open smoothly when you hover over the icon. I'd like to display a treeview in the panel and have the pin/unpin toggle icon as in the IDE. Is there a control that can reproduce this behavior in a Winforms app Edit: I found this: http://xceed.com/Docking_WinForms_Intro.html.  I was hoping to find a free version. I couldn't find a free one, so, for my company, I gave up and wrote my own. It wasn't too terribly difficult...the biggest problem was having to set up mouse hooks to be able to know w ...Show All

  • Visual Basic Why doesn't dataadapter.update(datatable) work?

    I am trying to update a single table in an Access database. Heres my code: Dim strSql As String = "SELECT * FROM ProductDB" Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter Dim builder As OleDb.OleDbCommandBuilder = New OleDb.OleDbCommandBuilder(da) Dim dr as DataRow da.SelectCommand = New OleDb.OleDbCommand(strSql) da.SelectCommand.Connection = conn da.UpdateCommand = builder.GetUpdateCommand da.InsertCommand = builder.GetInsertCommand da.DeleteCommand = builder.GetDeleteCommand dr = dt.NewRow ' dr.BeginEdit() 'Superfluous dr.Item(0) = txtName.Text dr.Item(1) = txtBrand.Text dr.Item(2) = txtWeight.Text dr.Item(3) = txtColor.Text dr.Item(4) = txtPrice.Text ' dr.EndEd ...Show All

  • Visual Basic Frame Problem

    Hi guys i am working in VB6 (i hope this is the correct forum) and a simple part of my program is stuffing up big time. I have two frames on a form (Open file & view file) and to switch between them i use the following code linked to an array of command buttons: -------------- Private Sub SaleB_Click(Index As Integer) Select Case Index Case 0 ' New Sale SaleFrame.Visible = True LookupFrame.Visible = False Case 1 ' Lookup Old SaleFrame.Visible = False LookupFrame.Visible = True'<---PROBLEM HERE Call FileOpt_Click(0)' Load Data End Select End Sub --------------- The problem is after i make the frame 'LookupFrame' not visible, VB will not make it visible again; i've stepped through this code and every time it execute ...Show All

  • .NET Development Application Cached HTTP Connections

    I have an HTML scrape DLL that is called concurrently to gather info. The DLL uses the following code to fetch a login page : Uri UriCon = new Uri("https://someloginpage.com"); HttpWebRequest Request = (HttpWebRequest) WebRequest.Create(UriCon); Request.Timeout = 20000; Request.CookieContainer = new CookieContainer(); Request.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*"; Request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"; Request.Headers.Add("Accept-Language:en- au"); ...Show All

  • Audio and Video Development How can I hide picture in DIV?

    I have following problem: I write DIV tag in XMU file: <div id='animation' style:position="absolute" style:x="0%" style:y="0%" style:width="20%" style:height="20%" style:backgroundColor="rgba(255, 0, 0, 220)" style:opacity="0.86" style:backgroundImage="url('Pages/pic.jpg')" style:contentWidth="scale-to-fit" style:contentHeight="scale-to-fit" >.... </div> By default "style:backgroundFrame" attribute equal "0" and I see "Pic.jpg" picture. I tried to set style:backgroundFrame at "-1" and "1000" but I anyway see picture. How can I hide picture in DIV without remove (or change ...Show All

  • Visual C++ Usage of MC++ class in other .NET languages

    Is it possible to create a MC++ class that uses managed and unmanged code and deploy that class so that it is useable from other managed languages like C# or VB.NET If so how would I go about accomplishing this Yes, this is exactly the place of C++/CLI language in .NET. Create C++/CLI Class Library and write class which exposes pure .NET interface. Internally this class can use unmanaged code, for example, call some unmanaged API. To use this class in C# or VB client, add library reference to the client project and use this class. ...Show All

©2008 Software Development Network