slbteam08's Q&A profile
Visual Basic Adding row to a data Table
I've been working on this for about four hours now and I'm unable to get things working. I want to add row to an data Table. I continuelly get the message "Data row already belongs to this table" What am I doing wrong here sample below: Dim AstroDataSet As New DataSet( "AstroData" ) Dim Astrobl As DataTable = AStroDataSet.Tables.Add( "AstroTable" ) Dim Rec_YearColumn As DataColumn = New DataColumn( "Rec_Year" , System.Type.GetType( "System.Int32" )) Dim Rec_MonthColumn As DataColumn = New DataColumn( "Rec_Month" , System.Type.GetType( "Syst ...Show All
Visual Studio Express Editions error [weird]
well i was about doing my everyday business when suddenly my C# common language (w/e that is) messes up, it doesnt support the font 'Arial' anymore, when i goto debug it'll say something like 'panel1 does not support font arial', changing the font fixes the problem Another problem this error causes is any other app written on C# that people have sent me does not work either, and i bet its for the same reason I repaired .net 2.0 using the installer but that still didnt fix the problem Just to let you know, i also didnt have the Italic setting on when writing this have you tried to reinstal your arial font a had the same problem ...Show All
Visual C# VS 2005 RAM Requirement
VS 2005 is great, but I wonder if upgrading my 1.5MHz notebook from 512Mb RAM to 1024 would make a noticible difference in speed. Currently it is sometimes sluggish. (Talking about the IDE itself, not compiled programs.) You will only notice diffence if your current RAM is full most of the time. You can check this in the Task Manager at the Perfomance tab. But a little bit extra RAM doesn't harm your laptop, you will notice the difference when you have more application running at the same time. ...Show All
Visual Studio Team System Developing on Same Server as Team Foundation Server
can anyone just asnwer my question I have asked in two different posts versions of the same question and so far no answer.... can I put an asp.net web site and team server on the same server. for example: team.domain.com 192.168.1.10 port 80 newweb.domain.com 192.168.1.10 port 80 and then from a client pc with VS and Team client installed edit the web project and have a team project that publishes builds to that "newweb" for example I normally have to put frontpage server ext. on a remote server to edit files and update the web site. can team system hold the code files and publish them to the iis web site how do I do that! that's ...Show All
Visual Basic Having trouble getting a correct value of textbox3
Hi Im using VIsualbasic2005 Express (its .net of course ) Dim intText1 As Double Dim intText2 As Integer Dim intText3 As Double intText1 = Val(Frm3.TextBox1. Text) 'Here is says Conversion from string "" to type 'Long' is not valid. intText2 = Val(Frm3.TextBox2. Text) intText3 = CDbl(Val(Frm3.TextBox2. Text) * Val(Frm3.TextBox1. Text)) Frm3.TextBox3.Text = intText3 Textbox3 is still 0 When textbox1 = 0.04 and textbox2 = 456 the problem is the Third teextbox3 is just givine me 3 and not the value of Textbox1(0.04) * Textbox2(400) Actually, what my other reply did not a ...Show All
SQL Server Instead Of Trigger considerations for Multi-Row Insert
I would like to know how to, if at all possible, to reconstruct the following trigger as to be able to handle multiple row insert when a single insert command is used - because the trigger will only be called once...I'm not familiar and don't know anything about cursors and i've read that its not the best way to go. TRIGGER ON childtable INSTEAD OF INSERT AS BEGIN DECLARE @customkey char(16); DECLARE @nextchild int; DECLARE @parent int; DECLARE @date datetime; SET @date = getdate(); SELECT @parent = parenttable FROM inserted; SELECT @nextchild=count(*)+1 FROM childtable WHERE parenttable = @ ...Show All
Visual C++ Linking problems using Visual Studio.net 2003
I have written a program that needs to use DirectX libraries. I am using Visual C++.net 2003. I have compiled it successfully. When I go to "Debug" on the menu bar, down to "start", it says that these project configurations are out of date and would you like to build them. I click "yes" and it comes up with linking errors: Linking... draw.obj : error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileA@12 referenced in function "int __cdecl DoInit(void)" ( DoInit@@YAHXZ ) it gives other LNK2019 errors and one LNK1120 error: Debug/Draw.exe : fatal error LNK 1120: 6 unresolved exte ...Show All
Visual Studio Team System Microsoft Project Template - MSF Agile
Hello, I will begin a new Development next week and my customer is waiting for the Project Plan. To make this plan I'm searching for a Microsoft Project Template for MSF Agile. I'm not using Visual Studio Team System right now but I will use it in the future (with MSF Agile) and I think that use a MSF Agile Project template will be a good first step. I found one in the MSF Agile .zip but it's empty. Thanks! That's because the project plan is tied to the work items associated with a team project. Absent a team project, there are no items to include since we can't link work items to the project plan unti ...Show All
Visual Studio Express Editions stacking text in a text box
hi in my form i have two text boxes, the first is where you enter the message and the second is where the message is displayed but i want it so when you send a new message it doesn't erase the las one out of the display box and stacks it oh well that explains it i was using TextBox2.Text = TextBox2.Text + TextBox1.Text, when i do it it puts the new message on the same line, how do i move it onto the next ...Show All
Smart Device Development Alternative for FindWindow ?
Hi, I hope some here can help me out. I want to normaly exit an external application. I've found ways to kill it, but that leaves a tray icon available. So i thought to have found a way to use the SendMessage or PostMessage (all listed in the function) I tried it on the Calculator on the pocketpc and it works great (see below) The problem: The application i want to exits lives as a tray icon, and is NOT listed in te "running applications" so (i assume) i can't use the FindWindow. Is there any other way to find the handle i.e. FindProcess (if this exist, how do i declare the DllImport) public void quitCalculator() { const int WM_QUI ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to set vertex color prior to DrawPrimitiveUP call?
I'm using a DrawIndexedPrimitiveUP call to render an object and would like to set the same color for all the vertices but leave the option of varying the color each frame. The vertices are unlit. Just a simple single-colored object. I'd like to use something simple (similar to OpenGl) like: g_pd3dDevice->SetFVF( D3DFVF_XYZ ); g_pd3dDevice->SetDiffuseColorForThisPass( colorForAllVerticesInThisCall ); g_pd3dDevice->DrawIndexedPrimitiveUP( ... ); I'd rather set the color in the pipeline rather than looping through the entire vertex array and setting the color there. The idea is to be able to change the vertex color for ...Show All
Visual Basic Mirosoft Agents in VB
Hi, I have made a simple script to make 'Genie' (a Microsoft Agent) talk and do some actions. Here is the code: strAgentName = "Genie" strAgentPath = "c:\windows\msagent\chars\" & strAgentName & ".acs" Set objAgent = CreateObject("Agent.Control.2") objAgent.Connected = TRUE objAgent.Characters.Load strAgentName, strAgentPath Set objCharacter = objAgent.Characters.Character(strAgentName) objCharacter.Show objCharacter.Play "GetAttention" objCharacter.Play "LookRightReturn" objCharacter.Balloon.Style = 0 objCharacter.Speak "Hello, My name is Genie, how are you " objCharacter.Speak "I am your personal assistant s ...Show All
Visual Studio Express Editions How can I kill Selected process ?
Hello, this code get a list of runing processes : Process [] pArry = Process .GetProcesses(); foreach ( Process p in pArry) { string s = p.ProcessName; s = s.ToLower(); listBox1.Items.Add(p.ProcessName); } so how can I kill the selected processName from listBox1 Best Regards Try something like- Lets say the user clicked a listbox item and you get the name of the process.Lets say it is selectedProcess . Process [] pArry = Process .GetProcesses(); foreach ( Process p in pArry) { string s = p.ProcessName; if(s == selectedProcess) { p.Kill(); break; } ...Show All
Visual FoxPro REPORT error-invalid path
i have a button in a form and when its pressed it creates some select sqls which have into table and overwrite an existing table.then from the table i create report..from.. ,then i update the report and finnally i report form.the problem is that if i press the button->see the report->close the report->press again button->i get a message "invalid path or file name" if i close the program and reopen its the same press the button->see report->close the report->press again button->i get a message "invalid path or file name" so i can only see the report once and then close and open the programm again to see the report seco ...Show All
Visual Basic How to halt a program???
Let say i have two program called program A and program B, i run program A, but inside program A, i use [call shell(C:\....\programB.exe)] at the 2nd line of my codes in program A, how do i stop program A at 2nd line, until i finished running program B then only continue execute the rest of the code from 2nd line in program A Please help, if you dun understand wat im saying above, u can ask ...thanks a lot!!! You can use Process.Start from process A to start process B. This method will return a new Process object. You can then call WaitForExit on the returned process object to block process A until process B is done. Best r ...Show All
