Topics
-
- 0 replies
- 812 views
When trying to create a DB diagram on my local SQL Server 2005 db, I get the following error: cannot insert the value null into column "diagram_id" I have searched the web and can't seem to find anything on this. I just simply drag one table from my local db onto the diagram windows and try to Save it and that's what I get. I'm able to save diagrams on a networked SQL Server. Does anybody know how I can resolve this issue?
Last reply by wsyeager, -
-
- Administrators
- 2 replies
- 835 views
Sorry about reposting this again... but I just wanted to let you know that I'm using the Response.Redirect to get to another page... I guess my question is: can I put code on one page that will affect what is displayed on the other page? if that is possible, how can I do that? Thanks, Ryan Worcester P.S. SEE the post titled "How To Display Pictures" that will explain a little more about what I am trying to do!
Last reply by RWorcester, -
-
-
- *Experts*
- Administrators
- 5 replies
- 1.6k views
i have a datagrid with following code this.dataSet11.Clear(); this.oleDbDataAdapter1.Fill(this.dataSet11,"ClientsTable"); this.dataGrid1.DataSource=this.dataSet11.Tables["ClientsTable"].DefaultView; DataTable dataTable = (DataTable)dataGrid1.DataSource;but app return error when try this line: DataTable dataTable = (DataTable)dataGrid1.DataSource; why? i want this code for autoresize DataGrid, so let me know if you have a correct code for autoresizing datagrid. ;)
Last reply by hamid, -
-
- 3 replies
- 949 views
Is there any automated way to cut out all superfluous blank lines from my code, i.e. so that there are never two consecutive blank lines? I've found the "Delete Horizontal White Space" command, but nothing comparable for vertical white space.
Last reply by mskeel, -
-
- *Experts*
- 2 replies
- 856 views
I'm very new to .net although I have been programming a while with open source languages. I just installed VS 2005 and MSDN 2005. I need to know about a good tutorial to start programming in it. What confuses me is the beginning where you run the IDE and then... I ask what should i do?! Thanx in advance.
Last reply by Nerseus, -
-
- 0 replies
- 746 views
Hi all I have an application that is responsible for sending sms messages and email messages. Now the maximum number of characters allowed is 640, however the following constraints apply for sms messages. 1. if the sms message is greater than 160 characters it must be split into two messages, and each message must loose 7 characters which will be used for package markers. Therefore for a sms the maximum number of characters is 4 messages * 153 = 612 characters. I have the following javascript that fires when the txtbox for the message is selected and a key on the keyboard is pressed. Here it is: **The limitField, is the field that the user is typing into. …
Last reply by mike55, -
- 1 reply
- 859 views
I'm looking into finding the most efficient movie controls and need some advice. I have been working with Windows Media Player and it just takes *way* to long to load the video and pause it at the first frame. If you know a good movie control that loads movies quick and possibly has a built in feature to load them to the first frame of video, I would greatly appreciate it. Thanks!
Last reply by mskeel, -
-
- Administrators
- 3 replies
- 2.4k views
Hi Since I made myself comfortable in VB 05 and it is going well so far, I want to give a try to make some chatclient & -server. So far I accomplished, by reading through the forum and the msdn, to make a TcpListener and TcpClient by copying the code. I already made some experiments with it and changed the code to make it more useful for my purposes. Imports System Imports System.IO Imports System.Net Imports System.Net.Sockets Imports System.Text Imports Microsoft.VisualBasic Public Class frmClient Public Client As New TcpClient Public Stream As NetworkStream Private Sub Connect(ByVal server As [string], ByVal port As Int32) Try …
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.3k views
I need to have my vb.net program install a client SSL certificate for PKI (Private Key Infrastructure). How can I install/remove certificates to a user's "certificate store"? thanks!
Last reply by PlausiblyDamp, -
-
- 0 replies
- 798 views
Hi all Here is the best solution that I have come across for preventing double clicks... 1. Create a module, and call it GlobalModule. 2. Add the following method/function... Public Sub ButtonClickEventGovenor(ByVal btn As System.Web.UI.WebControls.Button, ByVal PageHasValidators As Boolean) Dim sJavaScript As String If PageHasValidators Then sJavaScript = "if (typeof(Page_ClientValidate) == 'function') {if (Page_ClientValidate())" & _ "{this.value='Please wait...';this.disabled = true;" & _ btn.Page.GetPostBackEventReference(btn) & ";}}" Else sJavaScript = "this.value='Please wai…
Last reply by mike55, -
- 0 replies
- 947 views
hi, im trying to create a type of landing page where i can set a cookie and redirect to another page.. here is the code for the page load: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' set cookie Response.Cookies("salesid").Value = Request("salesid") ' redirect Response.Redirect(Request("redirect")) End Sub looks simple enough, but it doesnt work - the redirect seems to cause problems with writing the cookie. is this some sort of security restriction? if so, any ideas for a workaround? thanks for the help
Last reply by sdlangers, -
- 0 replies
- 882 views
is there any way to replace one specific row of dataset to another specific row? thanks
Last reply by hamid, -
- 2 replies
- 868 views
Hi, I am trying to use MonthCalender to fill the dates in the text boxes in the same form. I don't have any inkling of how to do it. Can anyone please help. Regards Varrey
Last reply by varrey, -
- 3 replies
- 1.3k views
I had an interview today and I looked at their ASP.Net/VB.Net app. I was told that the app interacts with AS400/IBM and SQL Server;therefor, the ex-developer developed 2 sets of "data" tier...one to interact with AS400 and one to interact with SQL Server. My question is: did he actually need to develop 2 sets of "data" layer/tier code?? Couldnt there be logic to use, for example, this data connection, if it's AS400..go down this path if it's SQl Server?? How would you design a data layer/tier to interact with 2 databases?
Last reply by Diesel, -
-
- Administrators
- 3 replies
- 977 views
I saw a post about this already but it was in c# so no I am asking for VB.NET how can I do something like this dim dialog as object private sub go() dialog = new frmdialog end sub private sub check() msgbox(dialog.textbox1.text) end sub so I have a dialog box where someone can type something into textbox1, then when an event is triggered on frmMain I want to pop up a messagebox showing the contents of textbox1 from a different form.
Last reply by JoshK, -
-
-
- Administrators
- 5 replies
- 1.3k views
Now that more people are buying dual processor servers, does anyone know of a good resource on how to take advantage of SMP in my programs? Essentially, I want to engage both processors whenever I can for increased speed and performance - or is this going to be handled by the OS?
Last reply by mskeel, -
-
-
- Administrators
- *Experts*
- 4 replies
- 1.3k views
I am attempting to learn OOP. The book I am using has the examples in C++. I am attempting to modify the code in C#. .Net doesn't like Person:Display(); in the Student class below. Can someone tell me how this should be modified with C#. Thanks. using System; namespace LevelInheritance { /// <summary> /// Summary description for Person. /// </summary> public class Person { protected int m_ID; protected string m_First; protected string m_Last; public Person() { m_ID = 0; m_First = "\0"; m_Last = "\0"; } public virtual void Display() { Console.WriteLine("ID: " + m_ID + "\rFirst: " + m_Fi…
Last reply by Nerseus, -
-
-
- *Experts*
- 3 replies
- 988 views
I have a flat file that can contain up to 20000 lines. Each line represents a record that needs parsed and added to a database. I have code that works, however, I was wondering if there was a faster way to add the data to a database. Currently I am looping throuhg each line and adding each row's data executing a command. I have also tried updating the database using a dataset and dataadapter. Both work. Is there a better way that I am missing?
Last reply by Nerseus, -
-
- 0 replies
- 697 views
Has anyone figured out how to dynamically build a Crystal Report. Meaning changing the dataasource for a field, add a new field, etc. at runtime?
Last reply by kcwallace, -
-
- *Experts*
- 2 replies
- 1.2k views
I write an application that runs on old win-98 pc's. For some unusual reason, it seems to load .dll's when it NEEDS them, instead of all at once when the program is loaded for the first time. I want them to load on program startup, like the splash screen into the global-assembly cache. This is a problem when users try to navigate the application (with customers on the PHONE) and the application HESITATES while the computer loads the .dll and then continues. I believe it is causing problems as my timers and triggering threading events become out-of-synch, due to this inappropriate first-time hesitation. I notice that "ACCESSIBILITY.DLL" seems to want to load when …
Last reply by Drstein99, -
-
Who's Online 0 Members, 0 Anonymous, 52 Guests (See full list)
- There are no registered users currently online