KLJ's Q&A profile
.NET Development New Window
I have a button on a call back page and when the button is pressed the new window isn't staying forward, it's hidding behind the window with the call back. I've tried to self.blur() the call back page and popup.focus() the new window but they don't seem to work. Anything would be appreciated. There is no pages and buttons in XML. It's not clear what is the context of your question. Please, consider using appropriate forum. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ann: A "Proper" Text Rendering Component
Hi! I'm just in the process of writing a proper text rendering component for XNA. It fully integrates into the content pipeline and can import any TrueType font during compile time. Just like any other XNA framework content, an .xnb file is generated from the font which can at runtime be loaded by XNA's ContentManager, eg. BitmapFont myFont = this .content.load< BitmapFont >( "Content/Fonts/Arial" ); // ... this . myFont.drawText( new Vector2 (100.0f, 100.0f), "Hello World" , Color .White ); The component is still in development and there will likely be some changes in its interface, but it's already fully usable. If you want to give it a go, you can find the component here: http://www.nuclex.org/fra ...Show All
Windows Forms Load an image using windows form
Hi, I'm trying to load an image from a file using a pictureBox and a button in the windows form. I want it to open a file dialog when the button is pressed and when the image is selected i want it to be displayed in the pictureBox. I've looked through the help file but it only has information on actually setting the filename of the picture before run time. I really don't know where to start as i'm new to this, can anybody help Cheers Hi, Just wondering if you would be able to help me out again I want to try and retreive some of the loaded image's properties and then try and change them, like put a block of solid colour at a certain point of the image. Do you know of any good tutor ...Show All
SharePoint Products and Technologies WSS 2.0 Multiple Keywords - no results
Hi, I’m trying to search for two or more keywords using windows sharepoint services 2.0 which comes together with the team foundation server (tfs) and has a sql 2005 server as backend. As documented it should be possible to use more than one keyword in a search: “Use more search words. You can include up to 255 characters.” Taken from WSS Help If I have “Expression_A” and “Expression_B” in a word document within a WSS document library I get the correct result if searching for “Expression_A” or “Expression_B” as one single keyword. As soon as I use the combination of both keywords as search expression I get no results. What is the reason for this behaviour What am I doing wrong Thanks, Tom ...Show All
Software Development for Windows Vista Last Version Of WWF
whats the time that microsoft with get the last release of wwf because iam working with wwf in actual project. It was released Nov 6th. ...Show All
Visual C++ Best Sort Algorithm for Array of 12,000 Objects
What is the best algorithm to alphabetically sort an array of about 12,000 Objects by one of their members I have implemented a Shell Sort, but it is just too slow. I need to sort the objects by one of their members: void DictShellSorter(Dictionary^ dict) { bool flag = true; int d = dict->lexicon->Length; Word^ temp = gcnew Word(); int i = 0; while(flag || d > 1) { flag = false; d = (d+1) /2; for(i = 0; i < dict->lexicon->Length - d; i++) { if(dict->l ...Show All
Internet Explorer Development Sun Java now open source for IE7 implementation
Read all about it at http://www.sun.com/software/opensource/java/ ...Show All
Visual Studio Express Editions Help with a save dialog?
hey guys I have a save button on my menu bar and i run the program and click the save button it brings up the normal save dialog like always but will not save it for some reason can someone help me All I've done is created the savedialog and scripted the showdialog inside the menustrip. Please help Kind of but it still doesn't work. Sorry I'm new to ALL of this. But what I am trying to do is I have text boxes that the user can write in and i want them to be able to save them and pull them back up at a later time in the same program. But this actually made it save so thanks now I just need to figure out how to get it to open again. thanks a lot! ...Show All
Visual C++ MFC Controls in Managed C++... Help!
Hi, A while back I designed a couple of CEdit derived MFC controls in VC++ 6.0, but our company recently made the upgrade to Visual Studio 2005. I need to re-use these controls from C# and VB environments, but would like to use the existing code rather than re-write every control. These controls will be contained in a managed C++ DLL. I've been trying to create a System::Windows::Forms::Control object which wraps my CEdit control, and passes Windows messages through to the control by overriding the DefWinProc function, but for some reason the control is not painting/drawing. Any ideas Thanks, Riaan ok... got it figured out: overload the TextBox::OnHandleCreated function as follows: ...Show All
Visual Studio 2008 (Pre-release) Setting an attached property by a Setter element?
I have the fragment below as contents of a <Grid> element. The idea is that if the checkbox is checked the <TreeView> element should only span one instead of two columns. When I check the checkbox the background of the treeview turns red, but the treeview continues to span 2 instead of 1 column. It's a bit like the attached property Grid.ColumnSpan does not get assigned by the <Setter Property="Grid.ColumnSpan" Value="1"/> at all. What should I do in order to achieve what I want Best regards, Henrik Dahl < TreeView x:Name = " Blas " ItemsSource = " {Binding Path=BlasRoot.Children} " d:LayoutOverrides = " Width " Margin = " 0,0,0,8 " Gr ...Show All
Visual Studio 2008 (Pre-release) Returning Files as a Stream
I have a WCF contract that returns a stream. I am normally returning an XML file. This works fine, but whenever I return a 'null' or binary file, the WCF comm seems to get hosed. This is a self-hosted console app. Here is my app.config. <endpoint address="net.tcp://localhost:8002/ProLab/" binding="netTcpBinding" bindingConfiguration="" contract="NCRx.ProLab.Common.IProLabServer" /> The interface is set up as a duplex interface as follows. [ServiceContract(Namespace = " http://NCRx/ProLab/Server ", SessionMode = SessionMode.Required, CallbackContract = typeof(IProLabWorkstation))] interface IProLabServer { /// <summary> /// Notifies the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Audio hoax
I was just wondering whether the XNA framework somewhat more than using its internal icky audio engine based on prefabbed XACT packages, like writing PCM data directly to a buffer I'm not very far into game programming as of yet, but to me the use of XACT seems like a superfluous step in the work flow of a creating a game, or just an additional level to a game. Correct if I'm wrong, I've just read the documentation. First of all, wave banks, cues etc. can only be created within the XACT authoring tool, hence no possibility for integration other than using what's created in the tool. Second, apparently no reflection or discovery can be made on XACT packages in your client code to discover cues. Scenario: A level editor in which you ...Show All
.NET Development Why FileSystemWatcher reports the wrong file name?
We are using FileSystemWatcher in our website project to monitor the configuration files. However, after a file is modified, the reported FullPath in is not the actual file name. E.g, there is a configuration file N:\SourceCode\...\DataCommand.config while the reported file name is N:\SourceCode\...\ve-32E1.tmp or N:\SourceCode\...\ve-32E2.tmp or even sometimes N:\SourceCode\...\DataCommand.config~RF20a125a3.TMP but never the right one. This issue is very confusing and makes a major component in the system stop functioning. So I really hope someone can explain why this is happening and what the walkaround is. Thanks very much. The project type is the latest VS2005 ASP.Net Web Application. Software env: windows 2003 ent, ...Show All
Visual C# How to disable properties?
Hi, I have been doing a lot of research into this but still can not find an answer. I am trying to disable/enable property depend on the condition. Below is an example of what I am trying to do: class Testing { string apple; public string Apple { get { return this.apple; } set { this.apple = value; } } string table; public string Table { get { return this.table; } set { this.table = value; } } enum Item { fruit, thing } //method to disable property public void Disable(string x) { if (x == Item.fruit.ToString()) { //disable this.table, make it read only if possible //this is where I am stuck on } el ...Show All
.NET Development need help inserting into a dbf file
Hi, I am using visual studio 2005 and this is an ASP.NET 2 application the dbf file is a dbase 3 file. How do i get this to insert the record into the table. I have the current vfpoledb drivers. Dim SQL As String , ret As String SQL = "INSERT SHIPDATE,TRANSACTIO VALUES('01/01/06',11111)" Dim ConnString As String ConnString = "Provider=vfpoledb.1;" + _ "Data Source=" + _ "'f:\logdavid.dbf'" + _ ";password='';user id=''" Dim oConn As OleDbConnection oConn = New OleDbConnection oConn.ConnectionString = ConnString oConn.Open() Dim oCommand As OleDbCommand oCommand = New OleDbCommand oCommand.CommandType = ...Show All
