WilliamDGJones's Q&A profile
Visual Basic Help with simple task...get data from registry into a text box on a form
I am trying to pull data from the registry and output in into a text box on a form. I have the pull part: Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim readValue As String readValue = My .Computer.Registry.GetValue _ ( "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" , "DhcpDomain" , Nothing ) How do I display the readValue in a text box or label Thanks for any help. I know it should be easy. Form1.Textbox1.Text = ReadValue will put the contents of string Readva ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I have some artifacts with fog
When I use Exp or Exp2 fog in vertex mode I have a strange effect with big triangles when I rotate the camera. I concluded that the fog calculations are wrong. When I use Linear fog all is ok. Small triangles also looks as they must. Do you have some ideas what is the problem Do you have range fog enabled It sounds like when you're using linear fog you're getting range fog, but when you using exponential fog you're not. Without range-based fog enabled the amount of fogging depends on the distance between the vertex and the near clip plane, while with range-based fog it depends on the distance from the viewpoint. If you don't use ra ...Show All
.NET Development Type.GetType
What do I do about when Type.GetType fails for types like System.Xml.Serialization.XmlElement I have created an addin that I want to be able to see what are the attributes for a given class but it is failing on this one all the time. If I need to load the assembly first how do I look at references for a ProjectItem so I can load the assembly if needed before calling GetType Yes, if GetType returns null you need to then load the assembly. If you are implementing an MSBuild task you can access references from build engine API's. If you are outside of MSBUild runtime then you need to process the project file yours ...Show All
SQL Server Measures that depends on other measures
I want to have a measure that depends on other measures so have I understood it correctly if I sum up my options like this: A) I can make a calculation where I can basically do anything but it gets evaluated every time at querytime. This calculation can either be per query (using with member), per session (create member) or intrinsic to the cube (under calculations) but in each case it's still evaluated at querytime. B) I can create my dependent measure and set it's measureexpression. This way the answer is permanently stored in the cube but I can only use simple binary exps like MeasureA*MeasureB C) I can create my measure with som ...Show All
.NET Development delete a row from an xml file using DataView
I have the following code that is deleting a row from an dataview, then writing the dataview to an xml file: string filePath = Server.MapPath(@"~/Home/XMLMenus/user_favorites/someFile.xml"); DataSet ds = new DataSet(); DataRow dr; string someValue = "someValue"; ds.ReadXml(filePath, XmlReadMode.InferSchema); DataView dv = new DataView(ds.Tables[0]); dv.Sort = "someColumn"; int i = dv.Find(someValue); if (i != -1) dv.Delete(i); ds.WriteXml(Server.MapPath(@"~/Home/XMLMenus/user_favorites/someFile.xml"), XmlWriteMode.IgnoreSchema); This works fine except when it gets to the last record. W ...Show All
Windows Live Developer Forums Messenger Development APO
Hello Folks I am willing to integrated an existing webbased system with MSN Messenger.I am willing to use MSN messenger for notification purpose. can any one guide me regarding development API Thanks Adnan You can have a look at the activity SDK in the messenger developer center . ...Show All
Visual Studio Team System Where is TFS Admin access?
I just installed TFS for the first time and can connect to it from VS.NET 2005 and create a team project. Very cool. I went to "Start > Programs" looking for the Admin interface to the server component of TFS Server but didn't even see a menu entry for it. Is the server part of TFS only accessible from inside the .NET IDE TIA, Bill There are command line tools available on the server used for administration tasks. Help can be found in the documentation. In addition, there is a command line tool for source control, which is installed along with Team Explorer (tf.exe) m ...Show All
SQL Server sql server 2005 reporting service installation failed
When I installed sql server 2005 ctp June today, the reporting services component installation failed. My computer has sql server 2000 with reporting services including all service packs. The error message is: -------- The specified Report Manager virtual directory can't be used for installation. It is already in use by another application. To proceed, enter a unique value for the virtual directory. For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1187.07&EvtSrc=setup.rll&EvtID=SQLSetup90&EvtType=29537 ------- I don't want remove sql server 2000 reporting services. B ...Show All
Smart Device Development How to load input files on Emulator
I am trying to build a simple test app that loads a text file via the SmartPhone 2003 SE Emulator, however I can't figure out where to store my input files on the desktop so that the Emulator can see them. Any help appreciated. The directions were for VS2005 DE for configuration of the running instance of the emulator. There are three emulator configurations that exist - global, local saved and instance. The Global configuration is what you set under Tools\Options\Device Tools\Pick Platform\Properties\Emulator Options. The global configuration will be applied to an emulator if there is no local saved state. If you have created a local s ...Show All
.NET Development Problem with OleDb...or sqlserver...
Hi, The reason i am positng this is because i am having an error using SQL SERVER 2000 with OleDb on .Net 2005. This is the situation: 1. Database running on a server. 2. Two clients connect. 3. There's a table that represents a tree like this: -------------------- GROUP groupID parentgroupID Name -------------------- 4. Both clients access the tree. One of them deletes a group and commits. 5. The other client, without having the updated tree, drags a node below the deleted node (this will cause the selected group's parentgroupID to map the new parent node) and UPDATEs the node. This ...Show All
.NET Development How do I return typed datasets from a web service (.NET 2.0) which will appear in the 'data sources' pane of a Windows progr
I am using .NET 2005. I have created a web service which I have added as a 'web reference' to a Windows program because I want it to consume the data from the web service. All of the Microsoft documentation tells me that if I return typed datasets from a web service then the datasets will appear in the 'data sources' pane of the Windows program (also .NET 2005) and I can use the data as if it was dealing with local data. However I cannot find anywhere in any documentation, the way of defining the methods in the web service to achieve this. I have created a typed dataset in the web service (using the 'dataset' design surface with a table ...Show All
Visual Basic Moving an imagebox
Hi I have a form and on that form is a imagebox, how can I make the image box move from the left of the form to the right of the form Add a timer to your form. In the timers event move the imagebox a little to the right. Disable the timer when the imagebox is at the other side of the form. ...Show All
Visual C++ Problem Using ExitWindowsEx
Hello, after getting an answer about how to close the system, I have a different problem. I wrote the following code: #include "stdafx.h" #include <windows.h> int _tmain( int argc, _TCHAR* argv[]) { ExitWindowsEx(EWX_FORCE, SHTDN_REASON_FLAG_PLANNED); return 0; } I get the following errors: >error LNK2019: unresolved external symbol __imp__ExitWindowsEx@8 referenced in function _main >fatal error LNK1120: 1 unresolved externals With Thanks, Gal Beniamini ...Show All
Windows Forms How to import from .xls file to dataset?
Hello everybody, i have a dataset (with one table) and a dataGrid in my form. I need to import data from 4 columns from a example.xls file to them. I tryed as it said in http://support.microsoft.com/ kbid=302096 article, but i get an error 'error:old format or invalid type library. line:Microsoft.Office.Intercop.Excel' when i press 'button1'. Help me, please. Thank you for your answer, but in the project that i need to import data from .xls file, i should not open the file each time i want to import... Becouse the project is for people who has only a little knowlidge, and i need them to import the data im ...Show All
Visual Basic ERP System Interface sample screen.
Is there any websites that can provide sample screen of common ERP system You can register for Siebel product demos at: http://www.siebel.com/crm/demos/reg-solutions-demo.shtm These demos show several CRM/ERP sample screens. ...Show All
