Software Development Network Logo
  • Windows Forms
  • SharePoint Products
  • SQL Server
  • Visual C#
  • Visual Studio
  • Visual C++
  • VS Team System
  • Smart Devicet
  • Microsoft ISV
  • Game Technologies
  • .NET Development
  • IE Development
  • Audio and Video
  • Windows Vista
  • Visual FoxPro

Software Development Network >> darynk21's Q&A profile

darynk21

Member List

papadi
Puffarbubbole
mattdawg
mmoo9154
billqu
Hf Kok
onlyican
B_Walton
Madix_t
mastermemorex
Mark from NH
Sideout
Amos Soma
Raffaele Rialdi
GeorgeY
Ron Of Dynasty Software
Benjamin80
yhong
amitsingh18
SomE matriX stYles
Only Title

darynk21's Q&A profile

  • Software Development for Windows Vista Eventlog.writeevent call on Vista fails

    I have a program that I have written in VB that works fine on Windows XP. When I try to run it on Vista, it fails when it attempts to write to the eventlog. From the error dialog, it appears that writing to the event log is a security violation on Vista. Since it is important to be able to write to the eventlog, how do I configure Vista to allow my applications to write to the event log ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Window management and Alt-Tab

    Hello, On the Let's Kill Dave blog, it's stated that " There will be no references supported to System.Drawing and System.Windows.Forms". Does this mean that window management will be abstracted away in a cross-platform way If so, how will user activities like Alt-Tab (which typically leads to a lost device) be handled Many thanks, Peter The XNA application model creates a window for you on Windows and manages it. There is a GraphicsComponent that manages the GraphicsDevice for you. Use of both of these is optional though recommended. There are a number of events available to help track changes to the device: DeviceCreated -- Fired by the graphics component when it creates the device. This can happe ...Show All

  • Windows Forms display image from the internet in a PictureBox (C#)

    Hi all. Im trying to display images from the web into a picturebox control. when the form loads, i'd like for the pictureBox control to read a URL from a textbox control and load the image. i found the VB equivalent code to do this but im a newbie and cant translate it into C#: PictureBox1.Image = New System.Drawing.Bitmap( New IO.MemoryStream( New System.Net.WebClient().DownloadData(TextBox1.Text))) // Assumes there is a textbox called textbox1 and a picturebox called picturebox1 on a form. Textbox1.text should be the URL of the picture. Is there an easier way to go about this Any help is appreciated. Thanks in advance Jason thanks again, im getting an error now when i try to build the solution: ...Show All

  • SQL Server Install Components for my OLAP Application on client machine (OWC11, msolap9.0, MSXML 6) - for admin users-> no problem, but...

    Hi, i have a problem by installing my application by a customer, i think some rights should be given for a normal user before he can use my application. But I don't know where to search: Where I can look what happens on installing this components: OWC11, msolap9.0, msxml6 Are there some registry entries written, or are there created some directories Is there somewhere a referrence where I can find answers on this questions My problem: Customer has no rights for installing this components, so i logged on his computer as admin and installed all. But if I log in later as a normal user, my application doesnt work. Thank you in advanced for the answers, Mastroyani You go ...Show All

  • Visual Basic Modifying datagrid doesnot update the dataset

    Hi folks, I populated a Sql Server table into a datagrid using SqlDataAdaptor and dataset, which works fine. What I want to do now is to update the table when the data in the datagrid is modified. I added these 2 lines, but doesn't work, ds.AcceptChanges() da.Update(ds.Tables(0)) It seems that changes to the datagrid doesnot update the dataset. Any comments appreciated. Thanks! do you get any errors if so what are they have you tried just: da.Update(ds) usually if the datasource of the datagrid is given: theDataGird.DataSource = ds.Tables(0).DefaultView and you modify values in the datagrid, usually it is automatically commited to the dataset, then call ...Show All

  • SQL Server SSIS Transactions 101

    I want to truncate a table (remove all of its data) using an "Execute SQL task" and then populate that table using a Data Flow task. In case of failure, I want to "rollback" the table to its state prior to its truncation. Can this be done using SSIS Transaction support or is that support aimed exclusively at sql-based flows TIA, barkingdog barkingdog wrote: "Here was me thinking you could only run transactions either within the same Execute SQL". If I understand this properly, then I really can't do what I want to ( Execute SQL task -> non-sql Data Import task) as these operaitons will not fit in a single Execute SQL task. Maybe, SSIS, SP2 ...Show All

  • Software Development for Windows Vista Ownership supposed to be released during unload?

    I thought that the workflow is supposed to unlock an instance when it is unloaded yet I am having the following problem (with the July CTP): I have a web form application that hosts the WorkflowRuntime and loaded the SqlPersistanceService with an ownership timeout of (1,0,0) set in the constructor. I create a new StateMachineWorkflowInstance and then wait for it to be idled (where I call tryunload()) then persisted and unloaded. Then I exist the application. When I run the application again it iterates throught the persisted workflows and attempts to rehydrate them using new StateMachineWorkflowInstance(wfRuntime, wfInstance) but I get an Ownership Exception! Is there a bug, or am I missing something. ...Show All

  • SQL Server SQL2K SP4 gives error 1706 creating multi-statement table-valued function names beginning with "sys"?

    Hi all, I've created a number of tables, views, sproc, and functions whose names begin with "sys_", but when I tried to create a multi-statement table-valued function with this type of name, I got: Server: Msg 1706, Level 16, State 2, Procedure sys_tmp, Line 9 System table 'sys_test' was not created, because ad hoc updates to system catalogs are not enabled. I had a quick look in this forum for 1706 (and on Google) but couldn't find anything. Does anyone know for certain if this is a bug in SQL2K Thanks, Jos Here's a test script: /* ---------------------------------------------------------------------------------------------------- T-SQL code to test creation of three types o ...Show All

  • SQL Server Textcopy.exe in SQL 2005???

    I need to import about 600 pictures into my table I can not find textcopy in sql 2005 has this been replaced and if so with what Thanks That's a SQL Server 2000 sample application. It is also a DBLib sample. DBLib is no longer supported with SQL Server 2005. I have no idea if there is an updated sample, you'd need to look through the sample applications that ship with SQL Server. ...Show All

  • .NET Development Book here says MSIL does not get fully compiled to native?

    One of the earliest books in C# was "C#: The Complete Reference" by Herbert Schildt. His book suggests in the beginning that the MSIL code gets compiled to native "as needed," so it basically suggests it does the same thing as Java. Later, I remember reading that Microsoft was insisting that all of the MSIL code gets compiled to native, which would also mean there's no runtime processing of the garbage collection etc. The reason why I doubt Microsoft in this case is because the front of the cover of this book has a quote from Prashant Sridharan, the the C# Product Manager from Microsoft, saying that this is a must-have resource for C# programmers. Doesn't this mean he would have reviewed the book first Why was he okay before with the bo ...Show All

  • SQL Server Error when issuing BACKUP LOG mydb with truncate_only

    Hi, Following error appears in the SQL Server error log when I execute BACKUP Log db with truncate_only using a stored procedure. The stored proc I am using is as follows: CREATE procedure spm_tranlog as declare @DBName as Varchar(120) select @DBName = DB_name() dump transaction @DBName with truncate_only GO There are data import processes running in the night, before starting the processes we are executing spm_tranlog procedure to clear the transaction logs. The following error appears in log after executing the spm_tranlog: “BACKUP failed to complete the command exec spm_tranlog” This always happens after weekly server maintenance tasks. The scheduled main ...Show All

  • Visual C++ Suppressing LNK4204 and or LNK4099 errors

    Here's the deal. I have a third party library from a company who doesn't exist anymore. When I link to this library i get a bunch of LNK4204 and LNK4099 warnings. It appears that /IGNORE:4099 doesn't work in the linker anymore. I thought I could strip out the debug stuff with 'rebase' but that doesn't work either. Does anyone have a solution to this I've seen it addressed in the archives but with no solution. Don't respond with 'clean your project and rebuild' because that is not the issue and will not work. The issue is that the library is looking for a pdb file that doesn't exist because I do not have it and cannot ask for it nor can I generate it. Thanks in advance. I'm sorry you haven't gotten a reply ...Show All

  • Visual Studio Add a toolbar to the dsl designer surface

    Hi all, I need to add a toolbar to the design surface of my dsl designer. Something similar to the code window. Anabody has a clue on how it can be done. Freddo Hi Freddo, This is essentially done in the same way its done for any VSIP package and isn't DSL Tools-specific, so the docs are in the main VS SDK docs, not our sub-section. http://msdn2.microsoft.com/en-us/library/aa405440.aspx In short, you add a toolbar declaration to your CTC file with a set of Buttons on it, add a matching set of IDs and command handlers to yoru CommandSet class and update the counter in the ProvideMenuResource attribute on your package class. ...Show All

  • Visual Studio Express Editions Cant compile when using ImageLocation

    I want to move an image whitin an imagebox, using this code i get an compile error; " Cannot implicitly convert type 'System.Drawing.Point' to 'string' ", i don't get it! This works fine if i for example replace " pictureBox1.ImageLocation " witch "this.Location" or "pictureBox1.Location" private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { mouseOffset = new Point(-e.X, -e.Y); } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Point mousePos = Control.MousePosition; mousePos.Offset(mouseOffset.X, mouseOffset.Y); pictureBox1.ImageLocation = mousePos; ...Show All

  • Visual Basic move, swop, sort

    hello i have written a piece of code, and have obvioulsy done soemthing wrong as it's not working right. it is supposed to sort a list of names and scores into order, but it just repeats the last line, and i don't know why. i'd be greatful for any words of wisdom form anyone out there my code is: Dim Players() As String Dim total, score, handicap, i,HoleNo As Integer Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Listdisplay.Items.Add( "NAME" & Chr(9) & "HANDICAP" & " " & "TOTAL" & " " & "SCORE" ) Players(0) = "Andy" h ...Show All

©2008 Software Development Network