I did not catch anything of significance. I did find that I would get a contious receive. I think the dc is bad. However, with all of this I did switch machines (so to speak ... hit the junk pile and built one from pieces and parts) and had the same problem. After some time, I had a light-bulb go off inside my head. Update the chip set drivers. It worked. Stupid me. I should have considered drivers on the previous machine. It just never even crossed my mind that they could have updated or needed to update with a Win Update. Ouch ... such a newbie mistake.
PrissySC
Posts
-
The mysterious USB to Serail problem ... -
The mysterious USB to Serail problem ...What would interfere or cause an interupt? Windows xp pro, usb to serial with prolific 1.8 drivers (I think... sorry tried three diff versions thus far), legacy hardware enabled, power disabled on usb root, serial mouse detection turned off (uses usb mouse anyway and PS2 connected keyboard). 232 data converter to usb to serial and the application is based on .Net 2.0 / Visual Fox Pro (not my app). Besides the monitor, no other connected devices for i/o. Has all updates. Everything seems to test fine. (Telnet to 232 works as well) I am at my end of knowledge or just missing the obvious. Suggestions? It works about an hour'ish and then just stops.
-
varbinary - Consequences to saving document/pdf as binary in SQL? Alternatives?Is there a better way (xml) that would prove to be better? Space is not an issue; however, length of time to display is, as always, a major factor. I would save as a file and link to the file, but I fear that in the manner suggested they will not map the network drive to a consistent letter at all workstations. What have you done or would you do?
-
Lookup table VB.NETStart here ... [^]
-
I am a Beginner, could you help please?.Exactly the same way that I do on the accounting side of my apps, but I exlicitly set out to cache. Sorry to inject! I had curiosity get the best of me as I was looking at the code and realizing that it is a textbook example has answered the question. Once again, sorry! Thanks for the replies, and let me know if you solve the threading problem. LOL ... Attempted multitasking this day. :wtf:
-
I am a Beginner, could you help please?.Just curious Dave and Poster, but what does this mean in context - "cache"? I guess the simplicity of the code has me puzzled - two-stepping for a single computation. I can't see beyond that. I use a dictionary and actually truly cache with the class. Purpose?
-
I am a Beginner, could you help please?.Why are you sleeping? When you put in a "sleep" the the application goes to sleep. You are blocking the thread from running. There are some instances where you need to use 0, but that is rare. And I would write this ... Function GetResult (ByVal num as Integer) as Integer return num^2 End Function Getmyresult is not needed at all. Sleep is not needed. Also, Public Main and Private Function. When you say "cache", I am not sure if you are using the term, but you can cache ... http://stackoverflow.com/questions/533861/writing-a-cache-function-in-vb-net[^] The cache class ... http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx[^]
-
Printing RDLC Report with SubReports Directly to PrinterIn that code there were no subreport handles or processing. I use the reportviewer and want the preview in most of my apps so I am not very good at printing without a preview. You do need to look at the subreport processing though. As it stands the state is only opening and processing the local report and not the subreports from what I see in my quick read. http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.localreport.subreportprocessing(v=vs.80).aspx[^] This is a good starting point to adapt the code that you are using.
-
VS Report with image from database - cannot show image saved as varbinaryActually, it was a matter of expected type. System.Binary[] I set up an empty data class (linq2sql) with a column called image. It is not connected to any SQL data table. I made the column type System.Binary[] Important note is that primary key is not needed either. It is more or less a "dummy" object for the purpose of being able to send via a bindingsource to a dataset to fill using the report viewer and rdlc report designer. Add the object to the data sources. I filled it from the company table (stored in SQL field varbinary(max)) by getting the only row, or first, in a select. I added a binding source for the empty class (ImageTable or ImageClass). Like this ... Dim imageInfo as New AppName.ImageClass Dim temp as New AppName.CompanyTable temp = (From table in context.CompanyTable Select s).FirstorDefault imageInfo.ShowImage = temp.ColumnNameWithImage.ToArray BindingSource.Datasource = imageInfo The dataset for the empty class was added to the report. The source in the report viewer is the binding source. Weird, but it was all because of "type". Combine this with the issue of being able to send in a dataset and it was a bit boggling. Hope this helps someone else. :) From where I started, I got the code down to five lines. I needed this to be streamlined as the entire app is reporting based on barcode and date for status and production.
-
Map Network Location - Windows Server 2008 StandardTY. I agree absolutely. I knew that the biggest problem I had to date was not being able to run multiple sessions, but this was just odd. I did not even think to use the CMD prompt. Once again Eddy, you helped me bunches.
-
Map Network Location - Windows Server 2008 StandardI am not on site. Is this still listed under Computer, right click, Add Netwok Location? If missing, what service needs to be turned on?
-
VS Report with image from database - cannot show image saved as varbinaryI have an image element added to the report. I added the dataset and filled it on the form with the reportviewer control. The report and its datasource are correct. I set the image to the correct datafield and selected jpeg for the type. However, I know that I am missing something when it comes to pulling the image from the database - it was saved as a varbinary(max) because I was afraid to use image with all of the talk of this type being "done away with" in the future. I can pull the image to a picturebox on the form and load it with the following code ...
cu = (From tbl In context.refCompanyUsers Select tbl).Single
Dim img = cu.StampLogo
LogoPictureBox.Image = ConvertBinaryToImage(img.ToArray())
I know I need to do something similar to show the image on the report, but all of my MS and Google searches do not return how to directly use the code or parameter in some such manner to display this needed element. I hate that I have to say it, but I do not know how. :wtf: And, to make matters worse, I can't find it myself in the knowledge base, which is usualy never a problem. :(( More to add: I have written the custom code for the report:
Public Function ConvertImageByte(ByVal img As Byte()) as System.Drawing.Bitmap Dim picStream As System.IO.MemoryStream Dim logo As System.Drawing.Bitmap = New System.Drawing.Bitmap(System.Drawing.Image.FromStream(picStream)) Return logo End Function
I use this in the picture box on the report designer:
Code.ConvertImageByte(system.Convert.ChangeType((First(Fields!StampLogo.Value, "CompanyUserDataSet")),GetType(Byte())))
The "ConvertImageByte" has the red, wavy error line under it. While I have made some progress. I still have no image. The last bit of code is my latest attempt at using a stream reader versus converting or casting.
-
SQL Server 2012 Express on Network - cannot see attached databases - can see Master, etc.I would have agreed, but I created a new database on the SQL server. I went to a client machine to connect, and once again, the new database does not show in the list. I get the SQL list with master and such. Truly, this is really bothersome. It is almost as if there is a "scope" problem. Could the GPO affect this? It is an Admin of the domain, but what was given to me was that this admin account has full access. I would think to differ only because ... SQL installs with a local machine admin yes? Creator/Owner does have special permissions by default on 2008 ... would any portion of this effect the DATA folder where the database has been relocated for attachment? Lastly, I will try using nonintegrated methods and consider troubleshooting ID values as well per Mycroft Holmes' post.
-
SQL and IIS in VS2012 ExpressI was thinking about this and I remembered IIS Express. I'm not sure if this comes with VS or not, but I do remember having to install and point to my IIS installation instead of loading the express version or a virtual version. You may be running in this manner without realizing it too. Did you point to your IIS? You may be using the VS version instead. Check this by going to the project, solution explorer, web, and servers. I hope that path is correct (you can Google it if not.... it's been a long time since I have done any web development). Just an extra - I have used Xampp (Apache distribution) for testing, mostly because of the ease in which I could configure PHP as I wrote interactive pages and my Rails ... well, it sucks a little, LOL.
-
SQL Server 2012 Express on Network - cannot see attached databases - can see Master, etc.See, that is where I am puzzled! I specifically went in and gave public access as well as set the Owner to the account. So then, thinking aloud, I should look at the owner. Should I look at builtin\users or default admin account? I already set the NT. From there, I assume, properties, user mapping. Checked the DB in question and provided membership to owner and public. I will check the server roles and grant status for the user too. Hmmm .... at least you agree with me! Thanks, and if you think of something else, I will check back and keep this thread updated. :)
-
SQL Server 2012 Express on Network - cannot see attached databases - can see Master, etc.Server Mgmt Studio
-
Sort a Custom Class Collection in VB6Whenever I sort, I find the largest, or the least first and set the value to "x". From there I work up, or down assigning to a temp object, collection or array, and replacing "x" as the largest each time. For example, x = 0 for each item in collection if item > x then x = item end if next This gets the largest to begin. tempCollection.add(x) while tempcollection.count isnot collection.count for each item in collection set x if the item is less than the last in tempcollection and is not less than x next tempcollection.add(x) loop That is a level one sort, but you should be able to expand to code easily enough. Sorry that I lack any time, or I would have done it for you!
-
SQL Server 2012 Express on Network - cannot see attached databases - can see Master, etc.I went through security and added. Checked the owners and added sa and admin account. I just can't seem to figure out what I have missed! DBs detached, copied, and moved from test server to actual network server seems to have not included a "setting" or "configuration". Any ideas? Using Windows Authentication. The odd is that I can connect and see the Master, but not the attached databases that were added. And yes, they were attached and brought online. The fact that I can see the master tells me that I have the router rules set correctly. I am open to any suggestions. Throw it at me. I have to have missed something obvious. FIXED! The problem exists in policy, whether group or user I did not explore further. Installed SQL Server as a local machine with local admin. I completely took the server offline for the initial setup. Reconnected using the suggested username/password as well. Not a problem at all.
-
VB - Adding to List(of String) from datagridview column/cell value(SOLVED) I have played with this, but I am missing the obvious. Can I borrow your brains again? (I dislike working alone.) I make a selection in the datagridview. This selection is now processed in the make list handle. I bold the first column's text for identity on the datagridview. I want to keep the value from the cell in a list. I get out of range and null exceptions. At this point, I do not have the cleanest code as I am working on operational aspects of the grid. So, below the instruction to bold the selected, I am counting the bolded (which works fine) for a count value on the form to be displayed, but I cannot add the "job number" to my list. And before you ask, yes the job number is a string. I checked that first! Original declaration is ... dim selectedJobNo as list(of string)
Private Sub MakeListToolStrip_Click_1(sender As Object, e As EventArgs) Handles MakeListToolStrip.Click
Dim f As Font = New Font(JobsDataGridView.Font, FontStyle.Bold) For selectrow = 0 To JobsDataGridView.SelectedRows.Count - 1 JobsDataGridView.SelectedRows(selectrow).Cells(0).Style.Font = f Next Dim i As Integer = 0 Dim count As Integer = 0 selectedJobNo = New List(Of String) For i = 0 To JobsDataGridView.Rows.Count - 1 If JobsDataGridView.Rows(i).Cells(0).InheritedStyle.Font.Bold Then count = count + 1 selectedJobNo.Add(JobsDataGridView.SelectedRows(i).Cells(0).Value.ToString) MsgBox(selectedJobNo.Count) End If Next JobSelectedToolStrip.Text = count 'remove highlight selection and deselect any row highlight Me.JobsDataGridView.SelectionMode = DataGridViewSelectionMode.CellSelect End Sub
Solution: I am leaving this post in case someone tries a similar method. However, I switched to a collection! I don't know why I didn't think of this. I am so very accustomed to just using a list. Here is what I did ... 1. When item selected in the DGV. I bolded the index/reference cell only. I add to the collection. 2. When removing an item from the custom selected list, I un-bold the index/reference cell. I remove from the collection. 3. When they switch between sorts, I run through the collection to bold the index/reference cells (because the DGV gets a new datasource selected based on the predefined sorts open/closed/all). 4. On request to print,
-
Multiple MonthCalendars in a form - does not keep all dates in each textboxThanks again. What would I do without your brain. :) I was not even looking at the string development in any manner. I should have known that. My languages are a little mixed up some days. Dumb newbie thing ... LOL