638 Posted Topics

Member Avatar for sri phani

Wich are the SQL sentences you have written in the [URL="http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.deletecommand.aspx"]DeleteCommand[/URL], [URL="http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.insertcommand.aspx"]InsertCommand[/URL] and [URL="http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdataadapter.updatecommand.aspx"]UpdateCommand[/URL] of your OleDbDataAdapter? They ar not shown in your code and are required to call the Update. Sincerely

Member Avatar for lolafuertes
0
105
Member Avatar for zachattack05

If the relation is defined to have cascade triggers on update and/or deletion, then the user must have permissions to update and/or delete in all the child related tables. If the cascade has multiple levels this applies to each level of the cascade trigger. See [URL="http://msdn.microsoft.com/en-us/library/aa902684(v=sql.80).aspx"]this article[/URL] There is another …

Member Avatar for zachattack05
0
118
Member Avatar for Arjun_Sarankulu

Please be so kind to post what you have written so far to try to detect where the problem is. Sincerely

Member Avatar for lolafuertes
0
69
Member Avatar for Geodude0487

If you use a dataset to hold the relevant info, when the user changes the filter criteria you can: - Fill it with an adhoc query or - Create a DataRowView agains the relevant datatable to filter the required data or - Use a Linq expression to select the relevant …

Member Avatar for lolafuertes
0
105
Member Avatar for JJKing22

You can start reading [URL="http://msdn.microsoft.com/en-us/library/aa288453(v=vs.71).aspx"]this[/URL] to learn how arrays work in C#. Hope this helps

Member Avatar for vishal1949
-1
168
Member Avatar for Gazzmonkey

