Mauricio Mayer Soares's Q&A profile
Software Development for Windows Vista Custom Service and long running Workflow
I built a custom Service to listen to MessageQueue Messages: using System.Workflow.Runtime.Messaging; using System.Workflow.ComponentModel; using System; using System.Messaging; using Microsoft.SharePoint; using Microsoft.SharePoint.WebControls; using Microsoft.SharePoint.WebPartPages; namespace connvision.Sharepoint... { public class AskSharepointService : IAskSharepoint { string _SharepointSite; System.Collections.Generic. ...Show All
Smart Device Development Getting the application name from a sub function in another assembly
Hi, I have an application which calls into another assembly, and within that assembly I wanted to get to the Process or Application name. ie: Application -> Assembly Function A -> Assembly Function B In the case of doing it in function A then Assembly.GetCallingAssembly() achieves this, but how can I do this in Function B. In this case, getCallingAssembly returns the assembly of function A, and I cant see how to recurse. Jason ...Show All
Windows Forms Datagrid - Capturing Updates To Cells
I am working on an application were the datagrid is suposed to be synced up with the data as changes are made in near real time, no save buttons or other extra actions required. Everything is working fine with one exception. If I ch ...Show All
Visual C# Capture video stream from usb port
Hello all, how can i capture a video stream on a usb port on win xp using C# language only thanks in advance for any suggestion Hello all, how can i capture a video stream from a camera connected to a usb port on win xp using C# language only i would like to set a configuration file in which i fix the settings of the video such as brightness, hue, contrast... thanks in advance for any help ...Show All
Windows Forms Refreshing properties at design time
Hi, I'm making my first component in .net, it calls CurrencyEdit and it is a TextBox, like this: public partial class CurrencyEdit : TextBox { ... } In this component i have a property called Value that set/return a double value. At design time, if i change the Text property (on Properties editor), the Value property doesn't changes, but if i select the Value property, it (Value property) updates to the rigth value. Th ...Show All
Visual Basic How to keep data when rebuilding application?
I have downloaded the Amazon movies collection started kit for VB 2005 and am trying to learn VB this way. Everytime I rebuild the application, it wipes off the data in the MDF files also. Is there any way to keep the data safe during rebuilds short of backing up and restoring the datafiles What about When a change (such as adding a filed to a table) is made in the database can the database structure be changed without loss of data ...Show All
.NET Development Reflector & Microsoft???
I found this little program today that can decompile .net apps. I'm sure most of you have heard of it; Reflector. This software makes it so simple to open your apps code and do what ever you want with it. So after playing with it a bit the ideal popped into my head Microsoft will shut this down soon. I went to Microsoft site and entered Reflector in the search box. I was sure I would find news like so ans is going to court........ Well no so fa ...Show All
Software Development for Windows Vista Issue loading & resuming an unloaded WF..
I have a test app that does the following: It starts the runtime, adds sql persistence service to it and subscribe to some Wf related events. Then upon user input it either starts a workflow afresh (Option A) or attempts to load & resume a previously unloaded workflow (Option B). In Option A, the runtime is stopped after the WF gets unloaded&persisted. User notes down the instance id of the WF when it was started. ...Show All
SQL Server How to audit all SQL Queries in a database?
How can you audit all queries within a database Profiler is very costly, but you can set up a job to run a trace, just for certain types of events, like Batch Complete and RPC Complete, which will capture all of the queries run. If you script this in a job, then direct the results to a trace file on the hard drive of your server, the cost is minimal. You can then use fn_get_traceinfo to review the trace files, ...Show All
Windows Forms Customize Listbox Items
Hi everybody, I have listbox object in my form. Now I want the first item I add to to be bold and the font color should be red. Then all the other items I add should be default. Is that possible If yes how If no, why not Thanks for your help !!! Hi all, working with this listbox, I have a problem if the size of item is bigger than size of listbox. Have you any idea thanks in advances, Sandrokan ...Show All
Windows Forms Dynamically switching queries and databases
I am using VS2005 and am able to bind a complex query to a DataGridView at design time. What I ultimately want to do is: (1) Select a named query from a drop-down box then reconfigure the DataGridView for the appropriate number of columns and repopulate with the new query. (2) Select a database from a drop-down box and refresh the DataGridView with data from the new database. (Assume I have created the appropriate DataSources.) I see wh ...Show All
Visual Basic My code works, my form doesn't - reading .ATT
I developed an application in QBASIC to take the strange one line delivery format from a Form Mail Message and make it look neat. The code has been moved to VB2005Express and used as a learning experience. The code works fine. The display and operation of the form does not. At the end the form sometimes returns Not Responding. Suggestions based on partial code below. Private Sub btnBrowse_Click( ByVal sender As System.Object, ByVal ...Show All
Windows Forms Collection returning no reference
Hello, I have a custom collection, and in the designer, whenever I click Add to add a new item to the collection, I get object reference not set to an instance of an object. Could that be a problem with an attribute I have defined, or something else I don't understand what the problem could be. Thanks. How have you defined your Collection property It should be a ReadOnly property and needs t ...Show All
Windows Forms Creating application setup
HI, I have created a application which has seven different modules, infact 7 different applications, now i want to create a setup similar to VS.net 2005. Like the way we choose to install the required language. Please help me to achive the above. Thanking you, Regards, Prashant you need another one project of type " Setup and deployment project " it is located in VS 2005 File-> ...Show All
SQL Server SQL Server 2005 did not install
When installing Visual Web Developer 2005 Express Edition, I got a message stating that Microsoft SQL server failed to install. I tried twice with the same result. Is this a package which can be used by a home user, on a 1.1 GHZ Celeron processor with Windows XP Home SP2, 512 MB memory and 40GB hard disk If so, what programs should be present in C:\Program Files These are what I find: Contents of C:\Program Files\Microsoft SQL Server\80\COM ...Show All
