Madhusudhan's Q&A profile
Windows Forms how can I change mouseHoverTime property?
I use the mouseHover event to switch the visibility of two panels. The default delay for this event is too short and the MouseHoverTime property is read-only in SystemInformation. How can i change it Technically, you can change it with the SystemParametersInfo() API function using the SPI_SETMOUSEHOVERTIME argument. You shouldn't do this though, it will affect the hover time for all applications, not just yours. You can't reliably delay the hover event with the timer, it won't run again when you've moved the mouse after it fired but before the timer expired. Here's an alternative: public partial class Form1 : Form { private Point mHoverPos; private bool mHoverDone; private Timer mHoverTimer = new T ...Show All
Visual Studio LocalReport Export graph in Pdf
I use LocalReport for generate export in Excel et pdf with Framework V2.0.50727. When RDL contain graph ( bar or pie) the size of file ( render) in pdf is 16Mo. In excel is OK ( 41ko) or with no graph in pdf (89 ko) Parameter DeviceInfo is a empty string. any idea We're looking at using local reports exported to PDF as a replacement for Crystal Reports (ReportServer is NOT an option, not even the Express version!!), which have to be emailed. Obviously we cannot use this if the PDF is uncompressed. The fact that is is working in the Express Edition implies that it should be relatively easy to incorporate compression in a service pack, rather than waiting for the next release of SSRS. ...Show All
.NET Development Hex String To DateTime Conversion
I am trying to convert a hex string that I get from an XML file into a DateTime variable in a C# program. The goal is to eventually update datetime columns in an SQL-Server table with this values. What I've got so far is a 28 character string thath looks like this: 3230303630333239313930353532 and a 10 character time offset hex string that looks like this: 2B30323030. From these 2 strings I have to come up with a DateTime stamp. I would sincerely appreciate some assistance to convert the above hex strings into a DateTime variable in C# or at least tell me how to do it. I have some code that converts the hex string into a byte array, but I don't know how to convert the byte array into a DateTime variable. How many bytes is the ...Show All
Windows Forms change form in a console application
hello world! a simple question, i need to change the output "form" of a console application, how can i pass the control from a consol page to another I’m sorry but I still do not understand... if from your console application you are spawning off a form or two, you do so just like you described above... Are you looking to spawn off new console windows from a single master window the same way you would spawn new forms off from another form or console app ...Show All
Visual Studio Express Editions how to protect code, maybe in a dll as i thinks its not so easy to gen public to open
hell i am writing and app, and one part i would like to protect the content , is there a way, i understand you lot could access it, but to the general computer user maybe not so transparent. I though maybe make a dll and put code in that , but i am not sure of a procedure. if i am on the correct track to do it in a dll and pass some parameters to the black box, then a yes or no is fine and i will try to figure it out. many thanks ian Obfuscate your code . ...Show All
SQL Server Security Logs
I am new to SQL so forgive me if my question seems a little silly. My company has recently purchased a finacial program that uses a SQL database. With in the application its self there in no audit log. I want to know if there is something in SQL that stores a log of who updates or modifies any of the data that it house in the data base. Hello, If you have SQL Server Management studio installed you can find SQL Server related logs from that tool. If you open SQL Server magement studio and connect to the server you will see an Object Explorer showing details about the server you have connected to. In the object explorer under <servername>\Management\SQL Server Logs, you can see the server activity ...Show All
Visual Basic capture print job
hi, my purpose is to get the print job which was given in ms-dos base software. how to capture a print job from lpt port or how to get a print job in windows. bye ...Show All
SharePoint Products and Technologies Question about Sharepoint Security across domains
Hey guys, I have a question about Sharepoint and how it implements security. In our sharepoint implementation we use NT Authentication to access several sites on the Sharepoint server. These users are in the normal form of Domain1\User. Each of those users were given individual access by the sharepoint admin (not me). We recently created a new domain which will supersede Domain1 and are moving users over to the new domain (Domain2). Now users on Domain2 are getting an NT Challenge window when trying to access sites and documents that they used to have access to. They can get around it by typing in the credentials for Domain1, but that isn't a good solution because that domain will be going away. I am not sure how to ...Show All
Visual Basic Default Page in WebBrowser?
Hi! im fairly new to VB and i need to know how to do something really simple but the help files dont have any info. How do you make a default page in WebBrowser e.g a homepage thats displayed when the web browser opens ty in advance, matt you could navigate to the default homepage of your choice on say form load or when a now tab has been made which contains the webbrowser. Alternatively in the Design view of your form, select the webbrowser control and view its properties. There will be a property called URL. in here, set your default url to navigate to and this will automatically run/execute when you start your application ...Show All
Windows Forms Handle a textbox outside the form
Hi all, I'm new in C# and I'm still learning basic function. I'm sure this one is very simple but I can't find any help. I want to change the value of a textbox from a public class that is outside the form that contains the textbox. So, I cannot use this.textbox.text = ... I try to declare the textbox as a static variable like static System .Windows.Forms.Control Status = System .Windows .Forms .Form.ActiveForm.Controls[12]; but it is not working, Anybody has a idea Thanks in advance! Bertrand No problem: public partial class Form1 : System.Windows.Forms. Form { public string ChangeStatus { get { return Status.Text; } set { Status.Text = value ; } } } public class PSQuery ...Show All
Windows Forms DataGridView and focus
Hi, This should be pretty easy to fix, but I just cannot find the C# code! I have a datagridview and some buttons to move the rows up and down. What I'm missing is the focus on the row. I think the code should be something like: this .dataGridView1.CurrentRow .Index = row - 1; But this is a read only method. Anybody knows Thanks, B. If I understand your question correctly, something like: this.dataGridView1.Rows[row-1].Selected = true; will put the focus on that specific row. Cheers ...Show All
Smart Device Development COM port communication on emulator
I have basically used this code (C#) http://msdn2.microsoft.com/en-us/library/system.io.ports.serialport.readtimeout.aspx taken here from MSDN to make a com port communicator. I have done the basic adjustments to the CF 2.0, and I have handled the com port mapping in the emulator configuration. Using a similar program for COM port communication from the PC works fine. But I can't communicate through the COM port when I use the emulator. After the initialisation I check if the port is open, for what it's worth, but I can see with a break out box on the RS232 pinning that no bytes are sent although I get no error messages. I would be grateful for comments and tips on tutorials or tips on this issue. Since the threading in the CF is reduced, ...Show All
Windows Live Developer Forums Problems with Windows Live Custom Domains - 2/9/07
I noticed a week or so ago that I could not get the userstate from my flash movie, I have been trying to see what the problem is and I can't figure out what is wrong. is there a new way to request this data the only one working right now is EnumDomains however WLCDSDK\Win32app\ManageDomain.exe does work but I just downloaded it so it's probably been updated why would my php script work and then just stop out of the blue this is what was working $UserState = $client->getUserState( array('name' => $data.'@'.$context['DOMAIN']), array('authData' => $context['authData']) ); is there some other data that needs to be sent this is the error I get for all calls except EnumDomains Array ( [faultcode] =& ...Show All
Visual Basic Is it possible to instruct a module to return to a point of the code?
Hello all. I would like to enquire whether it is possible to code my module to return to an earlier point of my code instead of using loops. For example, after my module catches an exception, can I use some commands to return to a specific point of my code Thanks in advance. Goto will certainly work but you should use with caution and stucture your code such that you shouldnt need to use goto's in the first place. Goto is not conditional and with this code shown above if the code keeps generating the same exception it would continue ad-infinitum. So you would probably want to couple the goto with some exit condition such as a counter. So that if you were wanting to retry something - you would ret ...Show All
SQL Server OWC-XML Structure migration issues SQL2005
Hi, I recently migrated a customer's BI solution from SQL2000 to SQL2005. He used to access the Analysis Services cubes via pivottable from OWC 9 or 10. Concerning Cubes, Measures and dimensions he now has the exactly same structure on SSAS as before on SQL2000. Now I have about thousands of reports in OWC 9/10 XML format which i have to migrate to OWC11 to work with SQL2005. I started replacing the version number, Dataprovider and the new Servername. Now connection can be established but I only see the reports measures. None of the reports dimensions (+ structure + filtering) can be seen in the pivottable report. Is there any documentation on what has changed in the xml format or any smart way to easy migrate owc9/10 xml-repor ...Show All
