xabrooklyn's Q&A profile
Visual Basic out(Val("&H378"), Val(255)) command in VB.NET 2005??
out(Val("&H378"), Val(255)) This is used to send commands to the LPT Port. What is the alternative or replacement in VS.net 2005 Gr. There's no direct replacement in VS.NET for this GWBASIC/QBASIC code: in fact, directly accessing the hardware like this stopped working when Windows switched from real mode to protected mode (i.e. around Windows 3.0...). Microsoft KB article 823179 contains a reasonably useful overview of how to do serial/parallel port programming in VB.NET on modern versions of Windows. Depending on the requirements of the hardware you're planning to talk to, this may help you out. '//mdb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Billboard Question
I try to create a Billboard with a texture plus a written text. Everything works fine and see both, the texture and the text. When I move (transalte / rotate) my world the following happens: The texture remains more or less stable. If I rotate the world to the back, the billboard flips, so that I can see it from the back. The problem is, that the text moves out of the billboard. So, two questions: 1. What is wrong with the text Here is the render code: Dim sprflag As Integer sprflag = SpriteFlags.Billboard Or SpriteFlags.AlphaBlend Or SpriteFlags.SortDepthBackToFront ' use the matrixstack to position within the world drawArgs.matrix ...Show All
Windows Forms "additional information"
Hey guys, Would it be too hard to put a status indicator on the web site somewhere indicating the availability of the server. Ie, a red or green light representing the server status being available or not would be a nice feature. I for one have never got the Terrarium to connect to the server. I always get this message "The terrarium s ...Show All
Windows Forms ClickOnce deployment
ClickOnce works great from the development computer. It is failing from a third (user) computer! the appliction uses a Web Service on the deploying server. The application is installed but when I try to run the application I get a message saying the "target machine actively refused it." "System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: NO connection could be made because the target machine actively refused it." This appears to be a Web Service error not a ClickOnce deployment problem. BUT I can run the .exe on the client machine! This is very confusing. Thank ...Show All
.NET Development framework...which version?
Hello, I'm a newbe into development of software. I have started studing VB.NET. I have good skills on VBA which I used to develop MS Access based applications. On the past days I have downloaded the framwork 2.0 (beta). I was wondering...should I uninstall the old version of the framwork These guys and their 'hotfix' stuff take quite a bit of space but I not sure if the 2.0 has all the future in itself. I have tried to read hints on installation but I haven't found anything about this. Win XP home SP2 - Visual Studio 2003 Thanks, Rocco Thank you, since I'm about to start developi ...Show All
Visual C# how to code to enable application runs when WINDOWS starts up in c#.net 2005
some programs like msn messenger can run as WINDOWS startup, how to code in c#.net 2005 for this plz help Take a look at this tutorial ( http://www.geekpedia.com/tutorial151_Run-the-application-at-Windows-startup.html ) on how to add information to the registry to have your application start when Windows does. ...Show All
Visual Studio Team System Having a similar problem : All details are enclosed
We are trying TFS Beta 3 refresh solution. Everything seems works ok except the Reports node in the Team Explorer. If I run Visual Studio as "TFSSETUP" user - the problem is gone and I can see all the reports, but it is still exists with any user other than TFSSETUP. Also it is impossible to use button "Stop Refresh", it does not stops but changes mouse cursor into hourglass. Report services is running ok. I can see the reports via http://alnext/Reports/ link in IE (ALNEXT is our trial server). Everyone has assigned role "Browser and My reports" on Report Server. What is the catch Hi Brad, I ...Show All
Windows Forms change dataset-type on column
Hi, I have a dataset wich can have different types on one column dipending on the system it returns from. When I get the dataset from the system the user can search the column and this is handled with the filter-attribute. If the user make a search with '5' I return all the strings wich starts with a '5', but if the column-type is of integer the result returns alls values bigger than 5. Depending on the filterstring I get an error that i cant make the operation with the type int. How can I solve this problem best regards!! ...Show All
.NET Development Conditional Merging in DataTables
hi all, I having three tables in three different DataSets, i want to merge the first table of all three DataSets in one datasets, my problem is the conditional merging means, the rows which satisfies certain conditions only those rows should be merged. I wrote the following code: Problem in this code is it merge all the rows(no conditional merging) by conditional merging i mean that, if there is a column RecipeID in all the datatables then i want to merge only rows which have RecipeID = 1. but this code merge all the rows can some one tells me do the appropiate way to do that //initally i write this dirty code to i ...Show All
SQL Server Importing Decimal Data Types into SQL Server 2005
I have a simple Integration Services project and the problem is that decimal fields are importing as real (I'm loosing the digits behind the decimal point). The project contains a data flow task importing a flat file (.csv) to an SQL Server destination. My .csv file has two decimal type fields. Example: Field 1: 12345.67 Field 2: .123456 My database table that I'm importing to has two fields. The only way that I can get this data to import is to define the fields as "float" in both the text file and database table. I want the database table fields to be defined as decimal or numeric, not float: Field 1: decimal(7,2) ...Show All
.NET Development ConfigurationElement.Properties default implementation
By default, the implementation looks for ConfigurationPropertyAttribute on properties and caches ConfigurationProperty instances related to those properties into a static property bag keyed by the concrete ConfigurationElement type. But when it finds a ConfigurationPropertyAttribute on a property, it then checks whether the property type is also a ConfigurationElement. If so, it launches the same mechanic of caching ConfigurationPropertyAttribute for the property type. (See ConfigurationElement.CreateConfigurationPropertyFromAttributes that calls ConfigurationElement.PropertiesFromType) Caching the nested property type Configu ...Show All
Windows Forms Autoscroll
When I use AutoScroll, scrollbars never show up if the controls are outside of the container to the left or top of it, only to the right or bottom. How do I fix this Yes you can access autoscrollbars by using p/invokes to the Windows Shell functions. Check this link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/setscrollinfo.asp But this is not something you need to do know. Still you might want to check my post on richtextbox & autoscrollbars to see a sample on how it works: http://forums.microsof ...Show All
Visual Basic My.Settings is readonly/ changing Connection string
Hello, This is regarding a windows app in Visual Studio 2005, a VB Windows application. 've stored a connection string called strSQLConn in My.Settings. I'm trying to change the Server in code. I set a string variable called strConn to a new Connection string. My.Settings.Profile2006sql = strConn This produces an error saying that My.Settings is readonly. I'm missing something basic here. I don't know if this is the best way to change a connection string to toggle between a development server and a production server. My understanding is that if the setting Connection string is changed it will be used as the default for all the ...Show All
Visual Studio 2008 (Pre-release) Vista 5342 and the WinFX Feb06 CTP
Hi, I got a short question on WPF and Vista. I recognized (again) that a default install of Vista does not contain a "WinFX runtime". I heard on Channel9 and read in several blogs that WinFX will be an integral part of Windows Vista (of course, this makes sense!!!). Now why do I have to recognize that there is nothing at all and I have to install a runtime manually Will this procedure also affect the final release of Windows Vista Or did You only forget to ship the WinFX-part Thanks Mue I believe that you can install the runtime from "Add Windows Component" under add/remove program. The ...Show All
Smart Device Development Project conversion: Smart device -> Windows XP
Hi All. I've got an unusual problem, and I hope someone could suggest me a solution. Some times ago I created a WindowsForms PocketPC application with 87 businness-logic assembly references (C# class-library projects). All the forms are in the main application project, and all the business logic are in the referenced assemblies. All these projects are in the same solution, and I'm able to run the compiled application both on my PPC and on Windows XP because i didn't use special extensions or functionalities dedicated only to the compact framework. Now I've got to create an identical version of the application for the WindowsXP platf ...Show All
