Joe Hanna's Q&A profile
Visual Basic how to serialize?
A simple question I think. I’ve got a simple app that has a main form and that makes instances of a couple of dialogs. So when you click a button on the main form one of the dialogs is displayed with ShowDialog(). Within this dialog I have some CheckBoxes, TextBoxes, RichTextBoxes. I would like to be able to save the state of these components so that when the app is restarted it will pick up where the user left off (i.e. I want to serialize these components). Specifically I want to keep the state of these components even when the app closed and restarted. I've spent a couple of days reading through the Microsoft serialization topics as well as a fair amount of Google listings on the subject. I have to think this topic has been c ...Show All
SQL Server Spurious Errors With Package Execution on Local Machine
I am having strange errors with a package when running locally that has not been an issue before. The main symtom is that several Data Flow Tasks are either not inserting records on the destination or are only inserting 1 single record before the package errors with the error shown below. Strangely, the debugger will show X # of records from source and destination, but either no records are actually written or, again, in many cases, only 1 single record is written. This is very strange. App, System and Security logs yield no indication of security or other errors. All I have to go on is the above anomolies and the error message provided below. Below is the error message, can someone help me decrypt it Many thanks, Rick ...Show All
Windows Forms Text not showing up in Listbox
I am having problems populating a listbox and having the text show up. When I first encountered the problem, it was within a more complicated program. So, I began a new C# Windows application program, used the default "Form1" and drug a listbox on it. I renamed the listbox to lstCSAList to match the other program I was working on. In design time, I clicked on the ellipse, under Items where it says "(Collection)". I added, line1 line2 line3 In the Form1_Load subroutine, I placed the following code: private void Form1_Load( object sender, System.EventArgs e) { lstCSAList.Items.Add("Dummy"); } When I build and debug the program, I get the listbox with no text displayed. However, ...Show All
Smart Device Development Testing Vibration, Led, SMS on Emulator?
Hi, Can any one please tell me how to test Vibration, Led, SMS Notification on emulator. I added Vibration, SMS notification, Led to my code. but I am unable to find difference on Emulator. Is there any way to test these things. I hope you can help me in this matter. Thanks in Advance, Hi Vijay, Thank you for your response. I dint find Device Emulator version2(V2). Can you please provide the link to download the emulator. Thanks in Advance, ...Show All
Visual C# Changing application icon based on build configuration
I have a C# application with different projects in the solution. I need to change the application icon based on build configuration. I have different build configurations for branding the application. I can change the icons and splash screens without any problems. The only problem is the Application icon which is used to show in the taskbar and in Windows Explorer. Is there any way to change this I would also like to change the output exe name. Is that possible Thanks. Got it figured out. I manually edited the NewsClient.csproj and coped the <ApplicationIcon> section from the common <PropertyGroup> to my specific <PropertyGroup> and it picks the right icon based on my build ...Show All
Visual C# doing stuff before disposing
i have written class that implements IDisposable interface i.e. dispose method. now i need to make my class write to file some buffered data before disposing it. usually you would simple write code that outputs data to file e.g. WriteData(byte[] data, string filename) and call it in your dispose method. however calling simply WriteData() method is not a solution in my case since file IO can take some amount of time but i need to *immediatelly* return to executing of the code in the owner of my class instance. there is no doubt that i should run WriteData() method in a separated thread. however this question is not about starting threads. the thing i want to ask is whether it is ok in dispose method to create a new thread that runs a method ...Show All
Visual C++ EntAPI.dll', No symbols loaded
I am new to programming and C++. Using Visual Studio 2005. Build and compile are successvfull.Receive the following after I run my program and enter data that should result in a response. Instead this part of the message that I get. Anyone willing to help a new programmer Not sure what to do 'slope.exe': Loaded 'C:\WINDOWS\system32\EntAPI.dll', No symbols loaded. slope.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', No symbols loaded. The program '[3172] slope.exe: Native' has exited with code 0 (0x0) What you said has happened is perfectly normal in this case. The no symbols loaded is about debugging symbols. So if you have the IDE set up to load debugging information then it will load ...Show All
.NET Development Transfer data form webpage to other application
Hi All, I want to transfer the data form webpage to any other own application which is running in backend.How i develop this web page. which technology is good for this or any particular protocol i have to use for this. Please suggest if any idea regarding data transfer. Thanks Shiva Vrata Anand Hi All, Actually I want to implement Push Technology. When any data updates in database or any web page who fetch information from database then this information or data i want in my exe which is continous runing in backend. Is there any method how i get the data in my exe. This exe is VC++ exe. I don't want that my VC++ exe regularlly monitor in that webpage. means the information flow from webpage to VC++ applicat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Confusion
I have no experience w/ c# etc...but I love this idea of creating your own games for 360 etc with Game Studio Express. Can a person like me use Game Studio Express...like will there be walkthroughs for inexperience people Also does anyone know of any good books etc on beginning C#...and is this Visual Studio Express free or Interesting, I guess I am just used to the Wrox Beginner format, you know 1000 pages of hand holding and excruciating detail... 8) Maybe when I get back to it, I will approach the book from a different way. ...Show All
Visual Studio 0xc0000005 Error
I just installed Visual Studio Standard on a brand new machine. When I try to run any exe file in a bin folder of a project (or if I run the apllication from VS2005) I get the following error: The application failed to initialize properly (0xc0000005). Click on OK to terminate this application. Any ideas what may be casuing this what anti virus software are you running try disabling it for now and see if that helps. There have been alot of posts recently about certain AV software blocking installation and execution of .NET products/applications ...Show All
Visual Basic How to load a child form within MDI form's panel
Hi, I a newbie here. Does anyone know the coding regarding my question Pls HELP........................ just set the "parent" property of the form to the Control where u want to display the form. n ya the that control should be a container like panel.... n den if u want that ur form spans the entire panel just set the dock property to fill of ur form... i think this is wat u r looking for... hope it solves ur things.... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex Buffer in Directx 9
Hey guys, I started learning managed directx 9 two days ago from sams book(Managed DirectX 9 Kick Start : Graphics and Game Programming)in C#,and i was going through the simple rendering techniqes chapter which is using a vertex buffer to draw a triangle,i got my code all right but the triangle never appeared,i compiled the sample in the book's Cd and the code with the SDK Documentaion and it worked fine ,i removed the vertex buffer and draw my triangle with simple vertecies and it appeared,so all i am thinking what is wrong with my Code. here is my Code: [code] using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using Microsoft.DirectX; using ...Show All
SQL Server The Report Services WMI Provider is not installed or is misconfigured
Dear all, When I try to run Reporting Services from my Connect Object Explorer appears this error: The Report Services WMI Provider is not installed or is misconfigured (Microsoft.SqlServer.Management.UI.RSClient) SAS, SSIS and Database Engine are running properly but I don't know how to arrange that WMI Provider in my development server Let me know what steps are necessary in order to achieve this goal or provide me any link related Thanks in advance, Try reporting services forum. This is SSIS forum, not sure if anyone can help you http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&SiteID=1 ...Show All
Visual Basic not getting the output on my screen help
I am puzzled why am I not seeing the progress in my cmd screen This one works: Dim PSI As New ProcessStartInfo() Dim P As Process Dim SR As StreamReader Dim SW As StreamWriter Dim OutPut As String Dim x As Integer Dim xx As Array ratio = "" filename = "d:\MediaInfo.exe -f """ + filename + """ |find ""Aspect ratio""" PSI.UseShellExecute = False PSI.RedirectStandardInput = True PSI.RedirectStandardOutput = True PSI.FileName = "cmd" PSI.CreateNoWindow = True P = Process.Start(PSI) SW = P.StandardInput SW.WriteLine(filename) SR = P.StandardOutput SW.WriteLine("exit") OutPut = SR.ReadToEnd P.WaitForExit() I will see everything for this one... N ...Show All
Visual Studio Team System TFS WorkItem Tracking : Error
Hello all, i am getting the error in TFS WorkItem tracking in the event viewer like this: I am using Single server deployment of TFS. Event Type: Error Event Source: TFS WorkItem Tracking Event Category: None Event ID: 3000 Date: 12/1/2006 Time: 2:48:40 PM User: N/A Computer: <server name> Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/1/2006 9:18:40 AM Machine: <server name> Application Domain: /LM/W3SVC/2/Root/WorkItemTracking-5-128094383134804186 Assembly: Microsoft.TeamFoundation.WorkItemTracking.Server.DataServices, ...Show All
