dtsn's Q&A profile
Windows Forms Page setup
I am having problems with my page setup i do not know how to enable it so that users can type text in to the page that they created Assuming you're talking about an ASP.NET app, you have many different options, the most common of which is the textbox control. Here's a quick tutorial on using it. http://www.w3schools.com/aspnet/aspnet_textbox.asp ...Show All
Visual Basic Help Turn a Uint64 into Hours:Minutes:Seconds
Ok, so I have a timer adding 1000 to a variable called Online. Online is a UInt64 How can I turn it into Hours:Minutes:Seconds Like 03:23:25 im doing Dim iOnline As Int64 = Convert . ToInt64 ( Online ) 'convert to increment of 100 nanoseconds for timespan iOnline = CLng (( iOnline * (10 ^ 6)) / 100) Dim ts As New TimeSpan ( iOnline ) me.text = "<Online " & String.Format("{0:00}:{1:00}:{2:00}", ts.Hours, ts.Minutes, ts.Seconds) & ">" and its fine until it gets to 25 hours.. I need this to be able to count up to 100's of hours ...Show All
Visual Basic AppendText
I used AppendText for merging any files. But i have a problem. The path of the files from merging with AppendText are in the ListBox. But when I merge files as text my software put ListBox1.Items.Text and the item are only the path of the file from merging. Ex. If in ListBox I have 2 items - C://output1.txt - C://output2.txt The text of the file that my software created wit AppendText will be My .Computer.FileSystem.ReadAllBytes and My .Computer.FileSystem.WriteAllBytes ...Show All
Internet Explorer Development clientHeight
When calling for the clientHieght it returns 0. When using document.body.clientHeight; Whilst clientWidth returns the client width. Has anybody got any way of finding the heigh of the users window, only the actual body document, that will work cross browser aswell. Thanks Sevi document.body.clientHeight returns only the height of the document, not the whole... thing. You are probably looking for document.documentElement.clientHeight. Personally, I use this to be really safe: (window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight) ...Show All
Software Development for Windows Vista ActivityStatus with WorkFlowView
I'm using a WorkFlowView to visualize the workflow and a button to run it. I add to the WorkFlowRuntime the sqlTrackingService and put the property IsTransational to false. SqlTrackingService sqlTrackingService = new SqlTrackingService ( "Server=Servidor;" + "Database=WFF;" + "User ID=User;" + "Password=User;" + "Trusted_Connection=False" ); workflowRuntime.AddService(sqlTrackingService); sqlTrackingService.IsTransactional = false ; workflowRuntime.CreateWorkflow((compilerResults.CompiledAssembly.GetType( string .Format( "{0}.{1}" , this .GetType().Namespace, this .WorkflowName)))).Start(); workflowRuntime.StartRuntime(); W ...Show All
Visual C# ToShortDateString format
Console.WriteLine(DateTime.Now.ToShortDateString()); This line prints: 03/01/02007 Why In Regional and Language Options dialog on my computer I see: Short date: 03/01/2007 In the Regional and Language Options dialog, what is the current format set to (e.g. "English (United States)", "French (France)", etc.) Have you customized the short date format string at all -Tom Meschter Software Dev, Visual C# IDE ...Show All
Smart Device Development Compact Framework 2.0 Restributable Install - device only
Hi Everyone, I have a complete development environment including .Net Compact Framework 2.0 installed on my development machine. I am attemtping to attempting to deploy my application to a Treo Mobile 5.0 Pocket PC device that is running .Net Compact Framework 1.0. The deploy fails because the compact framework version on the device is old. So I'm trying to install the Compact Framework 2.0 on the device using the NetCFSetupv2.msi provided by Microsoft. It appears that this install first installs 2.0 to the desktop, and subsequently to the device. Since I already have 2.0 on the desktop, I would need to de-install it on the desktop to allow the installer to work. I'd prefer not effect my development environment. Is there a way ...Show All
Visual C++ i want get text by mouse click
i want get any word and any where in windows like Babylon Dictionary are there any function in windows api to do it tnx i cant hook mouse and keyboard and threat but i can't get text or characters from Edit Control and more control ... i find one macro from windows API but it work only in windows Vista (it's Edit_GetHilit ) i want like macro in windows XP ...Show All
Visual Studio Team System Check names of class,property,event
Hi, I want to check property's name,Class's name and Event's name that if their's name have the rule: the first letter of the name and each word connected successively later for a capital letter. how can i to do it Thank you! Do you mean something like the following PascalCased // Good camelCased // Bad If so, the IdentifiersShouldBeCasedCorrectly rule already does this for externally visible items. If you want to change this rule to fire on internal and private members, see the following blog post: TIP: How to change the FxCop naming/design rules to fire on internals ...Show All
Visual C++ how to determine memory footprint of code from EXE
i'm using VS2005 to develope some large C++ programs. is there an easy to determine the number of code bytes for an EXE i linked everything statically. thanks al This will give you the size of the executable code on disk - to get the actually in memory footprint while the executable is running you will need to profile your application. Note: code size is very rarely a performance issue. ...Show All
.NET Development Date in String.
Hi all, I have some problems in regards to detecting a date in a string. I have a text box which user can enter anything in it. But I would like to detect dates. For example, if user enter " I would like to make an appointment on 12 Jun 2006", i want my system to automatically detects that there's a date in that particular string. How is that possible to do so . I have tried using the .Contain() method but it wanted me to pass in the value. but i do not want to pass in any value. I just want to detect that there's a date therefore i am able to extract the date out and do something else with it. Thanks alot George. Hi, you could use regular expressions to extract date patte ...Show All
Windows Forms Arraylist of objects and combo box
How to display an array list of objects in a combo box Here you can find a post on how to customize comboboxes: http://ms-dotnet.blogspot.com/2006/12/checkboxcombo-continued.html Hope this helps... Eric ...Show All
Visual C# Text From Combo box to another??
I have a comboBox that has a value i need to take that value from that combo and put it in another combobox.....The settings are both set to DropDownList so the user can not enter text....but to copy text from two textbox's i just do txt.Text = txt.Text1....How do i do the same thing for combobox's do i set the SelectedItem or SelectedValue I just want to copy the selectedtext or item from combo box to another.... you have to add the item to the other combobox: if (this.theComboBox1.SelectedIndex > -1) { this.theComboBox2.Items.Add(this.theComboBox1.SelectedItem); } if selectedItem does not work, try looking at the Text property instead (this.theComboBox1.Text) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Distribution
Am I alone in thinking that as much as I'd love to get feedback on my Xbox360 XNA game, theres no chance in hell I'm going to release it if I can't release a compiled version which users can then deploy to their 360s Why do I have to release my source code when all I want is feedback from games players From what I've heard there will be a way to distribute your games later over live. Wonder how they will do it though, since there could be potentially thousands of games and weird demos. The best would be if they could allow you to link a game to your profile and then simply people can download games from you that way. Makes it easier for people to find your game given a website. On the website you can ...Show All
Visual Studio Struct icon not transparent in August CTP of Sandcastle
A very, very small bug that I've noticed in the August CTP of Sandcastle. Apparently, the icon used to represent a struct in a page listing all the items of a namespace is not transparent, and all the other icons are. The icon is located C:\program files\Sandcastle\Presentation\Art\pubstructure.gif. Regards, Michael Thanks Michael. Yes this is a know issue and we will fix this. Thanks for spotting ths issue. Anand.. ...Show All
