Rodolfo Montero's Q&A profile
Gadgets Sidebar gadgets outside the sidebar?
Hi guys, I'm interested on building some gadgets and I'd like to know a couple of info about this specific type. 1) Can they exist outside the sidebar In this case, can they know their position in the stage 2) Can they communicate to each other I had a look to the API and I couldn't find so much information about these topics. Any info will be very appreciated. Thanks, chr 1) I found in the API the left and top read/write property of the Background, is it the way to get the position in the screen of the widget itself (the left property is mixed with the width btw so I presume that API is far to be ready). Thanks a lot, chr ...Show All
Visual C# how to protect C# desktop exe from decompiling or reverse engineering ?
How to protect code of a desktop exe from reverse Engineering and get source code As decompiler are easily available any one can easly get source code.Can Strong Name or obfuscator software guarantee source code protection.Is there any other technique apart from these any other language like vc++ has more security features Visual Studio 2005 Professional includes Dotfuscator Community Edition. If you have one of the lower versions of Visual Studio, I think you can buy Dotfuscator (the cheap version) for like $50. ...Show All
Windows Forms Graphics!
How can I make a button border raised and 3D when the mouse goes over it Thanks, Hi, The normal button that comes with C# allows you to do certain things, not all what you want of course. You have two options here: 1) Find a button from a third party company that fancy you. 2) Create your own user control, inheriting from Button you can override the OnPaint event and draw above the graphic. It takes patience but the results can be great. Once you master that you will be able to write your cool own controls as we do in our company. Cheers ...Show All
Visual C++ Getting Error Description.
Hello Everyone, Is there any way i get the Error Description or Exceptions Description when i use try { --- Some code here. } catch(...) { --Exception Descrption .. } I want to get the description in the catch block, is it possible if so then how can i get Thanks can i create directive for trapping errors somthing like this #CATCHALLERROR catch(_com_error &e) { --- display some message or unhandle the error } catch(CException Ex) { --Do some processing } catch(...) { -- Do Some processing } Now, in the function where managing the exception i need to do only following thing. try { ---Some processing over here. ...Show All
Visual Studio Team System Fxcop issue in Global.asax using Application_Error
Hi, I'm using FxCop in my project. Its works fine in all components. I have an error in using Application_Error to catch all unhandled application execption. Here is my code protected void Application_Error(Object sender, EventArgs e) { System.Exception sEx = Server.GetLastError(); Session("Error") = sEx.Message; Server.Transfert("CustomErrorDisplay.aspx"); } FxCop Error Descrption: ReviewVisibleEventHandlers Cheers, Hari I already read that document. I tried to change the protected event to private. I'm getting another error on that 'Unused method' ...Show All
Visual Basic Select Case statement being evil
The select case statement is out to get me! Has anyone else run into the trouble of having a Select Case statement and one of the case statements has hit if you look at the data, but refuses to hit anyway That probably doesn't make sense... Put it this way... I have, say, a ListBox control that has three IP addresses in it. For argument's sake we'll say the three items are: 192.168.0.1 192.168.0.2 192.168.0.3 These items have the indices 0, 1 and 2 respectively. Now, inside a function that receives a string of data (T) from a network user I have code that's something like this: Dim X As Integer For X = 0 To (ListBox1.Items.Count - 1) Select Case ListBox1.Items(X) Case T 'Code segment 1 Case Else 'Code ...Show All
SQL Server Migrating from SQL express 2005 to sql 2005
Hi, I want to move my sql express DB to a sql 2005 server located at a service provider. I can detach or back, but I am limited on attaching or restoring the DB because the servers are on two limted/seperated networks. Is scripting an idea I have SQL manager 2005 running. regards, Gerry hi Gerry, all 3 scenarios are viable solutions, as well as the Deployment Toolkit ... regards ...Show All
Microsoft ISV Community Center Forums Charts and reports go off when i change the datasource in BSM report view
Hi All, when i copy the workspace file (.bsw) file from one server to the other and try connecting to a different SSAS all the graphs and charts disappear. If we want to change the data details(data source) properties in a report view, the field lists,graphs,charts everything disappear, is there any way out to retain the graphs,charts,fieldlist even after changing the data details properties. Eg:- I have a graph whose data source is "XYZ Server" and cube "Cube 1".Now when i chage this to "ABC Server" and cube "Cube 1" everything goes off and i need to pull all the fields all over again. Is there a way to retain the gragh. Please help me resolve this as it just increases the manual work. T ...Show All
SQL Server Problem with BOF and EOF
I have a adodb connection to a access database and the connection is opened. I want to be able to navigate the records using buttons (first, previous, next and last) and output the data into textboxes. I want to disable the buttons first and previous if BOF is true and next and last if EOF is true. My problem is that i'm doing the check algorithm when the click event is pressed (set all buttons false, if EOF is false, enabled last and next buttons, if BOF is false, enable first and previous buttons. However, when i test it and click next until it reaches the last record, i have to click it one more time for it to be disabled: rs a recordset object Private Function checkRecord() As Boolean checkRecord = True tsbLast.Enabled = False ...Show All
Smart Device Development Auto bluetooth setup for Windows Mobile 5.0
Hi, I'm working on a Symbol MC70xx device with win mobile 5.0 and want to setup a bluetooth printer to com port 9 (COM9). The system uses BTExplorer for bluetooth setup. I can do it manualy and from inside my application send info to the printer. But I want setup the printer from a cold start by a setup application or something like this. I would be appreciated for any help. Thanks Thank you for your reply. I couldn't find any SDK for BT in Devzone (Beta & regular parts). Do you have more details information for me Thanks ...Show All
Windows Forms Can't get custom prereq. for SqlNativeClient to work
I have used MageUI to build the bootstrapper package for SqlNativeClient and it compiles ok and the files looks ok and is placed in the right folder. In MageUI I have set the homesite for SqlNativeClient to my company's URL. When publishing my app from VS2005 I check the option to download the prereqs from the component vendor's homepage. But the prereq is still not downloaded from my company's URL but instead it tries to find it from the same location from where my application is installed (and fails, which it should). What am I doing wrong Looking at the product.xml the homesite property is correctly pointing to my company's URL. This does work for the .net framework, but not for my custom prereq. Any help is highly appretiated. Kind Reg ...Show All
Visual FoxPro VFP & ASP.NET 2.0 COM/Interop Problem
hi i need help i developed simple website (just for test) that use Simple VFP Com (one class have one method get the string and returns it's length) i tested the COM in VFP IDE , it;'s work fine i tested the COM in VB.NET (VS 2005) windows project , it's work fine without problem i tested the COM in simple ASP.NET 2.0 , and tested it in the web developer server which comes with VS 2005 , IT;S WORK FINE WITHOUT PROBLEMS but when i turned to ISS , i have problem when i click the command button which called my COM, this problem doesn't appear in web developer server (vs 2005-IDE) the error message is : error retriving the COM Class Factory , 80005004 i use Windows XP SP2 , ISS Version 5.1 what is wrong Greetings ...Show All
Visual C# Simple and best way to understand overriding of ToString(), in c# .net
// Simple and best way to understand overriding of ToString(), in c# .net private void button2_Click( object sender, System.EventArgs e) { //create the instance of the method ClassOverrideToString ovr= new ClassOverrideToString (); //Object.Tostring(); textBox1.Text =ovr.ToString (); } //create a class public class ClassOverrideToString { private string val="123"; //override the method ToString() public override string ToString() { return val; } //add other methods. } ...Show All
Visual Studio 2008 (Pre-release) Implementing sound equalizer
Hi, I'm trying to implement a sound equalizer in WPF. To implement this, I need the ability to control the sound stream that's used by the media player. Media elements and media players rely on URIs. Is it possible to create a media element directly from a stream Is there any way to implement new uri handlers Also, will the sound player read all the stream before playing it or will it buffer it and keep reading from the stream In general, what area/sample/classes should I look into Thank you! There is no easy way to do what you're trying to do with MediaElement/MediaPlayer. These classes are built on top of the Windows Media Player Active X Control, which doesn't support streams. I hope ...Show All
SQL Server Checking data and emailing the results....
Hello, I am trying to use “SQL Server Business Intelligence Development Studio” (what is the short name for this) to complete a check and then possibly email me depending on what happens. The check is around two tables that I have. There is a chance that they will become out of sync with each other and so I want to know when a field (ACCOUNTID) has a value that is in one table and not the other. I can do the check but I would like the package to email me when there is a problem (and if possible email me the details) and do nothing when everything is OK. Can anybody give me some hints to point me in the correct direction as I just seem to be chasing my tail at the moment, Thanks, ...Show All
