SolidSpace's Q&A profile
Visual Studio Tools for Office Access Denied starting MS Outlook from Windows Service
Hi everybody, I am writing windows service where fileSystemWatcher monitors certain folder on our network. If file occurs, i want service to open new outlook mail window. I logged service with my username... (i have also administrator credentials in domain) but i got the answer Access Denied. Here is the code for FSW_created method: Dim pass As New SecureString() pass.Clear() pass.AppendChar( "p" ) pass.AppendChar( "s" ) pass.AppendChar( "s" ) pass.AppendChar( "s" ) pass.AppendChar( "w" ) pass.AppendChar( "o" ) pass.AppendChar( "r" ) pass.AppendChar( "d" ) Dim psi = New ProcessStartInfo() psi.FileName = "C:\Program Files\Microsoft Office\Office11\Outlook.exe" ...Show All
Visual C# Return memory information?
Is there any way to retreive the computer memory information I am currently running WindowsXP SP2 and have 512MB of physical memory. How can I return this in C# Thanks, Yes, Here is further conversion, If you need: Utility.GlobalMemoryStatus(out ms); int bytes = (int) ms.TotalPhysical; int kBytes = bytes / 1024; int mbytes = kBytes / 1024; Console.WriteLine(mbytes); // In Mega Bytes I hope this will help. Best Regards, Rizwan aka RizwanSharp ...Show All
Visual Studio Express Editions Event Handlers and Raiseevent issues
Hi, I seem to be missing something here!! I am looking at the process of Event driven coding and I am a bit confused. If I understand it correctly all I need to do is: 1) Within the form that will raise the event declare the event with the event key word and raise the event Public Class Form2 Public Event xevent() Sub raiseevents() RaiseEvent xevent() End Sub End Class Within form1 create an instance of form2 with the withevents keyword Public Class Form1 Dim WithEvents eclass As New Form2 Private Sub eclass_xevent() Handles eclass.xevent MsgBox( "test" ) End Sub End Class The issue I have is the above only works if I call the form2 raiseevents ...Show All
Software Development for Windows Vista Intel 945pm Express Chipset on Vista 5308~~no sound!!
help~~ I install windows Vista 5308~~ there is a "Intel High Definition Audio" was installed ...and i can adjustment the voice bar ... but I don't have sound .... The chipset intel 945 express on Windows XP 's audio device is "SigmaTel High Definition Audio" ....when I change to "SigmaTel High Definition Audio" ...the Device Manager tell me Install Success, but the voice bar I can't adjustment it... when I open the properties it tells me "No audio devices are installed" I have install the SigmaTel 's Driver but still no sound .... Does anyone can help me ~~thanks~~!! I have the 945GTP chipset I get sound but it is distorted. Also If you inst ...Show All
Community Chat it’s turbo c really back???
this is an open question to all the people that wants to give an opinion about this topic, it’s turbo c really back It’s older than me but i have to use it. Do you agree that some teachers nowadays are trying to make us learn about some old program here's the best thread i've ever seen https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=558041&SiteID=1 seriously loling over here ...Show All
Internet Explorer Development DocumentComplete event not firing on certain machines...
I have an embedded webbrowser inside a windows form. The documentComplete event fires on machines that have visual studio 2003 / 2005 installed, but not on machines that don't. This has also been confirmed by someone else, shown on this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1112619&SiteID=1 has anyone heard of this problem ...Show All
SQL Server Portfolio/Benchmark cube structure question
I am looking for some design advice on my table structure and cube. I am working at a financial company that wants to compare portfolios to benchmarks. Both a portfolio and a benchmark have securities. For analysis purposes the benchmarks are compared to the securities on a number of levels (industry, rating, currency, country, etc.). I want to be able to show in my cube a comparison between a portfolio and a benchmark for the previously stated dimensions. Example: 4 percent of portfolio A is Autos (industry) 5 percent of the benchmark A (the benchmark for portfolio A) is Autos Two options as I see it: Have a PortfolioBenchmark Dimension (DimPortfolioBenchmark) and that my fact table will list MarketValue and Weighting (weight of ...Show All
Game Technologies: DirectX, XNA, XACT, etc. need to get graphics device in a library
Im making a game library and i need to know how to find out the graphicsdevice I saw another post that said to use: IGraphicsDeviceService gds = game.GameServices.GetService< IGraphicsDeviceService >(); but that was for a game component, when trying to use that code in my regular class, game doesn't have gameservices under it. does anyone know how to get the above code to work for a game library The above should work outside of components: void MyCoolMethodOnSomeClassInMyLibrary(Game game) { IGraphicsDeviceService gds = game.GameServices.GetService ... } You might consider just passing around the IGraphicsDeviceService interface instead so callers can get the service however the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bryce 6.0
As soon as they get a page up I will post a link... What has been said is full Poser animation support thru DazStudio...And IBL lighting,Exporting of Booleaned objects,Faster render times,Improved Stabability,Major enhancements in the Terrain Editor.... ...Show All
Software Development for Windows Vista Storing workflow in Database
Hi All, I need some help on how to store the workflow in database(SQL Server 2005).How can we retrieve the workflow from database How to access the workflow,activities from the database Can we store the custom activies to the database How to access it from the database I am totally confused with the integration of workflow with the database and the persistence,tracking service concepts of the workflow.Can anyone help me with this issue Thanks in advance. Karthick. Here's some code from a blog post I wrote that shows an example of iterating through the list of workflows contained in a SQL 2005 persistence store and getting information about them to populate a list view showing "current" workf ...Show All
Smart Device Development Pocket PC Mobile 5 app....buffer too small or too many cursors open
ok I keep getting this error....a form as one record of data in labels and a combobox to select a new person...select the person the app gets a new record into a sqlceresultset and puts the data in the form labels... if you select a new record from the combobox about 50 times ths error comes up-----HELP !!!!! i am using one sqlceconnection object (variable) for the whole app...the resultsets are dim'd as needed and closed when i'm done... what does this error mean...i have tried a bunch of stuff.... thanks I think what's happening is that you create an updatable ResultSet, but never close it. You need to close (and preferrably dispose) it when you are done with it. Same applies to the command object ...Show All
Visual Studio Express Editions Autocomplete combobox autocompletesource bug?
I have included steps to reconstruct the error I am getting while databinding an access database and trying to get the combobox to autocomplete. I added the datasource using Data | Add new datasource. From the datasource window I changed the field to combobox and dragdropped the combobox onto my form. Using combobox tasks, I used databinding and set the combobox's data source, display member and value member. From combobox properties I set autocomplete mode to Suggest. I set autocompletesource to ListItems When I run the form it loads fine and does exactly what I want. When I close the form I get the error(codeline in red) from autogenerated code: Cannot bind to the property or column Country on the DataSource. Paramet ...Show All
Windows Forms How to set scrollable TextBox into bottom position if it has multiple lines.
I use a multi-line scrollable (vertical) Textbox to display some error messages during processing. I append error message into Textbox one by one. But the Textbox always display the top 10 messages when error messages are more than 10 lines. How can I set to the button line Thank you very much~ I guess you could do something like : TextBox1.SelectionStart = TextBox1.TextLength TextBox1.ScrollToCaret() ...Show All
Visual Studio Express Editions Timeout Expired Error
Help! I've built a program with a data base, The 1st time I run it I receive a "Timeout Expired" error, The second time I do not get the error, the same thing happens when I deplopy to other machines. I've read all the post suggesting changing the CommandTimeOut = 0. My question is how do I code this into my program. I try this, came from the msdn site, didn't work. Public Sub CreateMySqlCommand ( ) Dim myCommand As New SqlCommand ( ) MyCommand.CommandTimeout = 0 MyCommand.CommandType = Commandtype.Text End Sub Thank for any ideas or help. IW IrishWolf, CommandTimeout has no effect when the command is executed against a context connection (a SqlConnection opened with "context connectio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. low fps
i'm confused about fps in my programme. i draw 200 textured triangles in 640x480 window but get only approximately 160 fps. it's strange but when i zoom out from triangles fps growth momentally, but when i close... PreferMultiSampling = false ; SynchronizeWithVerticalRetrace = false ; RenderState.DepthBufferWriteEnable = false ; (i need it coz, ill render triangles with transparent textures) i use DrawIndexPrimitives, i.e. useing vertex and index buffer. any ideas how to increase fps Well, there's no way to say for sure if we can't see any code. The reason that you get a faster FPS when you zoom out is that there are less pixels to send to the pixel shader, and generally just less to draw. ...Show All
