Software Development Network Logo
  • IE Development
  • SQL Server
  • VS Team System
  • Visual Studio
  • SharePoint Products
  • Game Technologies
  • Visual C++
  • .NET Development
  • Visual Basic
  • Smart Devicet
  • Audio and Video
  • Windows Forms
  • Windows Vista
  • Microsoft ISV
  • Visual C#

Software Development Network >> tosz's Q&A profile

tosz

Member List

crino
Buddy132
msksurfer
DanBog
Bert666
tkrasinger
Michael Morton
Dave Koehler
BonnieB
AlexanderJ
Niros
RyanH314
abowman
bbossi
Jerry Ou
CJ Patrick
Kevin Hoffman
kalprin
moondaddy
Brian Kramer
Only Title

tosz's Q&A profile

  • Visual Basic Threading in VB.NET is complex--any alternatives?

    [Background and rant first; question below.] In VB5, I wrote a simulation model with 2-D animation on the form. I could start, pause, continue, and stop the simulation. While the simulation subroutine was running, the form controls still processed user's clicks, and the simulation could query the controls' state and pause or stop as requested. It was all in one thread; I didn't even know what a "thread" was. Now, I'm writing in VB.NET another simulation with 2-D animation. I want a "control center" form with start, pause, continue, and stop buttons, a small progress bar form, and an animation form. These have to communicate using shared data and event firing. I am spending a ridiculous amount of time learning a ...Show All

  • .NET Development Unloading assemblies

    Hi, My application load assembly into reflection-only context (Assembly.ReflectionOnlyLoad) and do some actions with it. But on end of the processing it is not required to hold it memory. How I can unload assembly from reflection-only context (AppDomain may be helps ) Thanks! There is no way to unload assemblies until you unload whole AppDomain. "Reflection only assemblies will be unloaded only when the AppDomain is unloaded, same as execution assemblies", says MSDN. So you should use AppDomain. ...Show All

  • Visual Studio Custom tool window like DSL Details..

    Hi all, I have defined my first little language with the very impressive DSL Tools. When I now work with the application I miss a custom window to handle the (very specific) configuration of some of my model classes. What I need is a tool like the DSL Details tool window so I want to ask if someone has already builds a similar think. Seems like I have two (write an Add-in or a Package) or more options to solve my requirements but I’m not sure what is the best way to do this. Today I’m not very familiar with writing any kind of IDE Extension but after looking in the documentation it looks not really hard. But the first big problem is: How can I call a command from the DSL Designer View to the Add-in and vice versa. ...Show All

  • Windows Forms datagridview contextmenustrip

    Hi I have setup a context menu for my datagrid view (which works just fine) Except for when the cell is in edit mode. If the cell is in edit mode and I right click, I get the menu which says: "cut, copy, paste, delete" I tried the following code, but the "cut, copy" menu still appears above my context menu: This is normal because the context menu that is showing is that of the editing control not the datagridview (the editing control captures the mouse right click instead of the datagridview). Try doing the following: add an event handler to the datagarid view's EditingControlShowing event as follows: private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { e ...Show All

  • Visual Studio 2008 (Pre-release) J2EE Host LTPA Token

    Hi, How can I send back the LTPA token to the service provider automatically, so I don't have to authenticate with every request Or the better question would be which element/attribute controls that aspect Thanks, Reza Hi Vish, Here is my scenario: 1 - The service provider is a J2EE Web service (WAS on host). 2 - My client is a WCF service proxy. 3 - The LTPA (LPTA2 in WAS 6.1) token, and it should be in the header. If you have more questions please let me know. Thanks, Reza ...Show All

  • Visual Studio Tools for Office Error In Action Pane Add In's

    I'm Using VSTO 2007. My OS is Office Xp SP2, VS.NET 2005 Hope you can get an clear idea. i dont know how to roll back this add in's setting. When i write this code ActionsPane.Controls.Add(User Control ); I'm getting that error..but when i comment it and run. It doesnt show any Errors.. I also re installed the VSTO again. But no use. Could anyone suggest me the proper way to rollback the add in's so that, All application which has Action pane will run fine. I have removed the Reference from Add In Template for Microsoft Action Pane 3.0. When i refered that .. it has a reference in Registry. But i couldnt add it back which is an XML Expansion pane Xml File How i can do it. Before i removed this f ...Show All

  • Software Development for Windows Vista ITransactionImport::import method error

    Hello everybody, I need a little help in order to investigate an Error using ITransactionImport::import method. It seems that the transaction cookie used in several transaction operations become invalid if one of this operation fails without an explicit operation by our side. We need to perform 4 database operations in the same transaction, the first operation is completed with success, the second operation fail due to a Timeout expired, we retry the same operation for three or four times and at last the operation end with success, when we try to execute third operation the ITransactionImport::import method fails with the following error 0x8004D00EL "The transaction has already been implicitly or explicitly committed or aborted& ...Show All

  • .NET Development VS2003 SQL dataadapter not generating Insert, Update or Delete code

    I just upgraded to SQL2005 standard (SP1) and tried to modify an existing sql data adapter in a VS2003(SP1) VB webservice. No matter what I try, the adapter configuration wizard returns errors on the Insert, Delete and Update components. All the other adapters work fine. Its just when I tried to modify an adapter that these errors occur. Is this a known problem Is there a solution Thanks. The errors occur after clicking the "Finish" button after specifing the select statement. The terminal dialog page of the wizard says the select stmt was successfully generated but that errors were encountered when generating the insert, update and delete commands. These are all single table adapter ...Show All

  • Visual Studio I need the header to appear on next page

    Hello, I need the header of the table to appear on the next page when my report contains multiple tables (grouped by a certain field), and for example the data of last table on one page is continued on the next page, then the header does not appear for that table on the next page. can anyone help me thanks Hi, On the group that you want to repeat the header, move your cursor over the group in the left hand (grey area) of your pane. Right click and you should see an option that says "Change Group". When you click and the window opens, click on the "Options" tab and you will see a check box that says "Repeat Group Header on each page". Check that option and the header will appear on each page. ...Show All

  • Visual C++ Checking file existence

    I would like to check for a file existence from a Windows Forms application. What function should I be using Hi, I think you could call this method of "File" class : " File::Exists( file_path ) " and check the return value of the method. Regards. ...Show All

  • Internet Explorer Development IE7 Toolbar Icons

    Is it possible to extract the IE7 toolbar icons for use in applications with web browser control or are these protected or inaccessible I've looked for them and can't find them. Indeed, they are in ieframe. Thanks. - I'm just making a slightly modified version of IE in VS2005 with the webbrowser control, and it's just for personal use, I don't plan to even distribute it. I am curious about whether it's legal though. MS makes a lot of their icons available for use but I haven't seen the IE toolbar icons anywhere so I don't know about that. ...Show All

  • Windows Forms Number Formatting

    Dear All, My problem is that first I have a text box called as "Start No:" where there user input a number say "000675858". Then upon enter key another text box appear and the "Start No:" will go invisible. The new text box called as "Quantity". In the second box user enter a number which is an int only. Then I will run a for loop based on the quantity and add 1 to my "Start No" for every loop and later add into a grid. So for example my "Start No:" = 000675858" and "Quantity:"=3 It appears in my grid as 675858 675859 675860 So my problem here is that the leading "000" go missing when I the for loop because I conver the "Sta ...Show All

  • .NET Development Creating Access-Table with DEFAULT value in Column

    Hi, I wrote an application in which I have to create a new access database table. It works great but in one of the columns (Timestamp) I want to have a default value the current date/time. How I can do that Has anybody a little sample ...Show All

  • Windows Forms launch condition to check for available disk space

    I am trying to add a launch condition to check for available disk space before uses can install my application. I tried to use the PrimaryVolumeSpaceAvailable Property but it looks like it has no value at launch. I also wanted to check the processor speen so I used a registry search to HARDWARE\DESCRIPTION\SYSTEM\CentralProcessor\0 to get key '~Mhz' , its returning the correct value but with a #, I wanted it to return an integer so I can use it to set my cpu speed launch condition. Please help Thanks for the quick response, I know that custom actions are a executed during install,What I want is to setup a LAUNCH CONDITION so that this check happens before UI/GUI of the setup, I have a predefined reco ...Show All

  • Visual C# Switch statement

    Hi, all: [I guess this could be considered a rant, but I'm still curious if anyone shares my opinion on this] I am still wondering why the switch statement is not more flexible. For example, I feel that a switch statement using objects makes sense. I'll give a more visual example for ease of understanding more than anything else, so picture this: I have three buttons on my form, button1, button2, button3. I set the click event to the same event handler, button_ButtonClick. Inside the button_ButtonClick method I want to check the sender to see which button was clicked, so I do this: switch (sender) // or even (sender as Button) { case button1: // do something here break ; case button2: // do somethi ...Show All

©2008 Software Development Network