alexia_net's Q&A profile
Visual Basic Button
I would like to add an event to a Button, which is not in the form, it is dinamic created. Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim firstButton As Button = New Button firstButton.Name = "firstButton" firstButton.Text = "First Button" TableLayoutPanel1.Controls.Add(firstButton, 0, 0) End Sub End Class I tried the help, but it said the onclick method, but I can not use it within the form, where it look my firstbutton. By the way can somebody give a link, , where there are description about the classes' and interfaces' constructors, methods..... In other word as similar as ...Show All
.NET Development .NET Framework process mscorsvw.exe makes unexplained sound
When my computer is sitting idle, every few minutes I hear the windows sound "Windows XP Exclamation.wav." With the task manager open and the processes listed in order of CPU usage, I can see that when this sound plays, the process mscorsvw.exe has just moved toward the top of the list and usually after a few seconds it goes back down toward the bottom. I have searched the internet and Microsoft.com for posts or explanations related to this problem, but I have found nothing. There is no ramped up hogging of CPU resources by the process mscorsvw.exe taking place on my computer, as many others on the internet have reported regarding this process. The sound is simply a nuisance and I would like to know why it is happening and if it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Warm Up Contest Is Up
Just letting everyone know that DreamBuildPlay's first warmup contest is live. I have not look the code of Spacewars. But I think this rules are acceptable. And also good for people that are not good in art work because they can reuse the assets in Spacewars With this limitation, it also becomes a great challenge on how to be different from others. ...Show All
Community Chat JimmyWidgets
--- Original Post --- Hi everyone! My current project is JimmyWidgets, a widget program like Apple Dashboard, but for PC! You can even make new widgets in DLL format and post em on the online database! When I've made more widgets (I've only got 2 at the moment), I'll post it at www.jimmyware.co.uk . It's going to be open-source, so you can download the source from there too. Here's a screenshot: http://www.freewebs.com/robinjam/JimmyWidgets%5FScreenshot.jpg I await any comments/suggestions! (But please don't be too harsh about my efforts, it took me HOURS) P.S. A list of problems I need to fix: The online database currently lets you download the same widget twice, making startup time longer (because ...Show All
Visual Basic How to burn a CD using vb.net
I need to send some files into a CD but have not been successful finding a library that allows me to do that in vb.net. Any help will be appreciated. Use CD burn wizard www.vb-tips.com/downloads/vbburn.zip xp burn component ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The Model class and its associated helpers
I just noticed that it seems impossible to use Model and all the other associated classes without the content pipeline. It looks like only the framework is allowed to create and populate one. This is a bit of a bummer because I was trying to make some procedurally generated, skinned, animated trees. It looks like all the code I would have needed to manage the meshes and bone collection etc is already written, I'm just not sure I am allowed to use it. Am I right or am I missing something here If I am correct is it planned to allow us to push data into Model at some point Kris Nye wrote: Btw- any official response on the passing large structures by 'ref' issue Uhh... thanks for the feedb ...Show All
Visual Studio Team System Cherry Pick Merge causes conflict
I know this subject has come up a few times in the forum, and I've read the answers to those - but still not sure I'm following the answer. I am following an admittedly old webcast from TechEd 2005 by Douglas Neumann that talks about TFS Promotion Modeling, and the ability to Cherry-Pick merge a particular changeset. I'm wondering has something changed since the beta when this seemingly worked Very similar to the demo, I have the following setup: DEV branched to QA (changeset 29) DEV class1.cs QA class1.cs Make a change to class1.cs and check it in + add new property called "NewFeature" for the next release (changeset 30) Make another change to class1.cs for a bug fix and check it in + add new property called "BugFix", need this in th ...Show All
.NET Development Access Excel File On Different Server ** Help Urgently Needed Plz **
Hi all, I am trying to link to an excel file on a web directory on a different server but can't seem to get access to the file, This is the code i'm using: Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=\\fse1web563\fsetrain$\public\Equiv\FSE_PAS.xls;" _ & "Extended Properties=Excel 8.0;" Any ideas, help appreciated This doesn't work either. I can access the file fine when its on my server with this code: Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & Server.MapPath("../Equiv/FSE_PAS.xls") _ & ";" & "Extended Properties=Excel 8.0;" ...Show All
Visual C# Class with index
Hello! How do I create a class like the Session class, that allows the user to specify a index using the class name, like: Session[0] = xxxx or Session["myKey"] = xxxx. Thanks! You can find all the details in this page, using indexers (C#) , but here is a example: public class MyIndexedClass { private string [] _values = new string [] { "hello", "hi", "good morning", " long time no see" }; public string this [ int index] { get { Console.WriteLine("Index called with argument value " + index); return _values[index]; } set { Console.WriteLine("Index called with a ...Show All
Visual Studio Express Editions Problem with Lexmark printer/driver ?
The program I'm working on allows the user to do some printing. It works fine with my Epson R220. One of my users is having problems with his new Lexmark Z617 (print preview is blank except for 1 black pixel in the centre and page setup dialog is blank!) but it works fine with his old Epson 600. I installed the Lexmark driver and tried my software. I got the same results as my user ie. no good. I installed several other printer drivers and my software works fine. Looking through the help (and thinking there must be something wrong with my code) I found this and tried it: Public Class Form1 'This method displays a PageSetupDialog object. If the user clicks OK in the dialog, selected results of ' the dialog are displayed in ...Show All
Visual C++ CFileDialog : save button change to open
Hi My class inherited from CFileDialog . When I open the dialog at Save mode and I select any item the button of the ‘Save’ become to ‘Open’ It’s reproduce on Win XP only . Does anyone know how to fix this issue You are right , it’s change to open at directory. My custom dialog show specific project directory with my own icon. When users select any other directory on save mode –> it’s means that he wants to overwrite on this folder . There is any way to change this default behavior I try to SetWindowText() to the IDOK from open to save but it works only after the first time . Does anyone know about better solution ...Show All
SQL Server Copy Table in same database
I'm using partitions in my project to age data that's older than some predetermined number of days. Normal deletion of the data takes too long, but the following sequence of operations seems to work well when testing with raw sql queries: Split (to create a new partition for new data) Create (a new temporary table to hold the oldest partition's data) Switch (to move the oldest partition's data into the new temporary table) Merge (to combine the oldest two partitions, "removing" the oldest one in the process) Drop (to drop the temporary table and all the old data that we don't want anymore) My current problem arises at step 2, "Create." The precise column/index/etc layout of the data being aged is no ...Show All
Windows Forms .NET platform
Hi everybody, what should i do to make the .exe a GUI that i have designed work on a pc where the .net platform is not installed thanks in advance for ur help You can also build the required Libraries of .Net framework with the exe itself so on the client machine it wil not require a seperate installation of .Net! This is the tool to do it if you are willing to Buy: http://www.xenocode.com/Products/Postbuild/ Mid1 Best Regards , ...Show All
Windows Forms How to capture and save resources generated by CodeDomDesignerLoader in Custom Designer
Finally got the custom designer working after reading this March's MSDN magazine article. now I can host the desinger surface, have the CodeCompileUnit generated from the CodeDomDesignerLoader and DesignSurface, and load the generated assembly correctly, but ONLY when there is no resource (like a background image) assigned for any of the controls on the DesignSurface. I can not figure out how to capture the serialized resource from the CodeDomDesignerLoader. Included is the generated CS code, Look at the highlighted line below, the reference to the resource is generated, but how can I get the resources, so I can save it in a file, along with the generated CS file Thanks! public class TestDashboard : System.Windows.Forms.UserCon ...Show All
.NET Development Access Database and x64 OleDB Connect
Hi, i've written a programm wich access an .mdb Database with OLE-DB. Under Win x32 everything works fine Under x64 no Database is found. Is there no way to access an mdb Database from x64 Hi, Jay Harlow came up with a simplier solution. In my project complier tab press the advanced compile options button and set the target cpu to x86. That will force the program to use the 32bit drivers. Ken ...Show All
