Jason Callas's Q&A profile
Visual Studio Express Editions Process volume controller? (audio)
Hi my appologies if this has been posted before... I am making a program that controls volume of each application individually, just like the new audio controller in windows vista. The only thing I dont know here, is how can I set the maximum volume for a process In other words, I am playing a song and broowsing the internet at the same time. If I want to lower the volume of IE but keep that of WMP high, is it possible And how thanks The thread was moved to the DirectX forums since that maybe a better place to post. There is no direct way of doing this other than using the SDK's for DirectX for example or perhaps some WinAPI for Vista but doubt there maybe one. ...Show All
Visual Studio Express Editions Blog Auto Poster for MovableType Blogs
Hi, I want to create a simple vb app that can automatically post articles to my MovableType blogs. Simply put, I want to store my articles in a directory on my computer and for the app to check the directory twice per day, and if there are any articles their, then post them to the relevant blog. But, where do I start in writing such a program - I'm familiar with vb, but could do with some help and sample code. Obviously, it involves multiple form filling, so some help here would do.. Many thanks. Thanks for the help so far. I've managed to write most od the code, but need to know how to click/activate a web-form button via code. I can set focus to the form button, but how do I click it or a ...Show All
Visual Studio Team System Get Latest Version is too slow!!!!
Hello, I have a problem in my company, when some developer wants to get latest version from source control, it's take about 5-15 seconds to complete the action for a small file, but if he does the same for some solution that is a little bigger – it can take even an hour. I don’t think it is normal. What the problem could be Thank you. Hello, Richard. We are not using SP1, and I'm not sure the using of it will fix the problem, because since the beginning of our work with TFS the action of Get Latest Version took not so long time, but now it is too much. ...Show All
Windows Forms Translating DataGridView row index to a DataSet row index
I have a sorted DataGridView and I need to make a change to the DataSet that is bound to the DataGridView. Here's the code I'm using: void DataGrid_CellValueChanged(object sender, DataGridViewCellEventArgs e) { BindingManagerBase bindingManager = null; bindingManager = DataGrid.BindingContext[DataGrid.DataSource, DataGrid.DataMember]; DataRow findRow = ((DataRowView)bindingManager.Current).Row; int datasetIndex = DataSet.Tables["table1"].Rows.IndexOf(findRow); } From what I understand, the IndexOf() method should take the row and find the index of it in the dataset. My problem is it's always coming back as 0. Can anyone see a problem with my code. Thanks! I know this has to be a common problem...people bind data ...Show All
Visual Studio Tools for Office C# and ActiveWindow.ActivePane.View.Type
Why is the following Word document property read only when automating Word from C# ActiveWindow.ActivePane.View.Type Thanks Mark Baird Hi Mike, I am uncertain without looking at more of your code or some more clarificaiton. Setting the Type property to one of the WdViewType enumeration values seems to work for me. Application wordApp = new Application (); object missing = System.Reflection. Missing .Value; Document newDoc = wordApp.Documents.Add( ref missing, ref missing, ref missing, ref missing); newDoc.Range( ref missing, ref missing).Text = "Test" ; wordApp.Visible = true ; newDoc.ActiveWindow.ActivePane.View.Type = WdViewType .wdReadingVie ...Show All
Windows Forms Rendering a form into an image
Hey everyone, I'm trying to write a window switcher, similar to Mac's Expose or Vista's Flip 3D. I don't need any special 3d effects or smooth transitions. My main task it to capture a form into a Bitmap object. The only way I found to do that in .NET is to use Interop commands like GetDC, CreateCompatibleDC and CreateCompatibleBitmap. Then i do bit-copy and create a bitmap from handle, using Image.FromHbitmap. The problem with this method is that I have to move the control so it is on top of every other control and is not clipped by the sides of the screen. When I have 11 windows I want to get screen shots of, I have to move each of them to the center of the screen, focus on it, capture and move it back. This causes a lot of f ...Show All
Microsoft ISV Community Center Forums Outputting to a Listbox
Hi; I have a list of data, and need for values outside a lower and upper bound to be flagged up to the user. I was thinking of outputting to a listbox, but cant get the code to work. I was wondering if anyone had any ideas for possible code, or a better way of outputting to the user. Ryan My list is in H2:H" & FinalRow & " where FinalRow is defined as FinalRow = Range("A65536").End(xlUp).Row The only problem, my list has empty slots. As in i only want cells with values in to be outputted to the listbox. ...Show All
Windows Forms what is real time client server application?
hi all, i am not sure if it is a right place to ask this question. could you please tell me what is real time client server application could you please give me some articles to reference could you please give me some examples can i realize it using windows form application how examples thanks a lot hi DMan1, if i want to do an application which has a server that centralises data and clients that access it on a realtime bases, how to realize it By using web service, .NET remoting or Message queue Or listener thanks a lot ...Show All
Windows Forms Generic base for UserControl do not work
Hello everybody, I use many UserControls doing quite the same stuff all the time. Now I wanted to code a generic base for all this controls. So I defined public partial class ManageItemPanelBase<T> : UserControl Now my "real" panels inherit from this Class. public partial class UserControl1 : ManageItemPanelBase<ItemClassNameGoesHere> VS do not allow me to use the visual designer anymore. I get the message: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: UserControl1 --- The base class 'ManageItemPanelBase' could not be loaded. Ensure the assembly has been referenced and that all projects have been ...Show All
Software Development for Windows Vista Vista colors
i'm developing software and now trying to compatible with vista. i use HTML files as user interface. i need windows vista colors HEX values to use them in HTML files. thanks for your help. Your best bet is to use only the system colors (like here ), this way your application will automatically adapt to the color scheme that the user is running (Aero on Vista, Windows XP style on XP, Windows Standard or Classic, High Contrast, etc.). A richer alternative is to use the Uxtheme APIs to dynamically retrieve colors, so that again your application automatically adapts to its environment if it's running under a different visual style. The visual style colors are a superset of the system colors, for example Aero includes the Tex ...Show All
Smart Device Development SerialPort Component IOException issue
I have a Ipaq Pocket PC. It connects to a bluetooth GPS Receiver (COM6). Whenever I try to open this COM Port using the SerialPort component I get an IOException. I have even tried listing all COM ports on the PPC, and opening each one inturn. Some work and some throw an IOException. Does anyone have a suggestion Same Exception here. I tried to Open a port on a hp ipaq hx4705 and it worked fine When i tried the same code on a HP ipaq h5500 it crashed with an IOExeption Have you guys have a solution for this problem ...Show All
Visual Studio Looking for laptop, should be fine with .Net Framework.
Hi, I'm planning to purchase a laptop but don't know exactly what minimum config is required to run it, specially in case of laptops. I have gone through lenovo C100, i think the processor is Pentium M. Does it support .Net without any problem " Can anybody help in this regard. Absolutely correct!!! It seems u have a fair knowledge about laptops. But my concern was performance, which could vary with processors. I heard about "Duo", do you know about this. How its different from other processors If you have an idea please tell me, what are necessary future technologies I should look for in a laptop I don't want features like fingerprint reader .... Just sufficient enough to suppo ...Show All
Visual Studio 2008 (Pre-release) Infopath and WPF
We have a requirement where we use Infopath forms for data capture from the users. Is it possible to host this infopath form inside a WPF application. Assuming there is an ActiveX control for InfoPath forms, you can host it by adding a reference to the DLL which will create a WinForms wrapper for the ActiveX control and then you can host that using WindowsFormsHost inside of your WPF app. HTH, Drew ...Show All
Visual C# Access and SQL Server
Hi all, Is SQL Server much the same as access In that it's a database that can be moved from PC to PC. My current application uses Access and VB6 I can give a user the access file for him to use on his PC. So can I do the same with SQL Server It's the server bit that's throwing me! ! Cheers!! well you just create a database/attach the file in SQL Server containing your tables/users/triggers/SPROCS etc... To connect to it and use it simply use the System.Data.SqlClient namespace which contain classes to access SQL Server. you can create tables programmatically/database programmatically (but require correct permissions I believe) or you can just load up enterprise manager/ ...Show All
Visual C# How to write typedef structs and unions in C#
I have this code from a C++ project I want to migrate to C#. How would I write this in C# typedef struct _hdr_struct { char fileType[ 4]; union { char fileVersion[ 4]; struct { char v; char major; char dot; char minor; } version; }; } HDRSTRUCT, *LPHDRSTRUCT; // Then later char buffer[ 1024]; // code to fill the buffer LPHDRSTRUCT lpHS = (LPHDRSTRUCT) &buffer; char major = lpHS->version.major; class HD { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)] public string fileType; [MarshalAs(Unmana ...Show All
