Topics
-
- 3 replies
- 2.3k views
Hi! I'm playing with SQL database (or at least trying to) and C#, but I'm getting this problem: I've created a database and a single table in it with VS. The problem is, that for the life of me, I cannot open it (or connect to it). The database is shown in my solution explorer (on the right-hand side if the IDE), the connection string is the one from the properties window, but every time, I run the code, there come an error saying that the server is not accesible... Well, here's my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; using System.Diagnostics; namespace Tarok_…
Last reply by dotnetguy37, -
- 2 replies
- 2.9k views
Hi... I'm running an onlineshop on an Ubuntu-Server and wrote a program to update the shop-database (MySQL) with data from internal SQL-Server DB. Since I updated MySQL on the Ubuntu-Server from 5.1.41 to 5.1.61 (that update came automatically for security reasons) i have a weird problem. First: every access to the MySQL-DB vie the shop(s) and from our CMS (Drupal) works perfect. No Problems at all. For Speed-Reasons I use datatables/dataadapter to update the shop data in memory and write it back to MySQL after all neccessary updates/inserts/deletes are done. This worked perfect until the MySQL-Update. Here is some sample code from my program that produces …
Last reply by allblacks, -
- 3 replies
- 2.9k views
I am using the same query to plot data and to show it in a datagridview. I get data to plot, but it won't display on my datagrid view. The DGV just stays grey. I've looked at a bunch of examples only and I can't find the problem. Any ideas? dgvSummary.AutoGenerateColumns = True sqlCmd = New SqlCommand(sql, conn) sqlAdp = New SqlDataAdapter(sqlCmd) sqlDs = New DataSet sqlAdp.Fill(sqlDs, "Development") dgvSummary.DataSource = sqlDs
Last reply by Dharmendra Rai, -
- 1 reply
- 1.1k views
Hi again! I have a quick question. I dont know why, but every time my project builds for debugging the user control I made keeps getting smaller by 2 pixels. If I debug and then I try to make changes to my user control it shrinks. Weird and it does not make any sense to me!!! :confused: :(:( Thanks again!!! :)
Last reply by Doggo120, -
- 3 replies
- 1.8k views
I am looking to get a high performance grid for my .Net winform application. The solutions I have looked into so far are too slow and don�t live up to expectations. The APIs are also way too complex for me. An okay and unique solution would be appreciated.
Last reply by s398290, -
- 0 replies
- 1.5k views
Hello all, Need your opinion, advice and orientation. Currently started a fresh new project involving .NET framework 4. One of the requirements is to show a GUI letting user doing this : - Pick a XSD1 and specify the root entity - Drawing entities and relations in a treeview fashion, one side - Pick another XSD2 and specify the root entity - Drawing entities and relations in a treeview fashion, onther side - User draw visual lines to create and manage mapping rules to be executed once a XSD1 compliant payload is processed in order to produce a XSD2 compliant one For those who know about MapForce, something like it but not so advanced. Trying to convince PL…
Last reply by docflied, -
- 5 replies
- 2.2k views
"Hi, everybody. I am developing a linear barcode system and I would like more details on linear barcodes such as what amount of data can them store? What type of data? Any other limitations? Any good source will be appreciated. "
Last reply by Lucien johnson, -
-
- Leaders
- 3 replies
- 1.9k views
Hi there! Just playing around and got this one on my mind: Which one wold one use: myString = firstString & ControlChars.Tab & secondString or myString = firstString & vbTab & secondString and why...
Last reply by cmoya, -
-
-
- Administrators
- 2 replies
- 1.1k views
Hey guys! I'm wondering what would be the best and most efficient way to write my program with two languages (english and spanish); so depending on your selection the *entire* thing would display text, information and such in the corresponding language (something like the picture). Thanks!
Last reply by Doggo120, -
-
-
- Leaders
- 4 replies
- 2.6k views
AnyOne who can help me or give an example for drawing a pipeline using direct3D with vb.net?
Last reply by dotnetguy37, -
-
- 1 reply
- 4.6k views
I am trying to use BingMaps for a web application but I seem to have a brain fart when it comes to Javascript. I have a gridview populated server-side with addresses and Lat/Longs; I need to get read the column of the gridview via Javascript then trigger an 'addpin to map'. I guess I'm drawing a blank on how to get javascript to trigger once the gridview is loaded without additional actions by the user. Enter # -> Query database for all address which match -> Populate Gridview...now trigger javascript ot read columns and add pin to a map. Any help would be greatly appreciated.
Last reply by dotnetguy37, -
- 1 reply
- 1.8k views
I do reference another class named Config, but that is not where the problem lies. the issue is when the network path is passed through "Filename" it adds more "\"'s Example txtdataPath.Text ="\\server\folder\file" If i were to put a linebreak over "Filename" it would read \\\\server\\folder\\file private void btnTest_Click(object sender, EventArgs e) { string Filename = txtdataPath.Text; string un = txtuserName.Text; string pw = txtPassword.Text; //Validation if (string.IsNullOrEmpty(Filename)) { MessageBox.Show("Please Load your Dictionary Fil…
Last reply by JuicyMike, -
-
- Administrators
- 6 replies
- 2.1k views
I want to insert time into one column and date into another column. SQL is giving me hell trying to do this because my formats or data types my not be meshing between SQL and VB. This is what I've tried: (i have tried other methods as well) If Not sqlCmd.ExecuteScalar Then sqlCmd.CommandText = "CREATE TABLE " & TableName & " (" & _ "[RowCount] BIGINT NOT NULL PRIMARY KEY, " & _ "Count INT NOT NULL, " & _ "RunNumber INT NOT NULL, " & _ "CurrentCycle INT NOT NULL, " & _ "CurrentMode INT NOT NULL, " & _ "TimeInMode INT N…
Last reply by TexasAggie, -
-
-
- Leaders
- 2 replies
- 4.3k views
Hello geniuses. I have a listbox that is populated like this: connDatabase.Open() Dim pk(0) as DataColumn Dim dt as New DataTable dim da as OleDbDataAdapter Try da = New OleDbDataAdapter("Select ArtNum from Artnumber" , connDatabase) da.Fill(dt) pk(0) = dt.Columns("ArtNum") dt.PrimaryKey = pk listbox1.DataSource = dt listbox1.DisplayMember = "ArtNum" listbox1.ValueMember = "Artnum" Catch End Try That works like a charm. But when I'm trying to get all values from this listbox to another listbox using: For Each item in listbox1.Items form2.listbox2.Items.Add(item) Next I only get "System.Data.DataRowView" in the listbox :mad: Is there a way to…
Last reply by mackao, -
-
- 3 replies
- 25.9k views
I am new here and greetings to everyone on here.
Last reply by XNTalk-roger, -
- 2 replies
- 5.7k views
I'm working with a windows foem application. I have a dataset that was returned from a webservice. The third column ("Permanent") contains a bool. When i bind the data to a datagridview, that coulmn shows up as a series of checked checkboxes (since all the rows happened to have "true" for that value). What I want to do is modify the dataset, before binding it to the grid, to display the word "Permanent" if the bool is true and "Temporary" is the bool is false. I've gotten the code the point where I recognise whether it's true or false, but, because the column expects a bool, I can't put in the appropriate string. Any suggestions? private void btnGetAccounts_Click(ob…
Last reply by dliedke, -
-
- Administrators
- 2 replies
- 2.1k views
Yoooooo! I'm writing a user control and I have XML comments on almost every method and property. When I load the control for debugging the properties I created appear in the property window, but not their description (I uploaded a pic). If I could also change the name "Misc" by something else would be great too. Thanks guys!
Last reply by Doggo120, -
-
- 1 reply
- 35 views
Hi Guys, I just wanted to touch base to see if your needs are being met and if there are any major concerns. I'd like to start a better dialog between you and ownership. I know we've been pretty quiet since we've taken ownership of the site. We've pretty much let everything remain status quo. Please feel free to PM me or respond in this thread. You guys know this site the best and we'd like to encourage you to contribute to it's growth.
Last reply by XNTalk-roger, -
-
- Leaders
- 5 replies
- 2.5k views
Its me again! I was trying to find everywhere how to hold down some key (for example, "M") and animate a Button so that it looks that it's "pressed". When I release "M" then the button will be released as well (as if I have clicked the button with the key) Button.PerformClick does not show this. In VB6 there was a Value property, which made this possible... Thanks!!!
Last reply by Doggo120, -
-
-
- Administrators
- Leaders
- 5 replies
- 1.4k views
Good morning, I need to pass the Charset Encoding name which is defined in the 2nd column of the below table: http://msdn.microsoft.com/en-us/library/system.text.encoding%28v=vs.80%29.aspx Like windows-1256 or utf-8... However, I know that not all of them are applicable for my Windows application which only runs on Intel x86 or x64 platforms and only WinXp, Vista, 7 OS. So which ones are applicable for me? For example, some MAC encoding, like x-mac-japanese or x-mac-arabic are for MAC only? Or can be used in Windows too? Or also for UTF-32, it always returns System.NotSupportedException
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 26 Guests (See full list)
- There are no registered users currently online