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

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

PublicError

Member List

guilhermecvm94558
RobbPick
satya31237
dakerson
Josh_G
Jaime Stuardo
Charles Tam
Kris N
mandrijasevic
InquiringMinds
j_o_h_a_n_n_e_s
Dr.9
Paula Mansour
nativecpp
maetti
rSchild
svxtc
MarkWHarrison
j_o_h_a_n_n_e_s
SanjayNarang
Only Title

PublicError's Q&A profile

  • Visual C# Thread safe Form

    Hi, I have a form with several controls which I am updating from different classes. I am looking for a thread safe way of doing this. I would prefer not to use the tedious Invoke/InvokeRequired technique. Is there an easier or perhaps better way of doing this, I have come across the idea of using an interface For clarity: class MainForm... Button specialMove = new Button(); ComboBox tenHitCombo = new ComboBox(); ... private void specialMove_Click(object sender, EventArgs e) { // new Thread for massive damage! Thread.Start() } // Thread Method string x = MainForm.tenHitCombo.Text //UNSAFE Thanks I am updating several controls from several classes, that's what the problem is. From class a, I might want to get a value from a control a ...Show All

  • .NET Development What Trim function do i use??

    i have this string 2004-07-31 00:00:00.0 i want to trim the underlined text off so that it only shows 2004-07-31....I used the TrimEnd and passed it an char array but that did not head the results i needed...any help on how i should do this Let's try in again: >> I found this cool function String.Remove(10, 11) that did it for me Well, if we are going to accept the the part we don't want will always start at position 10 (as the above method does), then the best method would be string s = "2004-07-31 00:00:00.0"; s = s.Substring(0,10); ...Show All

  • Visual Studio 2008 (Pre-release) Requiring parameters in messages

    If I have an operation like: int AddIntegers(int int1, int in2), it seems like I can invoke this message by sending a message that does not have the int2 parameter, i.e. a message that looks like: <soap:Envelope><soap:Body><int1>2</int1></soap:Body></soap:Envelope>. WCF will assign the default value to int2 (= 0) and it will work as if nothing was wrong. What is the best way to make parameters required I find it strange that parameters are optional by default and not required. I know that the DataMemberAttribute has a IsRequired property, but how do I make the method parameters themselves required I was hoping to do something like: [OperationContract(RequireParameters = true)] int AddIntegers ...Show All

  • Windows Forms Event to check whether a list box is empty or not

    I need to enable button when the list box has items (not empty) and disable it when list box becomes empty. What event can handle this Thanks in advance, Alex. Alex Kil wrote: Thank you Peter. I wasn't sure it doesn't exist. I think there may be a suggestion to add something like that to the framework at Visual Studio and .NET Framework feedback --where you can vote on the suggestion. If not, you can add your own, noting it here, so other people can vote on it. ...Show All

  • Visual Studio Team System Drag and drop not working in VS 2005 using Stored Procedures onto the Design view for aspx pages

    Hi, I would like to know if there's a way in VS 2005 to drag and drop stored procedures from the Server Explorer to the .aspx page design view like VS 2003 I thought it was nice in VS 2003 to drag the SP onto the page and it would create and initialize the SP. In VS 2005, it won't let me drag the SP, I have to use the SqlDataSource and it doesn't generate a code in the code behind page Can anyone give me any guidance on this Thanks, Jaime Hi, I wish someone from Microsoft would answer this question. I'm not sure why they disabled this feature. It's taking me an extra 5 minutes to initalize a large stored procedure opposed to 10 seconds doing it the old way. If you add all the extra time building a large a ...Show All

  • Visual Studio Express Editions Numeric Only Values

    If in a Key_down event I want to ensure that the data that goes into the listbox is only numeric do I use a If then statement   I would like it so that if the user input alphanumerica data my program will show a message box say it must be numeric and then reset the textbox to empty and put my focus back on the text box   I tried the following code but I get the error message "must be numeric" even when the key pressed is numeric Private Sub TextBox1_KeyDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown a = TextBox1.Text If Not IsNumeric(TextBox1.Text) Then MessageBox.Show( "Must be numeric value Text Box 1" ) TextBox1.Text = "" Te ...Show All

  • SQL Server recursive query

    Hi guys, this is a weird query i need to build, or it can be an stored.proc, whatever's easier I have a table Item_ID Item_PARENT_ID --> references "Item_ID" Item_LEVEL --> 0 = top, else 1, 2, 3, 4 Item_NAME Item_START_DATE Item_END_DATE I would like to populate a gantt like chart, I have this table and need to generate an output ORDERED BY DATE BUT "PER LEVEL" how should it look like ID | NAME | PARENT ID |LEVEL|START DATE 1 topitem 1 - 0 01/01/01 9 subitem 1-1 1 1 09/01/01 3 subitem 1-2 1 1 15/01/01 2 subsubitem 1-2-1 3 2 01/01/00 7 topitem 2 -- 0 02/01/01 and so on. So this is a tree structure, ordered a. By top's date b. by sub date c. by sub ...Show All

  • .NET Development jit

    Can any one give me the brief definition about the types of jit I'm not sure what context this question is coming in, but in the most general sense, there are 2 different JITs for managed code - a) the x86 JIT converts the MSIL from a managed assembly into x86 machine code for an x86 machine and b) the x64 JIT converts the MSIL from a managed assembly into x64 machine code for an x64 machine. Pracheeti Nagarkar ...Show All

  • Visual Studio Express Editions Text editor unusable

    I realize this is an older issue, but Service Pack 1 was supposed to correct it. I'm using VB.net 2005 Express. Or at least I'm attempting to. The text editor is simply unuseable. Every 5 to 10 seconds, it completely locks up my system. I can't type, I can't do much of anything. I have been told on another forum that my project is "too large".. and yes, it's big, as one example, I have a single class with 8800 lines of code. One of the 10 modules has about 3100 lines.. I don't think that's too big. VB6 handled exactly the same project (I only did the upgrade two days ago) wonderfully. So I don't think Microsofts going to tell me that a project that was small enough for VB6 is too big for their new flagship product... Any ...Show All

  • Windows Forms ClickOnce Fails with "Value does not fall within the expected range."

    I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All

  • Visual Studio Team System error while trying to execute a policy

    hi all. i've built a simple costum policy that shows a message box every time someone attempts to check in a file. built it to release, put the required registry key, etc. the policy works great on the station from which i uploaded it to the TFS (which is the administrator workstation) however when the policy is installed on any other workstation, whenever a user attempts to perform a check in, he gets TF10139 error. therefore i'm asking if there's a certain grant i need to give regular users to execute policies, or is the problem elsewhere (and if so, where and how to fix it) thanks in advance Is the policy installed on the other workstations TFS does not do this automatically. The policy b ...Show All

  • Community Chat Firefox 2

    Yay! firefox 2 is being released at 8pm today!! Hooray! just thought i would let you know... That's an interesting observation. Most websites are designed to be IE compatible. It's not a great situation for 3rd party browser vendors, who might have functionality that would make a richer experience. I think in terms of User interface, and in my opinion, IE7 and Firefox are pretty much on par. If this is truly the case, you wonder why people should want to have two different kinds of browsers installed on their Windows box. ...Show All

  • Visual Studio Team System Don't see treediff as an option

    I don't see treediff as an option when I type TFPT at the command line. This is what I get: C:\Program Files\Microsoft Visual Studio 8\VC>tfpt TFPT - Team Foundation PowerToys Type tfpt help <command name> for full description Commands: tfpt annotate Display line-by-line change information for a file tfpt getcs Get only the changes in a particular changeset tfpt history Show the history of an item tfpt online Pend adds, edits, deletes to writable files tfpt review Review (diff/view) workspace changes tfpt rollback Pend changes to roll back a changeset tfpt unshelve Unshelve into workspace with pending changes tfpt uu Undo changes to unchanged files in the workspace And i ...Show All

  • Software Development for Windows Vista Adding roles to WorkflowRoleCollection

    Hello, I'm developing a workflow with ASP.NET authentication. I have assigned some event handlers in the workflow a WorkflowRoleCollection in their Roles property. When I want to fill the WorkflowRoleCollection with the roles that can raise the event, apparently I don't do it right. The problem is that when I raise that event I get an exception saying something like "authorization error in eventhandler guardaHorari1", and by checking the exception details I've thought that the problem is that when it checks the role of the user that tries to launch the event agains the workflowrolecollection, it doesn't find it there. I fill the collection this way: public WorkflowRoleCollection rolsModificadors = new WorkflowRoleCollection(); ...Show All

  • Windows Forms need to display multiplelines using messagebox

    hi, i need to diplay the text in multiplelines in messagebox.Help me with this. thanks venp even though both solutions are valid (as always, replies are welcomed!) it is best to use the language's syntax instead of importing another language into the language you are using for many reasons, including this. So which ever language you are using, use its functions/syntax than trying to import from another one.... ...Show All

©2008 Software Development Network