_Quimbly_'s Q&A profile
Visual Studio 2008 (Pre-release) Bug in RichTextBox
Hi there, i have test and found that there's a problem with RichTextBox. If we bound a RichTextBox with a ScrollViewer then the text inside RichTextBox will not full-fill the RichTextBox, see picture for more Here is my test project, Please let me know if i make any mistakes, Thanks, Dat Dang nagu's solutio n would work. However, i am n ot sure of the use of scrollviewer here. RichTextBox already has a scrollviewer if that is the intention. ...Show All
Windows Forms ListBox Drag-n-Drop Change Background Color of just one item
Is there a way to change the background color of just one item in a listbox and still allow drag-n-drop In my code I am using a list where there is only one entry that can be TRUE (or activated) and I would like to change it's background color in the listbox. I want to change the item once the user selects another item as the activated one. Here is a example: the following DrawItem event handler that will put a yellow background on the second item. Set the DrawMode to OwnerDrawFixed and do something similar in your DrawItem event-handler. Hope this helps. Private Sub ListBox1_DrawItem( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox1.Dra ...Show All
SharePoint Products and Technologies SharePoint 2007 - Access in Read Only to a folder
Hi, I have a folder. A Group A can access on it only in Read. It's seems ok because the buttons "New" and "Upload" dont appear anymore. But another problem appears : when a user open a file, and edit it, it seems that he's able to edit it and save it without any problem !! How can i manage this problem I dont want to allow them to edit documents. Thanks for help. hi, ive enable the check-out option. But another problem appears, when the user load the file in the editor and try to save it, in fact microsoft word does'nt allow him to save it with the same file name but il allows the save under another name I dont want to allow this kind of user to edit or add files... How can i do ...Show All
Visual Studio Express Editions Browser and Player
Hi! first: i am new to this! so heres the problem: i want to build a browser with a music player! i thought the browser is on one tab and the player is on an other. so i realy would like to know how to do this! thx! your leo Hi, im currently in high school and need to play a tutorial for my program Its a .wmv file, i have added the windows media player reference and also to the toolbox i have done the URL add Me .AxWindowsMediaPlayer1.URL = "C:\Program Files\Pacific Groceries\tutorials\Management_Intro.wmv" Under form load, but when i press play i still cannot play the file Help is desperatly needed Thanks ...Show All
SQL Server Rushi Activated Stored Proc blocking?
Hi There I was wondering, i have experienced alot of stored procedure blocking where you have a stored procedure that get executed very frequently and is complex, when the sp has to recompile it is locked and cannot be executed by other processes. How will this work with an activated stored procedure, our activated stored procedure will probably not be too complex but it may exec complex ones base on the message type. Now lets say that a message is recieved by the activated sp he in turn executes a complex sp to process the message this causes the complex sp to recompile, during this time another activated sp is spawned by the queue with the same message type he execs the same complex sp that is busy recompiling, i presume that th ...Show All
Visual C++ Remote Execution through WMI
hi all i want to remotly execute the programs on my networkcomputers using the WMI services,i had not found any example that tell me how to do that any help is this case in welcomed. Please see : http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmisdk/wmi/wmi_c___application_examples.asp ...Show All
.NET Development Executing query with parameters in VB
I appologize in advance if this question seems simplistic, but I'm fairly new to the whole data access thing. I have an access database witha query that requires a text parameter. I put it as a query into the tabel adapter for the table it went with and it gave me the error "unable to parse query text." The query work just fine in access, but for some reason VB does not like the PARAMETERS section. I want a query that requires a paramater (the name of a person) and retireves an integer value for that person in the database so I can store it in a variable. Basically how do I do this: PARAMETERS [Person] Text ( 255 ); SELECT [Table].Value FROM [Table] WHERE [Table].Person=[Person]; In Visual Basic ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 360 controller
Hi there, Quick question about the 360 controller. Are there drivers that I need to install When I plug it into my machine it does not find drivers. Or can I not use it on my PC Thanks! I didn't get a CD with my wired controller (came with Xbox), but I just plugged it in, and Windows detected it and installed the drivers (might've connected to Windows Update for that). I didn't download or install anything, it was seamless :-) ...Show All
Windows Forms problem with dates
Hi again people i have this problem with the subtraction of dates used in my program. What i am trying to do is find the difference between two dates in the format of 25.5.2007 for example. The 2 dates are taken from a database and displayed in textboxes. If TextBox1 contains the above date 25.5.2007 and TextBox2 contains (lets say) 27.05.2007 the difference is 2 days but i cannot display this result in a third TextBox. I get an error to do the data type such as "string "25.5.2007" cannot be converted to type Double"" or something similar. I tried with the CDbl thinking that would solve the problem but still no luck. Any suggestions Thanks ok in the third textbo ...Show All
Visual Studio Express Editions What is the Best Method?
What is the best method to get file names from a directory in order to rename them Okay, I still some of the above explained to me...but after staring at the code for a bit it hit me and i had an understanding on 90% what I was asking about....However, I still would like to know anwsers to: Dim TheFiles () As String Specifically the () after TheFiles Me . cboAlphaSequence . Items . Add ( Chr ( x )) Me . cboAlphaSequence . SelectedIndex = 0 Also while i was looking at this I began to wonder how could I make it work with: 1) entering a filename if necessary 2) stopping the sequence at a specific point such as at an: @ So if the old filename is: f00250@WHATEVERTEXT.EXT the new f ...Show All
Visual Studio 2008 (Pre-release) MouseEvents (WindowStyle"None" & Allow Transparency")
I cant seem to find any C# Example for MouseDown,MouseUp Events..My Application is WindowStyle "None" & AllowTransparency "True"...So with that i have to either A:Make the Rectangle in a Grid accept a Left Mouse Click,so i can drag it around the Desktop or B: Use the ListBox for the same Purpose... This is what i'm currently trying to use in my project "But" it produces 3 Errors and thier listed at the Bottom of the page...One i can fix by placing the Keyword "new" in front of the public void Drop,but still leaves a few errors..Thxs for the help in Advance.. private bool _dragging = false; private Point _dragAt = Point.Empty; &nbs ...Show All
Visual C# Unable to delete folder - being used by another process
When I try to delete a directory I get an IOException because it is being used by another process. The only process that is using it is the one trying to delete it. To prove this I created a folder and added a txt file to it. I started the app, used an OpenFileDialog object to get the string of the selected file. I then try to delete the file but get the exception - I also get the error if I try to delete the file through Windows Explorer. When I close the app I can delete the directory in windows explorer. I don't understand why this is happening as I have disposed of the object. Is the OS holding onto something that I need to clean up Here is a simple example of the problem. try { OpenFileDialog openFileDialog1 = new ...Show All
Connected Services Framework Is CSF Mature? Does it support other industries?
We are a major media/content company, which offers content through cable, broadband, web, mobile device and print. We are thinking about implementing CSF. Is CSF ready for a non-telecom company Everything I read is telecom centric. We do have many disparate systems that generate content that we need to merge into many different interfaces. We currently do not have many media partners but this could change over the next year. We currently do not have much of a BSS/OSS backend, or any clearinghouse operations. We currently do not charge for our content. We are making limited use of web services, could we just continue doing our SOA that way. ...Show All
Software Development for Windows Vista Endless state workflow, performance problem, Very common problem in real system
We use state WF to handle our order processing. Usually an order has 5 states: (1)Script (2)Approved (3)shipping (4)Closed (5)Canceled The following actions move the state transforming between the above states. Approve (1) a (2); undo approve (2) a (1);Cancel (1),(2) a (5); close (2),(3) a closed; undo close (4) a (3) Let’s have a look at action “undo close”. It exists in a real world system. Because user some time still need undo-close an closed order to ship again. (Maybe because he just regret). My question is: which one is completed state of this workflow (4) Closed or (5) Canceled It seems there are no completed state of this workflow. If so ,when can I delete the persistence state If I set closed-state( ...Show All
Windows Forms Problem with drag/drop on TreeView after user has scrolled
The drag and drop has been working great in my TreeView control until the TreeView got so large that the user needs to scroll. Now GetNodeAt no longer provides the correct value. Here is a piece of the code: Private Sub tvFolders_DragDrop( ByVal sender As Object , _ ByVal e As System.Windows.Forms.DragEventArgs) Handles tvFolders.DragDrop Try ' Determine if a set of keys is being dragged If e.Data.GetDataPresent(m_formatKeys, True ) Then ' Get the node defined as the drop target Dim oTargetNode As TreeNode = tvFolders.GetNodeAt(tvFolders.PointToClient( New Point(e.X, e.Y))) End If End Try End Sub If the user has the TreeView scrolled, the oTargetNode is wrong. It appears t ...Show All
