Julien Roger's Q&A profile
Visual Basic Scrolling Treeviews and DataGridView together
I have Treeviews and DataGridView side by side, and I would like to scroll these controls together. So if the user scrolls down one Treeviews or DataGridView, the other would scroll automatically. How should I do this in VB .NET 2005 I would keep the index of the first displayed row/node the same (or whatever index matches) in both controls. I don't know the DataGridView control too well, but I think it's these: TreeView.TopNode.Index DataGridView.FirstDisplayedScrollingRowIndex ...Show All
Visual Basic listview to richtext drag / drop problem
I have a vb.net app coded up with drag drop from a listview to a richtext box. Here is the relevant code: I too used "if e.Data.GetDataPresent(DataFormats.Text) then" and i only get one event for each drag and drop. If you put a breakpoint on your drop handler, are you saying that it gets hit twice ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Some basic query about XNA Game Studio Express
Hi, My question might be little irrelevant to this forum, but I could not stop but ask since the XNA Game Studio Express Beta2 has been released. I was thinking how relevant the game development expereince in XNA Game Studio Express I was thinking od writing a new engine in my part time and was looking for some option for game development Api. I have good knowledge in OpenGL and now was thinking od writing a game engine using Managed DirectX. While considering different options the idea just popped into my mind that why not using XNA express Now my question is how relevant the expereince of XNA Game Studio Express in professional game development world If someonw developed a game in XNA express is this expereince count into XBO ...Show All
.NET Development Problems with reading from an INI file
I'm reading from an INI file using the Win32 method GetPrivateProfileString, but it seems to be too slow. How do I correct it or rather, how else can i read from an INI file in a faster, more effecient way . Thanks in advance I did some profiling on GetPrivateProfileString(), digging a 79 character string out of the bottom of a 7500 byte INI file. I got 0.101 to 0.209 msec per call. Testing it on a small INI file with the key near the top didn't improve the speed much: 0.078 to 0.141 msec per call. I repeated the exact same test on a VB6 program and got the exact same timing. So it is not P/Invoke that is slowing things down, it is just that GetPrivateProfileString() is slow. Not surprising, considering w ...Show All
Visual Studio Express Editions Updates to VBEE?
Are any updates (hotfixes, Service Packs, new features) planned for Visual Basic Express Edition A service pack for VB 2005 is in the works but no firm dates on when this will arrive yet. Always Community Technology Previews (CTP) for new features such as LINQ Are you experiencing any specific issues or is this just general enquiring. ...Show All
Visual C# Help with Splash Screen
I am following a tutorial that show how to display a splash screen before my windows app loads. Here is the code so far: InitializeComponent(); //thread for splash screen Thread th = new Thread(new ThreadStart(DoSplash)); th.Start(); Thread.Sleep(3000); th.Abort(); Thread.Sleep(1000); Splash spl = new Splash(); spl.ShowDialog(); Bitmap b = new Bitmap(this.BackgroundImage); b.MakeTransparent(b.GetPixel(1,1)); this.BackgroundImage = b; --------------------------------------------------------- Splash being the form that I want displayed as the splash screen. The problem is that when I run this I get the error: DoSplash does not exist in the class or namespace.... W ...Show All
Software Development for Windows Vista USB Print
Hello sir, I have one HP DeskJet 3920 USB port printer. When i goes to MsDos prompt and want to print any .TXT file, printer can't print. command like this C:\>COPY TEMP.TXT PRN How to be assign USB port. Kindly help me. Thanks I got this from Pam. And I think we may have a solution. After defining the printer session on the Laptop, access the printer Properties. Go to the Ports tab, and hold the Control key down and select both the LPT1 and USB ports, and click the Enable Printer Pooling box at the bottom of the window, and click Apply. Click Ok. Then see if this will direct the card to the USB port. I say that I think this will work because my printer seems to have ...Show All
Visual Studio 2008 (Pre-release) WPF Memory Usage
Just wondering.... Is a compiled MSbuild WPF app supposed to be 20mb resident. - I find this tobe ridiculously huge considering all I have on the screen is a window and a button - without any styling. I understand that my exe is only 50Kb -probably cause it's only a script. I mean I added a couple of extra controls and something with a Tab interface with two pages loaded rises upto 50Mb resident. If I could pose to any-one that could inform me of a way of removing the clutter - could I perhaps limit the necessary object instanced to save on runtime memory. ,eg. use onover images as butons instead of the SVG buttons. -I understand that this is not what WPF is supposed to be all about, but If I am to make an app that runs on existing hardwar ...Show All
Internet Explorer Development IE 7 Tab windows - how to get handles to them?
Hi , I am programming an extension for IE. This works fine with IE 6 or previous but I need the handle to active window in IE 7. If Tabbed browsing is enabled then it creates problems as I have handle to whole window and not to an active document. I want to print only current tab. My question is , 1. How do I sense which tab is currently active ( I am sure MICROSOFT developers handle this as you can see the window title and address bar changed everytime you change the tab but there is no direct programming interface to it. ) 2. When I print the document to convert it to PDF, it prints all tabs. I don't want to print all tabs. i use visual basic and iewebbrowser.execwb method to print. Any help will be appriciated. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Individual mesh material transparency and reflection
I have a room, which is a mesh; it is made up of approx 100 materials. A few of these materials are glass windows. I would like to make materials which use a specific texture (glass) to be transparent (and, if possible, reflective). Any ideas on how to get started This is my render method which is called in the Direct3D render loop: public void Render() { for ( int i = 0; i < content.LobbySceneMaterials.Length; i++) { ExtendedMaterial material = content.LobbySceneMaterials ; string key = material.TextureFilename; if (! String .IsNullOrEmpty(key)) { // Set texture from content where filename matches. Texture texture = content.LobbySceneTextures[key]; device.SetTexture(0, texture); ...Show All
Visual Studio MPF GetFileNamespace method contains a bug
Hi there, In MPF file <VSSDK>\2006.09\VisualStudioIntegration\Common\Source\CSharp\Project\TokenProcessor.cs there is a line of code (313) : string projectPath = Path .GetDirectoryName(node.ProjectFile); This line returns an empty string. I think there shoud be a following line instead: string projectPath = node.ProjectFolder; From my point of view that is a bug. Isn't it Hello Dimitry, It is absolutely correct that TokenProcessor class contains bugs. Thank you for reporting your observations. We will address these bugs in the next ctp of the vssdk. Also notice that the tokenlist is not reset when new files are added. This bug causes the class name of the newly inserted files to be wrong. ...Show All
Visual Studio Express Editions Missing a include directory in visual c++ express what can I do...
Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Installed Edition: VC Express Microsoft Visual C++ 2005 76542-000-0000011-00125 Microsoft Visual C++ 2005 that is the version of visual studio 2005 i'm using. I'm trying to do a tutorial for direct x 9 and it seems I'm missing a include file <atlstr.h according to the author of the tutorial I should see with visual c++ express a path like this C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include which is missing. Any help would be apreciated. this is the comp error incase this may help. ------ Rebuild All started: Project: dhCommon, Configuration: Debug Win32 ------ Deleting intermediate ...Show All
.NET Development How to make global data thread safe ? Please Help...
Hi friends, I seem to be stuck in a peculiar problem. I have a public static class with public static members (different array lists). The members are thus global in nature and accessible across the namespace. I have a worker function which is called asynchronously (so that there are several instances running per second) and which reads the different global members at different points of execution (not the entire set at any one point). I have a writer function which is used to set the global members and this is the only one in the application writing to these variables. It will write the entire set of globals when given control through a GUI event. I need a mechanism where if one instance of worker function is accessing any ...Show All
Visual Studio Express Editions Help - Registration form help needed.
dose any one know how to make a registration form that can be sent VIA email to me i did try this tutorial but it didn't work. Tutorial: http://extreme-tutorials.co.uk/index.php showtopic=1830 also once they click submit it should disable the registration option on the drop down menu. Thanks ...Show All
Windows Forms foreach(Form f in AllformsOfApplication)
Hi, searched the forum, found something that wouldn't work, so I'm asking for some help. I'd like to find all forms in my application after clicking on a menu item, so I can do something with all of them. That would be something like: foreach (Form f in AllformsOfApplication) { dosomething(f); } Note: not just the open forms like with Application.OpenForms but something like Application.AllForms (if only it would exist...) Thanks for the help! I'll try to be brief... I'm starting from an Open Source project which has a mechanism for translations built in. It's kind of complicated so I'm not going to explain that, but I know how it works. One of the things it does is write all of the contents of the Text ...Show All
