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

Software Development Network >> Josip Orec's Q&A profile

Josip Orec

Member List

JesusReagan
Byenary
Harvey_Birdman
John Sobernheim
SouLDragooN
Batkuip
a. Nova
Daffodils
nbrege
Jo-Jo
Jim Carnicelli
missa350043
Raffaele Rialdi
vitich00
Sridhar Kalyanaraman
pixelord
BillR2
JotaC
cooldoger
Matrixchyah
Only Title

Josip Orec's Q&A profile

  • Visual Studio Express Editions How do i get the printpreview to recognize my txtDocument.Text

    Re: How do I get the print preview dialog to show me the txtDocument.Text Was this post helpful Private Sub PrintPreviewToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPrintPreview.Click ppdPreview.Document = txtDocument.Text ppdPreview.ShowDialog() End Sub do you see where it says txtDocument.Text This is a textBox that implements the text to be previewed as the dialog. But my source code does not recognize this document. I need a new statement to recognize this txtDocument.Text to be previewed....   To quote part of my secon ...Show All

  • SQL Server Set Foreign Key Checks off in an insert script

    I would like to insert data (via script) in tables without any foreign key checks. In MySQL the corresponding command is: SET FOREIGN_KEY_CHECKS = 0; [insert queries] Is there any equivalent in Transact-SQL respective command of SQL Server 2005 database engine Best regards, Wolfang The equivalent syntax is in the Alter Table command.   Alter Table myTable NOCHECK Constraint All Insert ... Alter Table myTable CHECK Constraint ALL   ...Show All

  • Software Development for Windows Vista DelayAvtivity in whileActivity

    I have a a voting application. The users have 24 hours to vote on a certain matter. I have the a listen activity inside a while loop that count all the votes. The whole voting process must stop after 24 hours. I can not place a the listen activity inside another listen activity and when i place the delay activity inside the while activity it is resetted every time that the loop goes through. Any ideas on how to do this workflow The two options I can think of are using a Replicator with a Listen child or using a StateMachine. For the replicator option you would initialize the InitialChildData with all the users that could vote and a separate instance of the Listen will be created for each user. W ...Show All

  • SQL Server ODBC Error: SQLState 28000 & Server Error 18452

    We have an application that connects to SQL 2005 thru ODBC with the following string: driver=SQL Server;server=server1;database=db2005;uid=serveruser;pwd=pwd1; When our administrators login on the workstation the application works well. But when ordinary users login they get the following error. (We only have 1 domain) SQLState: 28000 SQL Server Error: 18452 Login failed for user ". The user is not associated with a trusted SQL Server connection. Then the standard SQL Server Login window pops up asking for the Login ID and Password. On the window the 'Use Trusted Connection' is checked and the name of the user on the workstation appears on the LoginID. What we do is uncheck the 'Use Trusted Connection' then login ...Show All

  • .NET Development Why the change to Managed code and why not provide an Unmanaged (Native) option for VB.Net?

    While I know any program can be broken with enough effort. It seems to me that Microsoft's change to the .Net format has just made life much easier for code breakers while making it harder for Individuals writing code to sell small programs to protect their code. I used Obfucation of code with code I have written since the early versions of basic. But now it takes nothing to decompile the code and then work on figuring it out. While programs compiled in Native code it took much more to decompile and break the code where small specialized programs usually were not worth the effort to break. Why doesn't Microsoft continue to provide native code compilation for VB.Net programs to allow small business / Self Programers the same level of code ...Show All

  • Visual C# Passing variables or objects?

    I am fairly new to programming in C# but I have been developing in T-SQL for some time. In SQL there is no such thing as objects so we pass everything with variables. I have seen sample C# code that passes data as a variable and other times as an object. My question is which one is better, for what reason and how would I know when to use one or the other. An example is below. Thanks for your help. Private void Sample1() { Int someInt; String someString; someInt = 1; someString = “test”; DoWork(someInt, someString); } Private void Sample2() { SomeObject someObject = new SomeObject(); someObject.someInt = 1; ...Show All

  • Smart Device Development Reinstalling CF 2.0 SP1

    So, I tried to install the new .NET 3.0 SDK, which suggested that I delete CF 2.0 SP1 so that the installer could install an updated version. Thinking that there is a 3.0 tie-in to CF, I deleted the CF 2.0 SP1 from my PC (which of course warned me that this is areally stupid thing to do, but I did it anyway). Long story short, the SDK will not install on my PC, and now (at least for the short term) I need to reinstall the CF 2.0 SP1. How should I go about doing so Thanks, Joel Hi Joel I'd do the following: Do a 'repair' install of Visual Studio 2005. Then install the .NET CF 2.0 SP1 patch ( http://www.microsoft.com/downloads/details.aspx familyid=7BEFD787-9B5E-40C6-8D10-D3A43E5856B2&displaylang=en ). Or: install the .NET ...Show All

  • .NET Development Finding a record

    Why can it be simple when it can be complivated :) I am trying to achieve something that was so simple to do with ADO recordset. Lets say I want to find a record that starts with a value typed by user in a textbox. Find method of DataTable will allow me to search in a particular column, but only for a full match. Also, does ArrayList have this search functionality Lets say that we have bound datagrid to arraylist, and want to search for a row that its column value starts with some value DataGrid cant search in its data, as far as I have searched in its properties and methods... hi, I am not asking you to send that querry to the database, just give that querry in the local dataset itself string quer ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Applying custom effects to an imported model

    Hi everybody! I'm playing around with my shiny new Beta2, and I'm loving it. :) I've hit a bit of a stumbling block, though: I have a .x model that I've imported, which was pretty elementary.... What I've not been able to do is find the proper methodology for associating a custom, imported effect with the meshes in my model. How exactly do I do that And what if I want different material effects applied to different meshes in the model Thanks, and I appreciate the help! hello I tried again and again and ..again.... and nothing seems to work, I tried different things, different models etc... In the kobalt example, is nice but you are using you own camera class, and I think my problem is in the wol ...Show All

  • Smart Device Development VS2005 and WinCE4.2...?

    Hello, I get a device with WinCE 4.2 installed and I want to adapt my program written for WinCE5.0 for this WinCE4.2 installed device. When I click Change Target Platform in the Project menu, I can not see Windows CE 4.2 in the combobox. How can I do this Thanks in advance. VS 2005 has no support for CE 4.2. If you keep project type at CE 5.0 and deploy NETCF to device manually, it works most of the time with CE 4.2. If it does not, you'd need to debug on CE 5.0 device and test it on actual device to ensure compatibility. ...Show All

  • SQL Server Will MS address SSIS?

    Whoever implemented this... needs fired. If its not done fine. But its still pretty much unusable. I have a simple 5 text files I need to import... no brainer, they are all comma delimeted. Works great in 2000 DTS. I import the package it blows up, will take me hours to get right "Converting" all the columns. These are simple text fields, ive learned not to even attempt anything else. Are they basically "done" with SSIS And just letting us wade through the horror that is SSIS I am pondering creating a dw but with all my diverse data sources I couldnt dream of the endless hours upon hours i would have to spend to get it to work with SSIS. Or maybe someone can explain to me how to easily turn off these s ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Multi-core programming

    Will the XNA Framework allow assigning threads to specific cores on the 360 Or more generally, how will XNA Framework interact with the 360's cores and hardware threads Jim Perry wrote: twospoons wrote: Wouldn't that be rather 360 specific In the regular .net framework you can set affinity and priority on a thread, isn't that sufficient But that doesn't target a specific core, which would be useful. You can still do this with ProcessThread. Just set the ProcessorAffinity for each thread and you are good to go. Roger ...Show All

  • Windows Forms Adding a New Object

    Hello. I'm trying to add a new textbox. I have a tabControl and i want to add the new text box in another tab inside a group box. ... case 1: TextBox txtNomeModulo2 = new TextBox(); txtNomeModulo2.Location = new Point(8,IncCase+=24); Controls.Add(txtNomeModulo2); break; ... Well i got to another problem... TextBox txtNomeModulo1 = new TextBox(); this.grpModulos.Controls.Add(txtNomeModulo1); txtNomeModulo1.Location = new Point(8,IncCase); txtNomeModulo1.Width = 248; txtNomeModulo1.ReadOnly = true; txtNomeModulo1.BackColor = Color.Yellow; i can create the textbox in the rigth tab and g ...Show All

  • Windows Forms Absolute Position of Caret

    How do I find out the absolute position, in pixels, of the caret (the flashing thing you use to type) in a textbox Start a new Windows Forms project. Drop a textbox and a label on the form, then paste this code: Public Class Form1 Private Structure APIPOINT Dim x As Integer Dim y As Integer End Structure Private Declare Auto Function GetCaretPos Lib "user32.dll" (ByRef pnt As APIPOINT) As Boolean Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Dim pnt As APIPOINT GetCaretPos(pnt) Label1.Text = String.Format("{0} x {1}", pnt.x, pnt.y) End Sub End Class ...Show All

  • .NET Development Software Remote application launching help needed

    We are programming on an application. I have to create a remote launcher kind of thing. Any ideas how can I launch one application on differenct parts of the world I am not talking about spamming on someone's system. We will use dedicated machines worldwide to test the performance of the application. Any help would be greatly apriciated. As a rule of thumb, you will have to run some of your software (an agent) on a machine that you want some more of your software to run on. You could, for instance, build a WCF service that is run as a Windows service and use that to launch additional applications. If you don't have any code running on the box, you can't start anything on the box. The only exception from this would be COM, but that's ...Show All

©2008 Software Development Network