_joe_'s Q&A profile
Visual Basic Dave299, please see my earlier reply to the 1st post of yours in this thread, TA.
Hi. I want to build a program which can add its own buttons. However, I only ended up adding one button, and I don't know why. Here's the code: Dim i As Integer Dim ButtonMade As New Button Private Sub Button1_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click i += 1 ButtonMade.Text = i.ToString ButtonMade.Left += 100 AddHandler ButtonMade.Click, New System.EventHandler(AddressOf ButtonMade_Click) Me.Controls.Add(ButtonMade) End Sub Private Sub ButtonMade_Click(ByVal sender As Object, ByVal e As System.EventArgs) MessageBox.Show("Hello") End Sub I couldn't figure out why it just keeps on adding just one button, and when I try to add another one, it just transports the previously made ...Show All
Audio and Video Development Standard DVD
Is it planned to create a tool that can convert existing standart DVD content to hd-dvd application, that declares the same list of video titles and chapters No. You cannot re-use DVD Video content for the HD DVD part and vice versa. DVD Video and HD DVD content just sit on the same disc but they are independent! ...Show All
Visual Studio Express Editions How do I set the fontsize and color of body text using mailto:?
-Visual Basic 2005 Express- I've searched the internet and forums for 2 hours looking for a way to 'programmatically' change an emails font and color in the body. I haven't found anything on either of these. The following code is what I have so far. It works fine but I'd like to change the font size and color. There must be a way... Process.Start( "mailto:" & clemail.Trim & " SUBJECT=Notification%20of%20payment%20recieved&BODY=Payment%20recieved%20" & temp2 & "%0D%0ADate:%20" & Date .Today & "%0D%0A%0D%0AThank%20you%20for%20your%20payment.%0D%0A%0D%0APlease%20retain%20this%20receipt%20for%20your%20records." ) clemail is the customers email address. Any ...Show All
Windows Forms TextAndImageCell - Image click event
Thanks for the code of TextandImageCell that was posted in another thread in the forum, using it I got the image painted in my datagridviewtextboxcell , now the next thing is - I have to pop up another form on click event of this image . I tried using datagridview cellclick event but it fires everytime when mouse is clicked in any portion of the cell, and doesn't give any information whether image has been clicked or not The cellcontentclick event did not fire when I clicked on the image . Please pull me out of this problem as I really need the solution to this, going forth, this image picture click event will be used in lot many places in my code. Someone, please help soon. Thanks in advance, Rajat ...Show All
Visual C# Excel problem
Hi.. Is there a way to read an excel document in my C# code without having the excel application installed Thanks! I have written 3 tutorials on how to read and write excel spreadsheets using ADO.NET: Reading and Writing Excel Spreadsheets / Worksheets Using ADO.NET C# DbProviderFactory Import / Export Excel Spreadsheet Data into SQL Server Database Table Using SqlBulkCopy Reading Excel Worksheet and Column Schema Information Using ADO.NET 2.0 and GetSchema Regards, Dave ...Show All
Visual C# About Write App.config
I use sample code with article Read/Write App.Config File with .NET 2.0 listed below // Open App.Config of executable System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); // Add an Application Setting. config.AppSettings.Settings.Add("ModificationDate", DateTime.Now.ToLongTimeString() + " "); // Save the changes in App.config file. config.Save(ConfigurationSaveMode.Modified); but When I run the programme, I do not see any ch ...Show All
Visual Studio 2008 (Pre-release) How to reverse item flow?
I have an ItemsControl with items shown horizontally inside a StackPanel. How can I change the direction of the items in that StackPanel, so that one time items 0...n go from left to right, another time from right to left (nothing to do with FlowDirection for text). And how could I bind that to a property at runtime OK, here is my solution. It works fine, but if someone hast something to comment go ahead! ;-) public class ReversableStackPanel : StackPanel { static public DependencyProperty ReversedOrientationProperty = DependencyProperty.Register("ReversedOrientation", typeof(bool), typeof(ReversableStackPanel), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions ...Show All
Smart Device Development MVS STANDARD EDITION 2005
I was beta testing a copy of mvs prof. I got to the point where i thought i was ready to program, so i went out and bought a version of MVS STANDARD EDITION 2005. This standard edition is worse than the beta prof edition. I can not do for next loops, while, invalidate, update, processcmdkey, font.drawtext, resume, and the list goes on and on. All i can do is program in a straight line, and most of that programmng is not accepted. Can i replace my standard edition 2005 with something that works. Ive been beta testing for 14 weeks. for next loop: i draw chars to the screen in a 21x7 array. In the console model i get 2 lines of 70 characters. When i write the code inside the windows engine i get the 21x7 array: for( ...Show All
Windows Live Developer Forums Constant server busy error when trying to load vecollection from local.live via scripting
Greetings, Apologies up front if I missed something obvious in the VE3 documentation, but I'm trying to load a vecollection from local.live via the collection's provided permalink URL in my clientside script, but I always get the server busy error in my map control as a response. Is the server in fact generally maxed out, or am I using the wrong URL for the job etc.. The exact same URL does work to open the local.live site and successfully show the collection in that map control when I pop open a window with it from the same script function, so I don't think it's a typo or such. And, if the remote load is not do-able, is it possible to create a vecollection file on my server that I can then load locally (I know about and am levera ...Show All
Windows Forms Link from 1 Form to another.
Hi, i new to Visual Studio, basically I have 2 forms in my project, "Form1 & Form2". I want to know how to link from Form1 to Form2 at runtime. I need it to work as follows, Form1 has a button which when clicked closes Form1 & opens Form2, I tried googling it but cant find what Im looking for, any help would be much appreciated!!! Rgds David So how should I code the button click event inorder to make Form1 invisible & inactive, whilst making Form2 visible & active ...Show All
SQL Server =Globals.PageNumber & " of " & Globals.TotalPages
how do i get pagenumber and total pages when i try to put on the page header i get error: =Globals.PageNumber & " of " & Globals.TotalPages error: [rsPageNumberInBody] The Value expression for the textbox ‘textbox17’ refers to the global variable PageNumber or TotalPages. These global variables can be used only in the page header and page footer. Build complete -- 1 errors, 0 warnings any help please Jarret wrote: myGreenBird, Can you do something for me real quick Right click on the textbox where you have your expression for the page number and total pages. Do you see " Select 'Page Header' " or do you see " Select 'Body' " in the ...Show All
Visual Studio Express Editions difference in browsers
Okay, i just started with asp.net and i'm trying to set up a web-site. First i couldn't find a frameset in the standerd utility's so i made my own. Now i am able to use a frameset but when i make a header page with a certain background and link it to the header of the frameset i get a problem. When i use IE the frameset looks fine and i can see the background picture in the header frame. BUT When i use for example : Firefox the background picture is gone. Firefox will not show the background picture. Does anybody know what to do to solve this problem I'm sorry but this is not the forum for ASP questions. Users with questions such as this are referred to www.asp.net . Thanks. ...Show All
Smart Device Development Aborting webservices
Hi From my emulator when i call a webservice some times it hangs.. I set webservice.Timeout=4000. So after 4 seconds the webservice should be aborted ..That is not happening..How can i solve this issue... I am using VS 2005, .NET CF 2.0, SmartPhone - WM 5.0 Thanks Are you observing this with emulator only or Device also If possible please share a sample code. -Thanks, Mohit ...Show All
Visual Studio Tools for Office Mo A more thorough question on VSTO deployment
Hi all, I'm backing down to make sure I find a way to deliver to my customer the next few days: I have developed an Excel template with some .NET code behind using VSTO 2005. Not the SE, the first version. My solution uses another .NET assembly (helper.dll) besides the code assembly data.dll "behind" the document (data.xlt). I added a setup project to the solution. Which isn't enough of course. I created to separate install classes, one to install a policy code group thats gives Full trust to data.dll and one to bind the data.dll path to the data.xlt document (via ServerDocument). I added the custom Action to Install the CustomSetup.dll with these installer classes. Now to my questions: Are there any walkthroughs to t ...Show All
SQL Server Project Real Report Takes Hours to execute.
Hi, I tried to create a report on Project Real with one normal and one calcuated measure. The report contains three dimensions Time , Item, Store. when i try executing the report, it will never return any result , its executing forever. When i run the mdx query for the report on SSAS cube directly , again it takes many hrs for executing. Can anyone point me to the mistake i am doing Here is the MDX Expression from SSRS for the Report i created. SELECT NON EMPTY { [Measures].[cAvg Retail],[Measures].[On Order Qty], [Measures].[On Hand Qty] } ON COLUMNS, NON EMPTY { ([Time].[Calendar].[Day].ALLMEMBERS * [Item].[Item].[Item].ALLMEMBERS * [Store].[Store].[Store].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS F ...Show All
