alpefusk's Q&A profile
Visual C# app.config
can anyone show me how to read/write to the app.config I have tried System.Configuration - which raises an error saying to use the ConfigurationManager. So I must be missing something. this is the app.config. and this is the line I want to read/change < setting name = " MyReports01 "< setting name = " MyReports01 " < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < configSections > < sectionGroup name = " applicationSettings " type = " System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 " > < section name = &q ...Show All
Windows Forms ContextMenuStrip & MenuStrip fading
Hi, Does anyone know how to enable "fading" for the new "ContextMenuStrip" and "MenuStrip" objects When I select all the fading options such as "Fade or slide menus into view" and "Fade out menu items after clicking" through System Properties -> Advanced -> Performance Options -> Visual Effects (basically I just choose the "Adjust for best appearance" option), all the main menus and context menus in all the applications (anywhere from notepad to office applications) have fading enabled except for the app I'm writing in C# using VS 2005. The menus in my app just pop up without a fade-in. I've tried different render modes on the items but I could not produce th ...Show All
Software Development for Windows Vista Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. The TS session in which the process is started will be based on the session id of the token passed to CreateProcessAsUser. If the token is for an interactive logged on user, it should already have the correct session id. The windowstation/desktop can be specified in the STARTUPINFO ...Show All
.NET Development Type Conversion : MSHTML collection with a string containing HTML
I want to convert a string variable type containing HTML to mshtml.htmlDocument using DirectCast keyword. DirectCast throws an InvalidCastException error. Can anyone help Here is the code : Dim Request As System.Net.HttpWebRequest Dim Response As System.Net.HttpWebResponse Dim MyStreamReader As System.io.StreamReader Dim Content As String Request = System.Net.HttpWebRequest.Create(" http://www .....") Response = Request.GetResponse() MyStreamReader = New System.IO.StreamReader(Response.GetResponseStream()) Content = MyStreamReader.ReadToEnd() MyStreamReader.Close() Dim doc As mshtml.HTMLDocument = DirectCast(Content , mshtml.HTMLDocument) Regards. ...Show All
Visual C# Adding an MDI form to a Tab Page
Hello, I have this very complex and annoying problem. I have an entire MDI application (huge) an I have another application (non MDI). My main application consists of tab pages. What I want to do is, I want to transfer the entire MDI application to one of the tab pages. So far, the GUI is transferred, I transffered the code, but I can not make the tab page act like an MDI form. How can i do that Let me explain again just in case you are confused. I need to find a way to make a tab page in a NON MDI form to act like an MDI form. How can I do that Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA compiled programs crashing
Hi, i downloaded XNA Game Studio express Beta an hour ago. The application itself works pretty well, but when i compile an application (like the Spacewar starter kit or a new project), the exe that i find in *project folder*/bin/Release/ won't launch : it crashes and asks me if i want to send a report to microsoft. I know it's kinda normal since it's a beta software, but if anyone knows an issue to this problem, it would be very helpful ;) Thanks in advance. I have an other problem, SpaceWar starts, but what buttons must i press to select the options I've tried all but it lock at the title screen ...Show All
Visual Studio Problem with Query Engine
I want to generate a Crystal report from an asp.net page. When I try to execute this code: string exportpath = @"C:\PushInvoices\xxxxx.pdf"; CrystalDecisions.CrystalReports.Engine.ReportDocument myreportdoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument(); myreportdoc.Load(@"C:\Inetpub\wwwroot\DEV\OUTSIDE_SUBMISSIONS_2\PushInvoice.rpt"); myreportdoc.ExportToDisk(ExportFormatType.PortableDocFormat, exportpath); I get an exception thrown on the line with the myreportdoc.Load method. The .rpt file does exist on the path specified. the exception thrown is: "Failed to create the Crystal Query Engine". I've checked permissions and they seem ok. I could be ...Show All
Visual Studio Team System 0 error(s), 47 warning(s) --> Failed Compiling sources
Hi! I have no errors, but the build failed Where can I set that option Thanks! Regards Simon I think I found the problem, in the buildlog.txt C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(478,5): error MSB3202: The project file "C:\net\DLL\DAKOTA\BUILD1\DAKOTA\Daily Build\BuildType\..\Sources\Globalization\Globalization.sln" was not found. C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(478,5): error MSB3202: The project file "C:\net\DLL\DAKOTA\BUILD1\DAKOTA\Daily Build\BuildType\..\Sources\WebControls\WebControls.sln" was not found. C:\Program Files\MSBuild\Microsoft\VisualS ...Show All
SQL Server poor performance
Hello all, I recently pick up a SQL-Server Client-Server application system and I saw very poor performance. for example, if I was doing some join from 3 or 4 tables, our data entry staff can not do anything, the front end VB application would just hang. There are 10 users at maximum logging on the system concurrently. I am not sql server dba but like to improve it, where should I begin to check detailed steps are appreciated. Thanks, Jane what version of sql server are you using If the VB application hangs, how do you know it's SQL Server that's the problem ...Show All
Visual C# Converting date to system current date time format
Hello Can somebody help me for below problem In my .Net application I am using vb component having one method which accepts DateTime as a parameter. This value will be inserted into the database. The value to be passed to this method will be taken from some other database. Before passing this datetime variable I want to set the date format as a current culture system datetime format with ShortDatePattern. I used the below code to get the system short date format and to set that format to DateTime variable but the format is not getting changed to ShortDatePattern. Code :- string LstrSystemDateFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern; string LstrDateString = "15/01/2007"; DateTime Effec ...Show All
Visual Studio Team System Creating a new project
I have set up a new Team Project for my next program and went through all the steps to create the site, set up sharepoint and set resources and security. Now I want to add the project everyone will be using. When I click file ->new-> project and add a blank solution and select Add Solution to Source Control option it wants to open my SourceSafe and add it there. I want to add the Solution to the TFS location I set up while creating my team project. How do I do this This is my first attempt at a Team Project and need to get this going so I can get my other resources set up with tasks and start tracking this. Thanks. John Wright In Visual Studio, Select Tools->Options. This should open the o ...Show All
Visual Studio Express Editions Favorites in webbrowser help!!???
ok im making a internet browser and i added the addtofavorites option and a favorites drop downlist these are the codes im useing Private Sub Favorites_DropDownItemClicked( ByVal sender As Object , ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles Favorites.DropDownItemClicked WebBrowser1.Navigate(e.ClickedItem.Text) End Sub Private Sub AddToFavorites_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToFavorites.Click Favorites.DropDownItems.Add(WebBrowser1.Url.ToString) End Sub and when i add a favorite it gos right and everything but when i close the app and reopen all my favorites are gone how do i ...Show All
Visual Basic Creating Combinations
I need help creating an array that holds all of the combinations based on some inputs. The input matrix if you will is variable and is defined in the structure below and is loaded into an array fdcConfig. Any idead how to create the arrray that is described at the end Believe it or not this is not school homework. It has just been a while since I did anything recursive and I believe that is what is required here. Structure SimulationInput Dim InputID As Integer Dim MinValue As Single Dim MaxValue As Single Dim Increment As Single End Structure Dim fdcConfig() As SimulationInput 'There is some code here to populate the array 'intInputs = the max index of fdcConfig() Let's assume that the array is loaded as foll ...Show All
SQL Server The product level is insufficient for component
hi, I am very new to SSIS. I have created a small application in which the data flow task contains OLEDB source, derived column and datareaderdest.When i run dtexecui.exe and execute the package i am getting these errors The product level is insufficient for component "Derived Column" The product level is insufficient for component "DataReaderDest" But i am not geeting any warning or error when i debug the solution. Please help me on this. Thanks in advance help. I dont know what is wrong but I have ISS enabled on my PC and I installed SSIS when I installed the Enterprise Edition, but it keeps giving me the same error. What else can I do The product le ...Show All
SQL Server MSVCR70.dll
While trying to run Yahoo Browzer, Got I got a message saying MSVCR70.dll was not found. How can I get it fixed Rick ...Show All
