Steve Huckett's Q&A profile
Visual Basic My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
Does anyone know if there is a way to get to the current users application data folder I've tried: My .Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData But it add's on what VB would call my program name, plus the version number. I need to be able to access a folder I created in a previous version of my program which is located in a folder off the current users application data folder. Hmm..I tried it out myself and found the same thing. That's strange. Donno why it would do that. Anyway, you can do this to get the "Application Data" and the "Local Settings\Application Data": System.Enviro ...Show All
Visual Studio 2008 (Pre-release) WinFX Beta 2 - ScreenSpaceLines3D: where did they go?
As the subject states: WinFX Beta 2 - ScreenSpaceLines3D: where did they go I really like the speed of beta 2 but this is holding me back now... Thanks Hi, I am facing the same problem usin SSL3D. I am working on Fluid Dynamics using WPF. I have used SSL3D but now as it is not supported in Framework I m using 3D tools for WPF (3dtools.dll). But as the new SSL3D inherits ModelVisual3D instead of Model3D i am getting error. Is there any way I can resolve this problem Thanks in Advance, Chandrak ...Show All
Visual Studio Team System Web tests resulting in Internal Server error due to Invalid ViewState
I am seeing an odd problem when testing our web site. I have no problems navigating through our website manually from a web browser and experience no problems when creating a web test that navigates through our web site. But, when I run the web test I created, then I keep getting an "Internal Server Error" on the first server page transfer. When I look at our server logs it indicates that the problem is caused by an invalid ViewState. But, this problem only occurs when playing back (running) one of my web tests. The ViewState appears to be formatted correctly (it can be parsed) but the error message gives no further indic ...Show All
Windows Forms How can I override the built-in context menu in a ToolStripComboBox?
I want to put in a ContextMenuStrip for a ToolStripComboBox so I can add other functionality to it. The only thing I can assign a ContextMenuStrip to is the ToolStrip itself. I have set up the MouseDown event of the ToolStripComboBox to create a ContextMenuStrip with the Items and their events but I can only get the menu to show when clicking on the dropdown arrow. If I ckick inside the textbox portion the only ContextMenu I get is the default. I would like to be able to add some items to that ContextMenu if possible or disable it and use my own. Hope some can help me with this. Thanks, Rick You ...Show All
Visual Studio Express Editions Help with databases
Hi I have a database with about 20 columns one of which is vehicleNumber and one of which is temperature. I have many different vehicleNumbers. When the user types a vehicleNumber into a text box I need to collect all the temperatures for that vehicle and find the average temperature. I am not using SQL, I'm using an access database with the dataset and all that. I found a little information suggesting a dataview. Can anyone help me Just to visualize here is a shortened example of my database: VehNum Temp 123 73 456 68 123 83 456 79 123 81 456 72 ...Show All
Windows Forms Bind Data Grid To Collection
Hello! I am trying to bind a data grid control to a collection class, And That works Fine but the problem is that The Columens get the fields names And I don't Want that. What should i do This might help: <a href="http://www.gotdotnet.com/community/messageboard/Thread.aspx id=19446">http://www.gotdotnet.com/community/messageboard/Thread.aspx id=19446</a> ...Show All
SQL Server missing notifications
Hello, We are building a simple distributed application around the service broker where each queue is serviced from a windows service. We have a windows service running constantly as a "listener" on an event queue for each of what we call "request" queues. When a message is received by the request, the listener service instantiates a reader to process the request. As we are in development, things get out of sync at times and the event queues sometimes stop getting the event notification message. I can correct this usually emptying the queues by receiving all messages from the "request" and "event&quo ...Show All
.NET Development Expose a VB.net function to unmanaged c++
Hi, i need to export a VB.net function (inside a DLL) and expose it to an unmanaged c++ dll. I don't want to use COM. Can i use something similar at exports.def file in c++, so that i can simply call it in my c++ project Thank you in advance, any help will be appreciated. You can't export it directly from VB.Net, so you'll have to take another route. COM Interop -- have your method be on a class that's marked as ComVisible, and then RegAsm the assembly so that it will work as a COM object Create a wrapper in C++/CLI which acts as a bridge between the VB and the native C++. Since C++/CLI can speak both sides of the equation, i ...Show All
SQL Server Accessing SQL Server database from Crystal Reports - being prompted to log on every time?
Hello, this is my first time posting here. I've never really worked with SQL Server much, but I'm in the process of learning. Please forgive my ignorance. Anyways, here's my dilemma. A user at the office uses Crystal Reports (I'm not too familiar with this program either). Crystal Reports pulls data from SQL Server. However, every single time it does so, it prompts her to log into the database. While there is no serious problem, this has gotten very annoying. She wants to be able to work without being prompted to log on to the database every single time Crystal Reports retrieves data. How would I go about doing this The office has no re ...Show All
Windows Forms TreeNode ScrollBar
Hello, I am relatively new to .Net (have only been using it for a little over a month now) and I am having a problem when trying to write an application that uses the System.Windows.Forms.TreeView user control. I have the occasional occurrence where I end up loading in excess of 100,000 TreeNodes into a TreeView. This of course can be avoided using lazy loading techniques and taking nodes off of the tree when their parents are not expanded, etc. The problem with this is there are a few edge cases where the data that a user is viewing in my treeview is loosely connected and therefore has many children under a single parent node. This means a ...Show All
SQL Server None of the Management Tools Installed...
I got SQL Server 2005 CTP (developer edition) as part of Visula Studio 2005 Beta Package. I removed all previous SQL server and Visual Studio stuff including all .NET framework versions completly. Then I installed SQL Server 2005 CTP first and selected all options (including all tools). I did not see any management tools (sql management studio or any other studio). I see all these cool services SQL Server, DTS, Reporting, Analysis etc., but no IDE to interact with what I can do with those services. Then I installed Visual Studio 2005 and it failed SQL Server Express which I do not want any way because I already installed SQL Server 2005. I a ...Show All
Visual Basic TextBox array
I am upgrading a program that I wrote in VB6 to VB2005 and am having trouble with textboxes. In the VB6 version, I used an array of textboxes to display and order text on screen according to it's priority. This was done in a module. The VB6 program takes a new message, checks it's priority (assigns the texbox color according to priority) and then adds it into the array according to the textbox color and arrival sequence of both itself and the existing array members. In the 2005 version data is processed by a module and passed to the form (because I can't process the text boxes in the module). The form then needs to display the data on ...Show All
SQL Server call report with datas updated
Hello, I use sql reporting services to show reports with url and to create snapshot with his web services. My problem is the following: - i show a report (linked to a database with data source and dataset) with an url like : http://srv/Reportserver/BOURGOGNE/Perso&rs:Format=HTML4.0 &rs:Command=Render&annee=2004&id=0580639E - i change data in the database - when a recall the report with the previous url, the data has not changed, and i must click on refresh button next the export button. - i would like that this refresh made automatically when i call a report. for more precisions, the property/execution on ...Show All
SQL Server Issue with SqlUserDefinedAggregate
I am using the code below but I am getting a "zero" result for dbo.AggredIssue('Test') user defined aggregate everytime that the query executes parallel processing and uses the "Merge" method. It seems that my private variable " private List < string > myList" gets nullified everytime it goes through the "Merge". I saw other people reporting the same issue in other forums, but nobody was able to provide a solution or explanation. See below a simplified version of my code (posted just after the queries) that replicates the issue. The query below works because it does't process the query in parallel. SELEC ...Show All
.NET Development Show JPG image
Hi everyone, I first would like to warn you that I'm a newbie programmer. So if I have left out important code for you guys to determine what I'm doing wrong, let me know. I am making a PocketPC application using C# and an XML file as a database. I would like to display the corresponding JPG image in a PictureBox, or somewhere on the main page. A sample of my xml file. The bolded line is the picture reference. < fragenkatalog > < ca_id > 4 </ ca_id > < ca_titel > head ap </ ca_titel > < ca_bildurl1 > kopf_ap.jpg </ ca_bildurl1 > < ca_disabled > 0 </ c ...Show All
