- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I've been writing software professionally for about 12 years now, and a software hobbyist for nearly 25 years.
- Interests
- Family, Camping, hunting, fishing, Software Development, Gaming.
- PC Specs
- Core I7 2600K Asus P8P67 PRO 8GB Ram ATI Radeonâ„¢ HD 5770 80GB Intel 2ndGen X25-M SSD (plus data drives)…
38 Posted Topics
Re: You need to use a background thread for the work that is being done. That way the main UI thread is free to animate a giff. Just make sure that when the workerthread is done, and you're ready to consume the results (display on UI), that you invoke back to … | |
Re: I would [I]probably[/I] go with SQLCE if it's going to be on a mobile device. | |
Re: I have a media center PC I put together around September of 2009. Still going strong. I used -------------------------------------------------------------- ECS Black Series A785GM-M AM3 AMD 785G HDMI Micro ATX AMD Motherboard AMD Phenom II X4 945 Deneb 3.0GHz Plextor PX-B320SA Blu Ray Player - DVD and CD Burner Western Digital … | |
Re: You really need to learn about databinding. It will make this way simpler. I'll put together a sample using the code you have here and repost in just a bit. | |
Re: There are a number of ways to do this. Personally, I wouldn't use checkboxes. What if I want more than one item? But then, I don't know your requirements. Anyway, on to answering your question: if you aren't using databinding (I would), you could put the itemID into the TAG … | |
Re: I'll try to help you out here. First off, you should not assume that every control in Me.Controls is a checkbox. Essentially, though, that is what you did when you wrote the "for each" statement. Instead try this: [CODE] Dim intcheckboxesChecked As Integer = 0 For Each ctl As Windows.Forms.Control … | |
Re: Yes, it's possible. First you need to identify which images to resize. You may have to iterate through the entire datatable opening each image and looking at the size. Once you determine that an image needs to be resized, then you could do something like this: [CODE] Dim newWidth As … | |
Re: Not really sure what your question is here. | |
Re: Betty, If you are using SQL server, just set your identy column to autogenerate a numeric key, then whenever you want to display it in your application, just concatinate "CUST", and a left padded ID Like this: [CODE] lable1.text = "CUST" & row.Item("CustID").ToString.PadLeft(5, "0")) [/CODE] the whole CUST, and leading … | |
Re: When you insert this way, you HAVE to provide a value for every column in the table and it has to be in the proper order to match the table or you might get data conversion errors. My guess is that the table has more than 3 columns. You could … | |
Hello Daniweb! [COLOR="Red"]I'm using VS2010, targeting .NET 4.0. [/COLOR] I'm looking for options with programmatically printing PDF's from a windows service. Basically, I have an app that will have a folder full of PDF's that were created overnight. The service should be able to print them to a specified printer, … | |
Re: Hmmm... I'm working with PDF's myself, and I do recall something in the ADOBE SDK that seemed like it would do the trick. Not exactly what you're looking for, but might lead you to your answer: [URL="http://cookbooks.adobe.com/tags/Acrobat,merge"]http://cookbooks.adobe.com/tags/Acrobat,merge[/URL] | |
Re: Since you're not getting an error, my first guess is that you're looking at the wrong database. Instead of looking for the data in the database that's in your source code (in IDE), look at the one in your BIN/Debug folder. I gathered this from your connection string using |DataDirectory| … | |
Re: You could do something like this to get an aggregate of items, orders, and count: [CODE] SELECT ItemCode, ItemName, COUNT(*) AS Orders FROM [I]TableName[/I] GROUP BY ItemCode, ItemName ORDER BY Orders DESC [/CODE] To add the percentage you could either cache a total before hand and use a variable to … | |
Re: Would you be so kind as to tell us the exact error message? | |
Re: I haven't used Access in ages, but in SQL, you could do this: Select SUM(ISNULL(<fldname>,0)) This will assign a value of 0 for <NULL> to be used in the SUM function. | |
Re: if you are getting an empty dataset (with the field names from the database table), then it sounds like there are simply no records that satisfy the constraints of your query. ... and to answer your question, "YES", you can programmatically pull back data to fill your reports. | |
Re: You probably don't want to post your entire app here unless you don't mind someone else potentially stealing your work. You named your variables well and it shouldn't be too hard to figure out. I'll get back to you shortly. | |
Over the last couple of years, when I would search for something code related online, I was getting links to threads here at DaniWeb. I never joined though because I figured it was just another development forum and there were already hundreds of similar sites. However, last week, I was … | |
Re: I would recommend getting a more efficient power supply. This is likely a machine that will be left on 24/7. Unless you have more equipment going in than you listed, you don't need a 500w PS. I used the following in mine about a year and a half ago: -------------------------------------------------------------- … | |
Re: If your database will always be in the same directory as your application you can use reflection to get the path, like this: [CODE] Private Function GetDataBaseFilePath() As String Dim path As String = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly.Location()) path = System.IO.Path.Combine(path, DataBaseFileName) Return path End Function [/CODE] | |
Re: That's because the datagridview.rows collection contains DataGridViewRow objects, not DataRow Objects. This is because the Datagridview can display many kinds of data and not just datarows from a datatable. If you want to iterate through them and peel off data you can do something like this: [CODE] For Each row … | |
Re: Your question is lacking the details to give you a good solid answer. If your xml is well structured data and you have a crystal report that you need to feed data in to, then I would read the XML into a datatable or dataset (whichever is appropriate) and pass … | |
Re: select * from table where field like '%<search term>%' Use the percent sign (%) to show where the unknown is. If you know it starts with a word, the percent sign follows the search term. If you know it ends with a word, the percent sign comes before the search … | |
Re: You could simply create a new control, then change the designer to inherit from the listbox control. the designer code would then look something like this (vs2010): [CODE] <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class UserControl1 Inherits ListBox 'UserControl overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal … | |
Re: Just noticing that when you are adding the parameter: classLibrary.addParameter("@CivilStatus", SqlDbType.VarChar, cboxCStatus.SelectedItem, cboxCStatus.SelectedIndex) That you are specifying a varchar type. Should that not be an Int? As to your last error, it sounds like your Stored Procedure is attempting to add a record AND is specifying an ID. I'm guessing … | |
Re: Please correct me if I misunderstood this. What I gather is that you are inserting an Admission Record, but don't want to insert a chartID? If the chartID allows nulls, then you can do this: [CODE]da.InsertCommand.Parameters.Add("@Chart_ID", SqlDbType.VarChar).Value = iif(String.IsNullOrEmpty(TxtChart_ID.Text),DBNull.Value,TxtChart_ID.Text)[/CODE] | |
Re: an encrypted registry key is an easy way to do it. However, it's not foolproof. Also, .NET already contains everything you need to do encryption. Here's something simple: First, add a class to handle encryption/decryption. Second, import the following [CODE] Imports System Imports System.Data Imports System.Security Imports System.Security.Cryptography Imports System.Text … | |
Re: You really need to provide more details in order to get a good answer. What kind of database? Version? What is the exact error message text? | |
Re: I'm just guessing here, but if you're sure it's an encoding problem, have you tried opening it in NotePad, then saving it back out with "Save-As", and selecting the encoding there? It's likely to be one of the following: Unicode, UTF-8, or Ascii. There's a combo-box near the save/cancel buttons … | |
Re: To get the sum of a column, assuming you have bound your grid to a datatable, you could do something like this (using the datatable): Dim dValue as double dValue = myDataTable.Compute("SUM(<fieldName>)") If you're using a dataview then: dvalue = dv.ToTable.Compute("SUM(<fieldName>)") Then simply assign your textbox.text = dvalue The way … | |
Re: I know this is marked solved, but thought I might add something for thought. If you databind the text boxes to your underlying datatable, then you can use the datatables "GetChanges" function to determine if anything has changed. You could even use a currency manager to keep everything in sync … | |
Re: you could check for NULL before assigning values Something like this perhaps: [CODE] .Text = IIf(IsDBNull(objdatareader.Item("IV_Form_ID")), "<NULL>", objdatareader.Item("IV_Form_ID")) .SubItems.Add(IIf(IsDBNull(objdatareader.Item("Date_Started")), "<NULL>", objdatareader.Item("Date_Started"))) [/CODE] Of course, you may want to do something else in the "True Part" of the IIF statement, besides passing in the string "<NULL>". | |
Re: QBasic! Haven't thought of that in about 15 years. I don't recall the specific functionality that you are referring to, but in VB.NET, you could just open the file with a filestream, and parse the data out of it. An example might be something like this: [CODE] Dim file As … | |
Re: Forgive me if I over-simplify this and this isn't what you are looking for. To make a save button, you can simply drag a "button" from the toolbox onto the form. Position it to the appropriate location on the form. Don't forget to anchor it and to set it's text … | |
Re: "CTRL+ALT+DEL" is a reserved combination and isn't meant to be turned off. I'm fairly certain that the message can't be intercepted by a normal application running in windows. I'm not certain, but there may be something you can do with a group-policy. -Edit: Windows xp may allow you to intercept, … | |
Re: To make sure I uderstand. The user first selects a model. This then fills up combobox2 with parts The user then selects a part which then fills combobox3 with "manning" data? The user then selects a "manning" which then fills combobox 4 with "position" data. The user then selects a … | |
Re: I'm not going to click the link. However, assuming you are using a dataset or datatable to populate a datagrid. Any reason you just don't pass that to form3 and use it there? If you need a copy, try this: for a datatable or dataset named dtData [CODE]dtData.copy[/CODE] it returns … |
The End.