drazaloth's Q&A profile
Visual Studio 2008 (Pre-release) Can you define keyboard shortcuts when running XBAP.
Don't know if security sandbox limits ability to define keyboard shortcuts. Keyboard shortcuts (which would be implemented via CommandBindings) are available in the internet sandbox. ...Show All
Visual Basic Is at website...
I was wondering how to Check if my webbrowser control is at a cirtain page... My problem is that that page includes a "sessionID" which means a simple IF page.url = needed_page then wont work... Does anyone know the answer try on of the following: page.url.AbsolutePath page.url.AbsoluteUri page.url.Query ...Show All
Visual Studio Express Editions Code migration problem from java to Vc#
hi, I've converted my java code to vc # .net using the Java Language Assistant Feature available in visual studio. Its a window appication...But, i couldn't see anything happen if i execute the vc# file.But,there were no syntax or logical errors in the code.. please help me regarding this issue.. Just because a program compiles, does not mean it will do anything, or the specific thing you hope. Your program should have a static void main method. This method should create an instance of a form and show it. Find the method, set a break point and step through to see what's going on. ...Show All
Visual Basic Newbie with User Control Problem
Hi I recently built my first user control, a few weeks ago, and all of a sudden today I started having the following problem... When i make changes to the user control, and hit F5 on my test project, the changes are not appearing (it's as if an old version of my code keeps running). If i publish and run the executable, the changes are there, but if i go back to the designer, my F5 still seems to be latched onto an old control. I wasn't having a problem until today. I have no idea why this stopped working all of a sudden. The only strange thing I really did today was delete a setup1 project that was in my solution. I hope someone can ...Show All
Visual C++ LNK2005 - delete already defined in nafxcwd.lib
I try to compile a VC6 program with VC7 (Visual Studio.NET 2002) and I get following link error: error LNK2005: "void __cdecl operator delete(void *,int,char const *,int)" ( 3@YAXPAXHPBDH@Z) already defined in nafxcwd.lib(afxmem.obj) In my case the problem was caused by static-linking the MFC-DLL. After setting Configuration Properties -> General -> Project Defaults -> Use of MFC to "Use MFC in a Shared DLL" the LNK2005-Problem disappeared. The solution given in the article " A LNK2005 error occurs when the CRT library and MFC libraries are linked in the w ...Show All
Windows Forms adding listbox content to certain lines of a text file
Hi Everyone, I was working on this app for a while tonight and i was wondering could someone help me. I am making a app where you drag and drop files into the listbox and the filename shows in the listbox i have got that part out the way now i am on getting the filenames in the listbox to be appended to certain lines of an .ini file (for example like listbox entry 1 will go on line 32 so on and so forth.) here is what i hvae so far any and all help is appreciated button2 is where i want the process to occur Click Here to See picture using System; using System.Collections.Generic; using System.ComponentModel; using Sys ...Show All
SQL Server AMO: refresh DSV and accept changes..
I tried the sql server OLAP newsgroup, but without success... this is fairly urgent, so will try in here: I am stumped on this, how can I programmatically do what can be done in Visual Studio by: 1. Right clicking inside datasource view 2. Choosing refresh 3. Accepting the changes I am trying to get new fact table columns into the DSV, obviously without doing the manual steps above. I have tried dsv.Refresh() and dsv.Update() but it is not as simple as that or the sequencing is incorrect (or, most likely, I am looking in entirely the wrong place). Thanks for any help. This refresh of ...Show All
Visual Basic Multiple Icons In An Assembly
I am currently writing a program in VB .NET that requires a file type - .fol - to be associated with it so that people can simply double click on the .fol file to get my program. My problem is that i want a seperate icon for the .fol file other than the one my assembly has. What i want is to be able to somehow put more than one icon into the assembly - other than the assemby's icon - and link the default icon for the .fol file type with the second or third icon in my assembly, so that i don't have to include a seperate icon files. Like the way Dreamweaver has it's icons all its main assembly - Shown in THIS image. I have tried many tech ...Show All
Windows Forms datagridview delete removes bound datarow instead of marking it as deleted
Hi, I've bound a datatable to datagridview. When i delete a row (select row, press <del>) the corresponding row is removed out of my datatable. I would like to have it marked as "deleted" instead of being removed so i can manually update the db using the datatable. What am I doing wrong Thanks, Nick Found it! It seems to work when i set the readonly property in my column property to true. Weird, can anyone explain it ...Show All
Windows Forms Losing data when binding to a Combo Box control
Hi, I am trying to bind a dataview with a combo box control and i am getting a real strange behavior. Initially the dataview has 11 rows. Then I am setting a row filter and the row count reduces correctly to 10. After that I am setting the Data Source to the data view and surprisingly the row filter changes to something else. This new row filter effectively retrieves only the first row in the data view and thus my combo box control has only one item. dv.RowFilter = "DATA_TYPE <> 'DATE'"; - No of rows in dv is 10, before the row filter it was 11 ddlFields.DataSource = dv; - After this step ...Show All
.NET Development Accessing Blob Type data from Oracle Database
Hi, I was wondering if anyone can help me with this: Using: Oracle--9i, .Net, Data Application Access Layer for Oracle from GotDotNet I am trying to call a stored procedure that returns a blob as output parameter. The call goes OK expect I can not read the value out of the blob parameter and when i try to read it i get the following error "ORA-00942: table or view does not exist". I am not sure how to do it. I tried to search it but all the code i see online is to through query and data reader nowhere i could find where the Blob is returned as output parameter from stored procedure. If anybody can let me know th ...Show All
Visual Basic how to create a new txt file at midnight each day and write to it
Hello I was wondering if somebody could help me with creating a new txt file each day at midnight with the name in the format of ddmmyy_hhmmss.txt also how to add text to it, well maybe i can do this i think, but maybe it would help confirm this bit. ikind of have the following so far, not much i know, thank you all in advance Private Sub OpenFile() ' filename = "C:\CRAPS\txt_files\" & Format(Now, "_MMMddyy_HHmmss") & ".txt" end Sub Here's how to append to a file. Dim inputString As String = "This is a test string." My.Computer.F ...Show All
Visual C++ visual c++ dll
just wana ask.. is there any dll file in visual c++ dir of the function "compile" i nid to use it so that in my application in vbnet i will be able to compile a .cpp file and generate those extension like what the visual c++ can generate... or is ther any ways of doing it currently i am doing a c++ compiler (sort of) in vbnet but the problem now is just the compiler thing.. (coz i wana generate all those extension like what visual c+ could do) please help thanks... cl what does that mean (*sorry for the short-info on that as i am new in visual C++) do u mean that in visual c++, the compile statement of the progra ...Show All
Smart Device Development How to manages two threads by time
Hi all, I'm using the to threads A,B. B needs the result be accepted from A. B cann't start till A finish with a period of time, otherwise it can continue. The serario is : 1. A.Start 2. wait for T seconds. 3. if T be finished then B.Start. Please help. Regards... you could define a boolean which you set to be true when A starts, set it to be false when A finishes, and only start B when it is false... dim blnAisRunning as boolean = true A.start do while blnAisRunning = true Thread.sleep(1000) loop B.Start ~~~~~~~~~~~~~~ ThreadA does som ...Show All
.NET Development OPENXML: Error inserting xml into SQL Server 2000
I am having trouble inserting xml data into SQl server using the OPENXML. This is the SP I have. When I pass small XML content the Insert works but not when i have a bigger XML file. ALTER PROC uspW3TeamList @doc text AS BEGIN DECLARE @idoc int EXEC sp_xml_preparedocument @idoc OUTPUT, @doc INSERT INTO SportsSchedule (TeamName1,TeamName2,GameDate,GameStartTime,InsertedOn) SELECT team_name1,team_name2,game_date,game_start,getDate() FROM OPENXML (@idoc, '/SportsScheduleApi/SportType[type=*]/Schedule',2) WITH (team_name1 text 'team_name1',team_name2 t ...Show All