The message states that the contents of ds.Tables("Patient Database").Rows(inc).Item("ID") is not a valid image. Even if it was, an image is a large binary object, that has an special treatement to be retrieved (see [URL="http://support.microsoft.com/kb/194975/en-us"]here[/URL]) Is best to save in the database only the path to the image (normally will …

Member Avatar for Gazzmonkey
0
2K
Member Avatar for adeelyce
Member Avatar for lolafuertes
0
91
Member Avatar for scrivomcdivo

IMO the easy way is to use a dataset. The dataset can contain a table holding a row for each seat with the relevant seat info. The dataset can be persisted on a XML file when exiting, and can be retireved at the start of the program. As is in …

Member Avatar for lolafuertes
0
207
Member Avatar for johnsong4

One of the ways to obtain what you need is to create a Sub FillOrdersCombo using a paramenter indicating the Idvalue of the selected item in lbMatchingAccounts, to be called when the account is OK. in order the call to this sub does not fail, you will need tochange silightly …

Member Avatar for johnsong4
0
158
Member Avatar for james6754

Every high level languages has a compiler( or interpreter) who is responsible to translate them into machine low level code. In C#, the compiler produces executable (.exe) files, dynamic-link libraries (.dll), or code modules (.netmodule) depending the options you use. The code modules need to be linked in order to …

Member Avatar for james6754
0
238
Member Avatar for bhagawatshinde

I assume that on the mouse hover and leave events you are assigning the right image. Then, do you call testToolStripMenuItem.Invalidate after assigning the new image to force the redraw of the control? Hope this helps

Member Avatar for nmaillet
0
254
Member Avatar for mreneeholland

Actually is not an infinite loop. It will run for 100 times, when you need only 10. You can simplify the for-next using: [CODE] For row = 0 To ROWS - 1 For column = 0 To COLUMNS - 1 Console.WriteLine("Enrollment for " + campus(column) + " for the " …

Member Avatar for lolafuertes
0
174
Member Avatar for dennysimon

Use the system.globalization to get the cultureinfo for the CurrentUICulture to obtain the decimal char, thousands separator, etc. and replace them by those of the invatiant culture. The thousands separators can be safely removed. Hope this helps

Member Avatar for lolafuertes
0
94
Member Avatar for bluehangook629

This namespace is available throug the Data Designer Extensibility (DDEX) SDK (part of the Visual Studio Industry Partner [VSIP] installation). Then it appears as reference to add to your project. For info on how to obtain it you can navigate [URL="http://msdn.microsoft.com/en-us/vstudio/dd637761"]here[/URL] Hope this helps.

Member Avatar for bluehangook629
0
122
Member Avatar for berwick53

In C# static means no need for instantiation. Inside a static method (Main) you ar calling a non static function Addtion. According to the C# rules, you need to declare Addtion as static like [CODE]static public int Addtion(int number1, int number2)[/CODE] Hope this helps

Member Avatar for Momerath
0
160
Member Avatar for zachattack05

IMO The best way is to add a field indicating the source table, then another with the key value to the source service. The PK would be both fields. This way, you can have the same key value, but always coming from a distinct table. Be aware to add a …

Member Avatar for lolafuertes
0
214
Member Avatar for fadeterra

If any conversion shoult take pleace, always is recommended to use a try/catch structure to catch any exception and be able to process as expected. Most of the problems with number conversions came of not testing, with some regex, that the input value is a valid number. Also, many times …

Member Avatar for fadeterra
0
332
Member Avatar for ashwinshenoy

In the resources tab of your project properties, you need to import the image into the resources of the project (not the resource folder). This will create a resource file containing the resources of text, images, icons and any other kind of serializable object you need. Hope this helps

Member Avatar for lolafuertes
0
175
Member Avatar for Leodumbi

Can you be so kind to explain wich method you used to fill the data grid view (or post the code)?

Member Avatar for Leodumbi
0
378
Member Avatar for tomato.pgn

On this [URL="http://sourceforge.net/projects/emule/files/eMule/0.50a/eMule0.50a-Sources.zip/download"]link[/URL] you can download an example of P2P allowing file sharing, messaging between peers, an a few utilities more. This is an open source from Source Forge so you must honor the creator open source license. Hope this helps.

Member Avatar for lolafuertes
0
355
Member Avatar for catcit

I hope you already installed the MySql .Net Connector and you see MySQL Database in the data sources for your project. Please refer to this [URL="http://dev.mysql.com/doc/refman/5.1/en/connector-net-visual-studio-making-a-connection.html"]link[/URL] showing how to do the connection Hope this helps

Member Avatar for lolafuertes
0
162
Member Avatar for WolfShield

@Mitja Bonca: Your answer does not solves the question. Your string length is 10, while the equivalent long length is only 9.

Member Avatar for WolfShield
0
194
Member Avatar for missc

This behaviur is the default. You can change it at Control Panel, Ease of Access Center, Make the keyboard easier to use, and check the option Underline keyboard shortcuts and access keys, then click on Save button, at each computer you want to change it.

Member Avatar for missc
0
135
Member Avatar for swathys

Just to clarify, in your mdb, all the fields of your table are string? Usually, the overflow message cames when you try to insert a non numeric value in a numeric field or a non date (or bad formatted date) in a date field. TIA

Member Avatar for swathys
0
122
Member Avatar for abelLazm

Before exiting the form_key functions, do you set the handled to true, false or do nothing? Did you analize wich control has the focus to change the behaviour?

Member Avatar for abelLazm
0
125
Member Avatar for ChrisHunter

Every drive has a root folder know as "\". So starting at drive letter to search and root dir (IE: "F:\") you can use this to obtain a [URL="http://msdn.microsoft.com/en-us/library/system.io.directoryinfo.aspx"]System.IO.DirectoryInfo[/URL][CODE]var RootDir = new System.IO.DirectoryInfo("F:\\")[/CODE] Just be aware that you need to specify a doube backslash in order to be interpreted a …

Member Avatar for gusano79
0
192
Member Avatar for lgriess

May be helpful to know which ODBC driver are you using? also which parameters?

Member Avatar for lolafuertes
0
172
Member Avatar for VB 2012

Use the Environ function searching for the "SystemDrive". (see [URL="http://msdn.microsoft.com/en-us/library/0fx287h4(v=VS.90).aspx"]this[/URL]) Also you can use the System.Environment.SystemDirectory to get the full path (see [URL="http://msdn.microsoft.com/en-us/library/system.environment.systemdirectory.aspx"]there[/URL])

Member Avatar for lolafuertes
0
119
Member Avatar for RenanLazarotto

Even references a C# solution, have you read [URL="http://dranaxum.wordpress.com/2008/02/25/dynamic-load-net-dll-files-creating-a-plug-in-system-c/"]this[/URL]? Hope this helps

Member Avatar for RenanLazarotto
0
185
Member Avatar for anucom

See [URL="http://msdn.microsoft.com/en-us/library/fht0f5be(v=vs.80).aspx"]string.Format[/URL] and [URL="http://msdn.microsoft.com/en-us/library/dwhawy9k(v=VS.100).aspx"]here[/URL] for standar numbers formatting or [URL="http://msdn.microsoft.com/en-us/library/0c899ak8(v=VS.100).aspx"]here[/URL] for custom formatting. Hope this helps.

Member Avatar for lolafuertes
0
94
Member Avatar for faizshafie
Member Avatar for odica

Did you End your program? I we can see your code, maybe we can better help.

Member Avatar for SARUBA
0
87
Member Avatar for arsheena.alam

If you inherit, the inherited should have the same visibility than the inheritant. If really the only contents is the connecttodatabase, best use private to declare the kaysonsSPdetails class and then use public to declare the connecttodatabase. To use this class, then you can use[CODE]public class DemoDvd { var k …

Member Avatar for lolafuertes
0
462
Member Avatar for ashish101

If I remember well, the new can be ommitted since .NET 2.0 The usage of new was to 'create' a pointer to the method, on versions 1.0 and 1.1, wich contents was used to add or remove it from the list of pointers to be called when an event is …

Member Avatar for lolafuertes
0
136
Member Avatar for emaduddeen

If you need to retrieve the largest value from the table, doing a [CODE]SELECT MAX(CategoryNumber) FROM Categories[/CODE] will return the expected value, that can be read using a data reader into an (i.e.) integer The the result from the query can then be compared with the value entered on the …

Member Avatar for emaduddeen
0
96
Member Avatar for Tommymac501
Member Avatar for paulablanca

I use [URL="http://www.fpoint.com/netproducts/spreadwin/spreadwin.aspx"]FarPoint[/URL] to do this. There are many libraries in the Internet to do it, but Excel. Hope this helps

Member Avatar for lolafuertes
0
54
Member Avatar for jockfaire
Member Avatar for Phil++

On the main form you receive the [B]new[/B] account value created locally (empty / blank). The [B]Account account[/B] variable should be defined in the [B]program[/B] class with public visibility, before the login form is launched. Then the login form mut [B]not[/B] define a local variable intead must use the public …

Member Avatar for abelLazm
0
166
Member Avatar for ryan9108

You must use the same structure than in the button1 on button 2 to fill also the ListBox2 [CODE] ListBox1.Items.Clear() ListBox2.Items.Clear() tt = 0 ara.Sort() For Each I As Integer In ara ListBox1.Items.Add(I) tt += I ListBox2.Items.Add(tt) Next[/CODE] Hope this helps

Member Avatar for lolafuertes
0
151
Member Avatar for Mr.BunyRabit

Yes, you can:[CODE]MydataGridView = null; MyDataGridView = new DataGridView();[/CODE] Hope this helps

Member Avatar for Mr.BunyRabit
0
114
Member Avatar for hughesadam_87
Member Avatar for lolafuertes
0
84
Member Avatar for Vardonir

If all the forms and classes are in the same project, you can add [CODE]using Namespace2[/CODE]in the top of the forms, and you will be able to get the expected sintaxis. Hope this helps

Member Avatar for Vardonir
0
113
Member Avatar for jmensah

The most similar in SQL [CODE]SELECT dbo.Trans_Head.Doc_Date, dbo.Trans_Head.Document_No, dbo.Trans_Head.Account_Type, dbo.NewAccount.Surname + '' + dbo.NewAccount.First_Name AS Account_Holder, dbo.Trans_Details.Account_Name,SUM(ISNULL(CASE dbo.Trans_Details.Trans_type WHEN 'DR' THEN dbo.Trans_Details.Amount ELSE 0 END, 0)) Payemnt, SUM(ISNULL(CASE dbo.Trans_Details.Trans_type WHEN 'CR' THEN dbo.Trans_Details.Amount ELSE 0 END, 0)) Receipts FROM dbo.NewAccount INNER JOIN dbo.Trans_Details ON dbo.NewAccount.Account_no = dbo.Trans_Details.Account_No INNER JOIN dbo.Trans_Head …

Member Avatar for jmensah
0
325
Member Avatar for ChrisHunter

[QUOTE]but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader:[/QUOTE] Can you be so kind to clarify?

Member Avatar for lolafuertes
0
564
Member Avatar for rami2005

Use [CODE] Structure X Public a As Integer Public b As String End Structure[/CODE] Hope this helps

Member Avatar for lolafuertes
0
124
Member Avatar for bestex

Your first field to insert cames from a date picker, so I guess it is a date. If a date field is defined un the user table, you should put a value, between apostrophes like a text, and in the format of yyyy-MM-dd to be clearly understood by MySql like …

Member Avatar for bestex
0
145
Member Avatar for zachattack05

As far a I know, the OnStart will be launched when you issue a Start of the service. This will initialize the service and launch the [B]main[/B] thread. You need to provide a mechanism to stop when the OnStop is launched. Normally an static boolean is enough to [B]notify[/B] the …

Member Avatar for Momerath
0
198
Member Avatar for angelmichael4

Use the SelectedItemChanged on the combo to cath the new selection. Then modify the Unit cost according. Hope this helps

Member Avatar for angelmichael4
0
73
Member Avatar for roymrinal123

See [URL="http://www.daniweb.com/forums/thread104775.html"]here[/URL] as one starting point There are hundreds of examples if you search UPLOAD EXCEL in this site. Hope this helps

Member Avatar for lolafuertes
0
70

The End.