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

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

JeroenMeijer

Member List

ChrisMcCabe
smartpi
digitalmercenary
Marko Hrastovec
kid_kaneda
Martinp23
Santhoo
Alex-MyRpg
Kurt Jaegers
bohiti
xRuntime
Mike Brown
KillerKryptos
Ljhopkins
mhelie
Art_
Juan Carlos Ruiz Pacheco
xlordt
crazyabtdotnet
peg1820
Only Title

JeroenMeijer's Q&A profile

  • Visual Basic In need of help ref microsoft example

    Hi, Ive built an application in vb.net 2003 that printed to my printer using the raw printer example written my microsoft and it worked no problems at all and have used it at home for a year or so. http://support.microsoft.com/ scid=kb;EN-US;322090 Today i was writing a different program but this time in 2005, again i used the raw printer class but when i came to test it today i get the following error. at this line "If OpenPrinter(szPrinterName, hPrinter, 0) Then" in " SendBytesToPrinter" function The OpenPrinter declaration is wrong. It should be: Public Shared Function OpenPrinter(..., ByVal pd As IntPtr) As Boolean and call it like this: If OpenPrinter(szPrinterName, hPrinter, IntPtr.Zero) The ...Show All

  • Visual C++ .lib inclusion

    I have an SDK for a pci card. Included in this sdk are some example programs that show how to interact with the card. there is a .dll and a .lib file. I can not see any reference to either of these files in the source code but when I compile the sample application it fails if I remove the .lib file. When I look at the Buildlog it shows the inclusion of the .lib file in a temporary .rsp file. How is this achieved. it's possible that somewhere in the source code there is a #pragma comment (lib, "libname.lib") where libname is the library or, in the project settings (makefile) it may be listed there. ...Show All

  • Visual Studio Tools for Office ListObject binding

    is it possible to bind a listobject to a collection in C# I appreciate if anyone has an example. Thanks this is fine when we are dealing with data tables in datasets. but in my case i have a Person class and a collection of Persons. the datasource is the collection but what is the datamember and the column names in that case ...Show All

  • Windows Forms Another ListView Question

    i have setup a ListView control after much hard work but stumbled onto a problem, when you add new items then close the application then run it again the items are no longer remembered should the ListView control remember whats been added and if so how can it be done thanks btw im using MS VS 2005 C++ it's ok, i'm thinking about not using a ListView now. think i preferred the older style ListView as it was easier to use and less time consuming but looks as though i cant get it on this version of MS VS 2005 maybe if MS thought about problems like this then more peeps would use it WITHOUT the problems. ...Show All

  • Visual C# How to populate a treeview recursively?

    I have a category table: CategoryId CategoryName ParentCategoryId I will return this data to the code-behind in a dataset or datareader. The tree will probably never be more than 3 or 4 levels deep. Can you show me a code-behind method to use this data to recursively populate a treeview hi, this code use 2 tables as catigory and subcatigory tables private void ConstractTreeView() { TreeView1.Nodes.Clear(); DataRowView CatRow; DataRowView SubCatRow; DataView CatDV = new DataView(MainDataSet.Tables("_cat")); TreeNode NodeCat; TreeNode NodeSubCat; foreach ( int CatRow in CatDV) { NodeCat = new TreeNode(); NodeCat.Text = CatRow("catname").ToString; NodeCat.Tag = "Cat" + C ...Show All

  • Windows Forms Combobox dropdownlist with duplicate items

    I have a bound combobox wich shows duplicate DisplayMembers, but with different ValueMembers. Think of a list with invoices where one person has several invoices. His name is several times in the list. When the dropdownlist opens, it always select the first of the DisplayMembers (for that name), although another DisplayMember (and ValueMember) was chosen before. This is a part of the code I use to bind the data to the combobox: DataSet ds = new DataSet(); cn.Open(); adapter.Fill(ds, "dbo.GetNamesAndInvoiceList"); cn.Close(); this.cboInvoiceNames.DataSource = ds.Tables[0]; this.cboInvoiceNames.DisplayMember = "DisplayName".ToString(); this.cboInvoiceNames.ValueMember = "PK_InvoiceID".ToString(); How ca ...Show All

  • SQL Server Windows and Forms Authentication issues

    I have a user who is trying to access the SQL 2005 server with 2 seperate accounts(using Windows Authentication).  With one account he can connect just fine, but with the seccond he recieves a logon fail error.  The only difference that we can tell is that the first account uses a password for our kerberos domain, and the second (that fails) uses a longer pass phrase (which does use spaces as characters).  My intuition tells me that shouldn't matter, but I've been wrong before.  Can anyone confirm this, or correct me if I'm wrong   This is using ASP.NET 2005 for the front end.  The exact Exception details are: "System.Data.SqlClient.SqlException: Login failed for user 'domain\user "  The stack tra ...Show All

  • Visual Studio Express Editions How to delete selected row in datagridview?

    Hi, how do I permanently delete selected row in datagridview as well as permanently deleting it in my .mdb file . Thought of using oledbcommand or something but I am still a beginner in C# so not familiar with Oledb. Thanks. Hi dragoncells, Have a look at this link on the MSDN2. http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx The code at the bottom of the page gives you an overview of some button code. Hope this helps Scott ...Show All

  • Visual C# list of classes

    a function, whose parameter is a ref to a collection of class I private void func(List<I> i){ i=new List<I>(); for(int n=0;n<MAXVALUE;++n){ for(int m=0;m<MAXVALUE;++m){ Dosomething(); } i[ n ] . value =5; // Error: can't modify the value of System.Collections.Generic.List<program.Form1.I>.this[int] because it is not a variable } The struct strure is folows public class I{ public int value; } Thanks for any helps Okay, so instead of the code sample you posted you've got something like this:         struct I         {             publ ...Show All

  • Software Development for Windows Vista batching : IPendingWork.Commit

    MSDN Says : " The workflow runtime engine calls the Commit method when its semantics dictate that the pending work in the work batch should be committed . When it reaches a commit point, the workflow runtime engine calls the Commit method on each IPendingWork object in its work batch; the workflow runtime engine passes the Commit method the collection of items associated with that IPendingWork object. Either all of the work in a batch succeeds or none of it succeeds. You should throw an exception if any of the work items passed to the Commit method in your implementation cannot be committed. Depending on your implementation, you may want to perform some rollback in your Commit method if it cannot commit its work items. If th ...Show All

  • Visual C++ Task List

    In Visual Studio 2003 - whenever a compilation had errors or warnings, they were copied automaticly to The Task List. Currently this feature does not exist in 2005, it seems that the errors and warnings are displayed only in the output window. Is this feature discontinued, or there is a way to set it Thanks I.G. For VS 2005 there is a new ToolWindow called Error List. You can find it in the View menu. TaskList still exists but it displays only "tasks". ...Show All

  • .NET Development connect to sql server using compact framework

    hi, i have this code: Dim l_sqlConn AsNew System.Data.SqlClient.SqlConnection("Persist Security Info=False;Integrated Security=False;Server=192.168.2.114;initial catalog=new_one;user id=sa;password=1234;") l_sqlConn.Open() Dim l_sqlCmd As System.Data.SqlClient.SqlCommand l_sqlCmd = l_sqlConn.createCommand l_sqlCmd.CommandText = "SELECT * FROM clientes" but they display this error: sql server does not exist or acess denied can you helpme and tell me what i doing wrong thanks a lot Hi, I remember I had a same problem. Begin by upgrading you SQL Server 2000 to SP4 . HTH. ...Show All

  • Software Development for Windows Vista Worked on one computer now SqlWorkflowPersistenceService fails to persist on new computer.

    I transferred a state machine ASP.NET project from one machine to another. I created the persistence database from the “C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN” SQL files. I changed the connection strings. Every time I run the web application nothing is persisted to the DB. No errors either. It has been running for months on the one machine with no problems. No code change. Any help would be greatly appreciated. Stan Thank you for responding! I am at a critical point now and really need to get this going. The only thing I changed in the config file is the connection strings to workflow and my employee database. Here is another thought. I fired up SQL Profiler to see what happens when “e ...Show All

  • SQL Server Data retrieval is much slower in RS than in management studio

    A call to a stored procedure completes in 13 seconds when ran from within SQL Server Management Studio. A report whose data source uses the same stored procedure can take as long as 10 minutes to run. The same parameter values are used in both the direct call and the report. The execution log says almost all of that time is spent on data retrieval. How could that be What might be the cause I'll give it a try. However, looking at the Parameters column from the ExecutionLog table confirms that the values are the same. The report has the same parameters as the stored proc and simply passes the its parameter values along to the stored proc. ...Show All

  • Gadgets How to link to additional javascript files?

    I want to use Scriptaculous libraries in my gadget. How do I go about linking these files so that my main js file can access them While it's not recommended to use scripts that aren't Atlasized (isolated in namespaces at the very least), the iframed nature of gadgets means that you should be able to do that if you absolutely must (and can't Atlasize the scripts yourself). You should be able to just reference your Scriptaculous files in your gadget.xml manifest like any other js file and have them work. However since the scripts aren't isolated in namespaces, there's a chance you could run into load-order issues (you need to use a class or function from a Scriptaculous script, but said script hasn't bee ...Show All

©2008 Software Development Network