Apocarm's Q&A profile
SharePoint Products and Technologies Is Skin managed by wss ?
Hi, Do you know how I can add a masterpage with Skin I don't understand how you do that. Thanks, Julien I am currently having problems using my customized masterpage with MOSS. You mentioned that MOSS provides this masterpage switcher. Do you mean in masterpage gallery to upload my customzied masterpage then approve it i did this, but except the account of myself, other user can't even see the default.aspx of site after I changed the master page. I did manually updated all pages using sharepoint designer with my own master to make things for me. But it seems it messed up with the masterpage gallery approve workflow I don't know... please help Thanks ...Show All
Visual Studio Express Editions Calling another application?
I have another .exe application that I wish to envoke from a C# program and pass it a parameter. Normally I would open a command line and run the .exe this way "merg.exe inputfile.xml". I'm looking for a way in C# to detect a file name in a certain directory and then call the merg.exe application with the file name as a parameter. Thanks, David use the ProcessStartInfo class: System.Diagnostics.ProcessStartInfo theProcess = new System.Diagnostics.ProcessStartInfo( filename ); theProcess.Arguments = argumentsHere ; System.Diagnostics.Process.Start(theProcess); does this help you can also redirect your standard input/output and error messages using the ProcessStart ...Show All
Visual Studio 2008 (Pre-release) Xml Data Binding Performance Issue (Re-post)
I am running the .Net 3.0 RTM and have come across a performance problem with data binding. I am data binding XML which is updated once per second to a ListView/GridView . I have noticed that cpu utilization increases rapidly as the number of items in the ListView grows. For example, on my IBM Thinkpad 43p, if I have 3 items, cpu utilization is 8%. If I have 6 items cpu usage grows to 30%. At 12 items it is approaching 100%. As the number of lines of XML grows, the performance gets worse. In the code behind, I have a single XmlDocument that I set to the data context of the ListView: XmlDocument doc = new XmlDocument (); instrumentList.DataContext = doc; When new Xml is available, I do the following: doc.LoadXml(theX ...Show All
Visual Studio Express Editions I Want to simulate the button clicks on a desktop icon.But I can't get the right position of cursor.HELP!!!
My code is: #include "Windows.h" void main() { POINT pos; GetCursorPos(&pos); SendMessage(HWND_BROADCAST, WM_RBUTTONDOWN, pos.x,pos.y); SendMessage( HWND_BROADCAST, WM_RBUTTONUP, pos.x,pos.y ); } Hmya, that code is not going to work. The best you can hope for is that every running program is going to pop up their context menu. What exactly are you trying to accomplish ...Show All
Microsoft ISV Community Center Forums Once copied, can we export as a GIF file?
How to convert MS Excel to jpg or gif and paste/insert to MS Word thank you very much Jon Peltier wrote: I don't know why everyone thinks it's so hard to copy an image of a region and paste it elsewhere. I guess I both misunderstood his problem and what the CopyPicture function is capable of. I was under the impression that he wanted to copy an image of an entire document , rather than just a single region -- simple enough, but I was also working under the misconception that CopyPicture wouldn't be able to grab a screenshot of an area bigger than what could be displayed (don't know why I thought this...) You're absolutely right! ...Show All
Visual Studio Tools for Office Problem in Charts
"Line - Column on 2 Axes" With VBA I used to call ApplyCustomType with the parameters xlBuiltIn and "Line - Column on 2 Axes". However, when I try to use VSTO with C#, the call myChart.ApplyCustomType() does not offer the opportunity to enter the "xlBuiltIn" parameter. Please let me know how to fix this. I am trying to get a graph with the left Y-axis with $ and the right Y-axis with %. The only graph that can do this is this type (as much as I know). Fabro Hi Fabro Please note that this forum is dedicated to questions concerning the VSTO technology. General Office automation questions should be directed to an appropriate Office newsgroup, as listed in t ...Show All
Visual Studio 2008 (Pre-release) Custom Elements in XAML
Hello, I am trying to create a custom element for my XAML code but don't seem to be able to. What I want is to have a hyperlink which takes a Click attribute which is the method to be called, a Action which is what is to be done, then a Resource file which could be anytihng like text or media to be displayed. Would look something like this: <Media Click="MyMethod" Action="Start" Resource="media.wmv">Test</Media> The problem is that when I inherit from hyperlink, I cannot referrence it from my xaml code. Why is this Is there a way to do it - like creating a custom schema Thanks Ben In order to have a custom tag you need a custom control/element. To see the attributes and suc ...Show All
Visual Studio Team System Build problem with wdproj
I am trying to make a build type for a website with a web development project but I am running into a lot of errors when I try to build with the build type. For example, my project builds in C:\Build\WebApps, and it is trying to copy reference files by just adding their location to that spot(i.e. C:\Build\WebApps\Program Files\telerik\r.a.d.controlsQ2 2006\NET2\bin\RadChart.Net2.dll when "C:\Program Files\telerik..." is where it is located on the machine) I dont know how to get it to look in the right place for these references. Is there a way to tell it to take out the "Build\WebApps" part when it tries to copy from the bin folder I found an article on Web Deployment Projec ...Show All
Windows Forms Control Arrays
I have a form with tabControl that has 5 pages. All the pages will have same controls. Is there a way i can define the controls on each page as an array, so that i don't have to access them by name such as txtName1.text, txtAddress1.text . I would like to access the controls in a loop as txtName.text (arrayindex), txtAddress.text(arrayindex). Thanks Check TabControl.TabPages[index].Controls //Get controls by Tab Index or TabControl.SelectedTab.Controls // Get Controls by Selected Tab I hope this is what you need! Right Best Regards, ...Show All
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks Why dont you set the SelectedIndex back to 0 after programmatically adding the values Or you could also add a button for the user to press when they are ready to run the application, so it will only then go ahead and populate the values. If that is a bad idea, what about adding it through the designer (Design view, select combo box, then in the properties window select items and add them) - if you do it this way, items get added and the selectedIndex does not change, pretty much makin ...Show All
Visual Studio Team System Load Testing without the User Interface
I'm really new to this concept of automated load testing in Visual Studio 2005...Is it possible to perform load testing using Visual Studio 2005 without the user interface Thanks Rick! I think this clarifies everything! I would just have to more into Unit Testing... Thanks again! ...Show All
Visual C++ How can I get the ProgID of a COM dll if I did not have the source code of the COM ?
How can I get the ProgID of a COM dll if I did not have the source code of the COM I appreciate your help. You can use #import derective to include - com-object wrappers in you code. Code like, #import <msxml3.dll> In this case the should be a class library compiled in dll. Or use regedit, to find your dll in registry sub-key HKCR. To find CLSID of any com-component in your dll server, then find progId by classid. In this case server should be registered. ...Show All
Visual Studio 2008 (Pre-release) Readonly dependendy property
Hello, I have defined custom readonly dependency property (below). I need to bind to it inside XAML (in my example it is bound to Label.Content), but it does not work... It looks like it never goes thru Get accesor, because in my custom dep. property is still default value... What is wrong Any suggestions Thank you RostaB My XAML: <Window x:Class= "Test.WindowTest" xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml" xmlns:own= "clr-namespace:Test" Title= "Test" Height= "300" Width= "300" > <Window.Resources> <Style TargetType= "Button" > <Setter ...Show All
Microsoft ISV Community Center Forums passing data in multiple rows in a recordset
I have a recordset that consit of 5 rows 6 columns. each column has a name. i would like to retrieve the second row in the recordset. I can read the first row, but I am lost as to read the second row in the recordset... help!! hi, there are a couple of Move methods that let you navigate the rows of a recordset, MoveFirst, MoveNext, MovePrevious, MoveLast and just Move. You need to be wary though as moving back and forward through a recordset using these methods will depend what kind of cursor the recordset was opened with, for example you can't call MoveFirst or MovePrevious if your recordset is using a forward only cursor. ...Show All
Visual C# Auto-coded events vs. Manually coded events
In my C# app, I have made a static class named Validator to do my validation for me, since all my fields are validated for length, alpha-only, numeric-only, or alpha-numeric only. For example, all my required fields should use Validator.CheckLength, which has the necesary parameters. Now, if I click the control, go to the events in the properties sidebar, and put in Validator.CheckLength under the Validating event, it says I have an "invalid identifier," which, I imagine, arises from the function not being in the control's parent class. However, if I go in to the designer code and set: this.textbx.Validating += new System.ComponentModel.CancelEventArgs(Validator.CheckLength); Everything works just fine, although it doesn't ...Show All
