protovision's Q&A profile
.NET Development Netstat on remote machine
i need to take some info from a remote machine. i count some processes using WMI. Bur i could not find the take netstat info from an remote machine... thnx. Hi Susantez: I don't know the answer but wonder if you have a link that describes getting and modifying IP information from a remote system Can this be done in C# Can't find anything in the namespace that does remote systems. Thanks! ...Show All
Visual Studio Tools for Office CommandBarButton Click event is not raised
Hi, I have several buttons in a toolbar in an Outlook Addin. All buttons are members of the class (The instance of the class), so the garbae collector does not collect them, and they are kept referenced. When clicking them, they work fine. The problem is when the toolbar is wider than the window, so some buttons are hidden. When i click the button, it does not raise the event, but only replaces it with a button that is not hidden. When clicking it again (after unhiding it) it raises the event. Any help Adrian Looks like I may have spoken to soon on this one, because it looks like you are correct, in that once the button is selected, it also performs the action (both in Word ...Show All
Visual Studio Express Editions How to format textbox
Hi guys, Greetings! Would it be possible to format the textbox in such a way user can only enter numeric data including one period Just like in Visual FoxPro Where the textbox can be pre-formatted during design time such that when user types in, numerals and period are the only valid character that user can only enter. Is this possible If yes on any how, please help. Thanks, Hi ahmedilyas , Thank you for the reply. I'm wondering how can we have the period be included because this will be a price field. Finally, how about automatically separating thousands with a comma I mean as the user types in 1000 it will be automatically be 1,000.00 Will this be possible in keypress ...Show All
SQL Server Calling .Net Assembly
I create a KPI with the following expression: ([Measures].[TDV Result], StrToMember ( "[TDV Result Date].[Year - Quarter - Month - Date] .[Month].&[" + MdxFunctions.MdxFunctions.Timeframe.GetCurrentMonth() + "]" ), [Entities].[EntityType].[Site], [TDVs].[Parameter - Material].&[Coal]) MdxFunctions.MdxFunctions.Timeframe.GetCurrentMonth() is a .Net assembly and returns a string like 2007-02-01. I deploy and look at the Browser View but there is an error stating that "The '2007-02-01' string cannont be converted to the date type". How do I convert the date string Thanks, I did notice I was missing the time part after I sent this post. I would l ...Show All
SQL Server cannot use datasource column twice in ssas - IBMDB2
We develop ontop of IBMDB2 and cannot use a column twice in the model. To work arround we have to add for every usage of the column and additional column with new name to an DB2 view and use the new column in the olap model - thats really annoying. Does someone know a solution to solve this because ontop of sql server you could use a column N times (for example for: name, key and some other attributes - in with DB2 we have to add 3 columns.) The Error Message we got is "Error in Backend Relational Model - OLEDB Reported unknown Status ' ' for column.". Our System: Analysis Services 2005 SP1 ENTERPRISE 64 Bit on Windows 2003 64 Bit connection with the IBMDADB2.1 64Bit OLEDB Provider from the IBM Client Version 8.2.4 to ...Show All
Windows Forms visual inheritance in Windows application.
I'll try to keep this simple. Scenario1: I have a BaseForm and created a Label Control naming "Label1" in it. I have one InheritedForm (inherited from the BaseForm) and also created a Label Control (other than the BaseForm) in it. I can't give the same name "Label1" to this control on inherited Form. Scenario2: I have a BaseUC UserControl and created a Label Control naming "Label1" in it. I have one InheritedUC UserControl (inherited from the BaseUC UserControl) also created a Label Control in it. But in this case I can give the same name "Label1" to this control. Why So The modifier of the Control can be anything "Private" or "Friend". Any reason why this was done or Is it a known bug with the visual i ...Show All
Visual C# C# Question
Hello, From a C# program, how do I display a form that was previously created in Access Thanks. private void CloseBtn_Click( object sender, EventArgs e) { string database = "Test.mdb" ; string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + database; // Prepare the connection System.Data.OleDb. OleDbConnection conn = new System.Data.OleDb. OleDbConnection (connectionString); try { conn.Open(); // Insert code to process data. //frmMainMenu.Show(); // Opens the Access Main Menu form } catch ( Exception ex) { MessageBox .Show( "Failed to connect to data source" ); } finally { conn.Close(); } ...Show All
Microsoft ISV Community Center Forums ExecuteCommand and PrintOutput procedures
I am trying to run some sample codes downloaded from MSDN website regarding Command Object. The sample codes consist of the 2 Stored Proc below, where can I download the 2 stored procs ExecuteCommand PrintOutput The sample code can be found here http://msdn2.microsoft.com/en-us/library/ms681504.aspx Thanks. Daniel ...Show All
Visual Studio Express Editions Default Icons
VB has a MenuStrip control with an option to populate it with default menu options. In VB Express these options include short-cut keys and icons. Is there any way to reference the Open or New Icon the MenuStrip is using in other parts of the application I hadn't actually used images in the menu before but I tryed it real quick and did not get good results. I did just find some interesting code which does work. I need to study it some. Public Class Form1 Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load ' Create a new MenuStrip control. Dim ms As New MenuStrip() ' Create the ToolStripMenuItems for the MenuStr ...Show All
.NET Development ArrayList
hi, I have arraylist : public ArrayList parametri; I want to put 3 values in it and write that values in console application, how can i do this Thanks Hello dev, here you go.. ArrayList parametri = new ArrayList(); parametri . Add( "one" ); parametri . Add( "two" ); parametri . Add( "three" ); foreach ( string item in parametri) Console . WriteLine(item); Emeka Awagu ...Show All
Internet Explorer Development document.location.search is null in ie7 rc1 for local url
I launch my app from a local file and pass it the location of a remote server in the query string. For example, given the following shortcut: "C:\Program Files\Internet Explorer\iexplore.exe" file:///c:/abc/abc.html REMOTE_SERVER=https://ie7.microsoft.com/server/ I have javascript on that page which parses document.location.search to obtain REMOTE_SERVER . In ie6, this works. In ie7 rc1, it is null. Can anyone suggest a fix or workaround -Thanks Try this way, Use an wrapper html to wrap the parameterized web page(ex. p.htm) wrapper.htm <html> <head> <script> function load(){ window.document.links[0].click(); } </script> </h ...Show All
Visual Studio crystal report with sql
Hi all i'm working in vb.net 2005 and database in sql when i create a connection i used datasource "Microsoft SQL Server Database File (SqlClient)" now i need to create a report with crystal report but i didn't found these data source i just found sql server what i have to do to make a connection with "Microsoft SQL Server Database File (SqlClient)" i tried the ole db provider use data link file but it didn't successed thanks a lot Hi there! After a lot of reading I found out that creating a crystal report with access it's way much easier than creating one from an SQL database. Here you will have to write some code. Finally I could create a report from the sql database which is at my project's folder. He ...Show All
Visual Basic Not able to save data to database
I am thinking that this is actually a very easy issue, but I can not figure it out and am hoping someone can help me. I have a database setup with no data yet. I am able to connect to it and everything fine through Visual Studio/VB 2005. I built a Windows form that I want to use to Add records to a table. I followed examples from books on doing this by taking the "Data Sources" table and dragging it onto the form. When I run the the project, the form comes up with the add record button active. I click that and add data, skipping over the auto-increment field. The Save Data icon never becomes active and if I click on the Add New icon again, I get an error about the auto-increment field not being allowed to be null. When I ...Show All
Visual Basic Array.BinarySearch Question
Hi, i am tring to validate my user inputs by checking what Key they press, so on the KeyDown event, i did like: Private validDecKeyCodes As Keys() = {Keys.D1, Keys.D2, Keys.D3, Keys.D4, Keys.D5, Keys.D6, Keys.D7, Keys.D8, Keys.D9, Keys.D0} If Array.BinarySearch(validDecKeyCodes, e.KeyCode) < 0 Then e.SuppressKeyPress = True AlertMessage("Value entered is not a valid Decimal value (0 - 9)", control, "error") 'AlertMessage is a custom function End If i find that although i press "0", which is Keys.D0,in the Array, the result of binary search is -1, why is this so i thought if its -ve, is is because it is not found oh ya forgot that. thanks, and if i put Keys.D0 f ...Show All
Visual Basic Looping Registry Keys
I am making an application that allows me to backup my Microsoft Office 2003 settings. To be honest I have two questions if you dont mind.... One question I would like to ask is if anyone can help me think of a way to loop through each set of keys under each Office program key so that I may save each value as seen fit To do this so far I have had to look up each of them with regedit and write about 1700 lines of code, its works but seems to be terribly untidy and a loop I think would be more efficient. Another question would be; On installation of Office, would all of the keys and values be written. Or maybe they are not there until that particular setting or option has been edited within a program I thank any person that can ...Show All
