|
how can i add the serial number function to my project
and that serial could acces for one time like any professional software
|
|
|
|
|
olivertechy wrote: how can i add the serial number function to my project
and that serial could acces for one time like any professional software
Generating a serial number isn't enough; one needs to be able to validate it. That means that you'd need a number that contains a hash, a number that can be calculated, or a number (or sequence of letters) that can be tracked (say, using a database).
If you're unsure what to do, google for "Licensing example C#".
|
|
|
|
|
Hi,
I'm new to VB.net and totally new to XML. I am building a program that receives a response to a XML inquiry from hwresponse.GetResponseStream. So far I have been able to submit the request and receive a response. I now need take that response (in the form of a string) and convert it to a format which will allow me to make decisions based on it. Perhaps by creating dataset/datatable and passing to variables.
I've spent days Googling an can't find anything in VB.net that fits. I know this is down to my lack of knowledge and a tiny brain. I would be eternally grateful to anyone who could help.
Example of response string:
<ew:quote_a2 xmlns:ew="http://www.reifen.net"><documentid>Stock Equiry<variant>5<errorhead><errorcode>915<buyerparty><partyid>4564564<agencycode>91<orderline><lineid>10<orderedarticle><articleidentification><eanuccarticleid>EAN<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>20<orderedarticle><articleidentification><eanuccarticleid>3188642010025<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>30<orderedarticle><articleidentification><eanuccarticleid>3188642037114<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>40<orderedarticle><articleidentification><eanuccarticleid>3188642146762<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>50<orderedarticle><articleidentification><eanuccarticleid>3188642256645<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>60<orderedarticle><articleidentification><eanuccarticleid>3188642258182<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>70<orderedarticle><articleidentification><eanuccarticleid>3188642258199<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>80<orderedarticle><articleidentification><eanuccarticleid>3188642276841<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>90<orderedarticle><articleidentification><eanuccarticleid>3188642315786<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0<orderline><lineid>100<orderedarticle><articleidentification><eanuccarticleid>3188642323231<articledescription><articledescriptiontext><availability>0<requestedquantity><quantityvalue>200<error><errorcode>0<scheduledetails><deliverydate>9999-12-31<availablequantity><quantityvalue>0"
|
|
|
|
|
What does that data represent and what do you want to extract from it? From the repetition pattern it looks as if the query has returned 9 items but you haven't given us much of a clue.
Stock Equiry591545645649110EAN
020009999-12-31 02 03188642010025
020009999-12-31 03 03188642037114
020009999-12-31 04 03188642146762
020009999-12-31 05 03188642256645
020009999-12-31 06 03188642258182
020009999-12-31 07 03188642258199
020009999-12-31 08 03188642276841
020009999-12-31 09 03188642315786
020009999-12-31 010 03188642323231
020009999-12-31 0
|
|
|
|
|
Firstly. Thank you for taking the time to reply.
I receive the response back in a continious string. It's a response to a stock enquiry but in XML format it reads.
The XMl post reads:
Firstly. Thank you for taking the time to reply.
I receive the response back in a continious string. It's a response to a stock enquiry but in XML format it reads.
The XMl post reads:
<pre lang="xml"><?xml version="1.0" encoding="UTF-8"?>
<ew:inquiry_A2 xmlns:ew="http://www.reifen.net">
<DocumentID>A2</DocumentID>
<Variant>5</Variant>
<BuyerParty>
<PartyID>300000</PartyID>
<AgencyCode>91</AgencyCode>
</BuyerParty>
<OrderLine>
<LineID>10</LineID>
<OrderedArticle>
<ArticleIdentification>
<EANUCCArticleID>5452000877154</EANUCCArticleID>
</ArticleIdentification>
<RequestedQuantity>
<QuantityValue>200</QuantityValue>
</RequestedQuantity>
</OrderedArticle>
</OrderLine>
<OrderLine>
<LineID>10</LineID>
<OrderedArticle>
<ArticleIdentification>
<EANUCCArticleID>5452001082922</EANUCCArticleID>
</ArticleIdentification>
<RequestedQuantity>
<QuantityValue>200</QuantityValue>
</RequestedQuantity>
</OrderedArticle>
</OrderLine>
</ew:inquiry_A2></pre>
An example reply would be:
<pre lang="xml"><?xml version="1.0" encoding="UTF-8" ?>
<ew:quote_A2 xmlns:ew="http://www.reifen.net">
<DocumentID>A2</DocumentID>
<Variant>5</Variant>
<ErrorHead>
<ErrorCode>0</ErrorCode>
</ErrorHead>
<BuyerParty>
<PartyID>305026</PartyID>
<AgencyCode>91</AgencyCode>
</BuyerParty>
<OrderLine>
<LineID>10</LineID>
<OrderedArticle>
<ArticleIdentification>
<ManufacturersArticleID>520654</ManufacturersArticleID>
<EANUCCArticleID>5452000877154</EANUCCArticleID>
</ArticleIdentification>
<ArticleDescription>
<ArticleDescriptionText>205/55R16 91H OPTIGRIP FP</ArticleDescriptionText>
</ArticleDescription>
<Availability>3</Availability>
<RequestedQuantity>
<QuantityValue>200</QuantityValue>
</RequestedQuantity>
<Error>
<ErrorCode>0</ErrorCode>
</Error>
<ScheduleDetails>
<DeliveryDate>9999-12-31</DeliveryDate>
<AvailableQuantity>
<QuantityValue>200</QuantityValue>
</AvailableQuantity>
</ScheduleDetails>
</OrderedArticle>
</OrderLine>
<OrderLine>
<LineID>10</LineID>
<OrderedArticle>
<ArticleIdentification>
<ManufacturersArticleID>522794</ManufacturersArticleID>
<EANUCCArticleID>5452001082922</EANUCCArticleID>
</ArticleIdentification>
<ArticleDescription>
<ArticleDescriptionText>205/55R16 91H UG 8 MS FP</ArticleDescriptionText>
</ArticleDescription>
<Availability>2</Availability>
<RequestedQuantity>
<QuantityValue>200</QuantityValue>
</RequestedQuantity>
<Error>
<ErrorCode>0</ErrorCode>
</Error>
<ScheduleDetails>
<DeliveryDate>2013-02-04</DeliveryDate>
<AvailableQuantity>
<QuantityValue>5</QuantityValue>
</AvailableQuantity>
</ScheduleDetails>
<ScheduleDetails>
<DeliveryDate>9999-12-31</DeliveryDate>
<AvailableQuantity>
<QuantityValue>195</QuantityValue>
</AvailableQuantity>
</ScheduleDetails>
</OrderedArticle>
</OrderLine>
</ew:quote_A2></pre>
|
|
|
|
|
Hallo All,
I am having issues with Viewing report that I added to my project and I need your help please.
I am using Access DB, VB 2010, .NET4.5 and As you can tell I am in learning process, so I am new to VB.
Any help given is highly appreciated.
HERE are the Two error I am getting:
1 st one. I want to view Total Profits for all times.
Error "A data source instance has not been supplied for the date source 'AllTimeReportDataset'
I named this on the wizard when I was creating the report wizard but how do I add the data source.
2nd Error: Happens when I want to view Total profits between two Date:
HERE is the Error: The Report definition for the report 'TBS.TotalProfitsBetweenTwoDates.rdlc' has not been specified.
Here is my code:
Private Sub ShowReportBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowReportBtn.Click
If ReportComboBox.Text = "Total Profits for all Times" Then
'Fill the information for the report Selected.
Dim TA As New TBSDSTableAdapters.TotalProfitForALLTimeTableAdapter
Dim SelectedDS As New TBSDS
TA.Fill(SelectedDS.TotalProfitForALLTime)
'Clear previous report run (Data Source) and Display the new report selected
ReportViewer.LocalReport.DataSources.Clear()
'Create a new Data Source now ---selected report from Combo box ---In this case Total report for all time
'Dim RDS As New Microsoft.Reporting.WinForms.ReportDataSource("TBS_TotalProfitForAllTime", SelectedDS.TotalProfitForALLTime)
Dim rds As Microsoft.Reporting.WinForms.ReportDataSource = New Microsoft.Reporting.WinForms.ReportDataSource
rds.Name = "TBSDS_TotalProfitForAllTime"
rds.Value = SelectedDS.TotalProfitForALLTime
'tell the report control to use the data source
'also use the report template created (rds)
ReportViewer.LocalReport.DataSources.Add(rds)
ReportViewer.LocalReport.ReportEmbeddedResource = "TBS.TotalProfitForAllTime.rdlc"
ReportViewer.RefreshReport()
ElseIf ReportComboBox.Text = "Total Profits between two Date" Then
Dim TA As New TBS_RestDSTableAdapters.TotalProfitForALLTimeTableAdapter
Dim SelectedDS As New TBSDS
TA.FillByFilteringBetweenTwoDates(SelectedDS.TotalProfitForALLTime, DateTimePicker1.Value, DateTimePicker2.Value)
'Clear previous report run (Data Source) and Display the new report selected
ReportViewer.LocalReport.DataSources.Clear()
'Create a new Data Source now ---selected report from Combo box ---In this case Total report for all time
''''Dim RDS As New Microsoft.Reporting.WinForms.ReportDataSource("TBS_TotalProfitForAllTime", SelectedDS.TotalProfitForALLTime)
Dim rds As Microsoft.Reporting.WinForms.ReportDataSource = New Microsoft.Reporting.WinForms.ReportDataSource
rds.Name = "TBS_TotalProfitForAllTime"
rds.Value = SelectedDS.TotalProfitForALLTime
'tell the report control to use the data source
'also use the report template created (rds)
ReportViewer.LocalReport.DataSources.Add(rds)
ReportViewer.LocalReport.ReportEmbeddedResource = "TBS.TotalProfitsBetweenTwoDates.rdlc"
ReportViewer.RefreshReport()
End If
End Sub
Again, Any help given is highly appreciated.
Thank you in advance.
|
|
|
|
|
Can Anyone help me here please.
Thanks for your efforts in advance.
|
|
|
|
|
Hello
I want to make my VB 2011 program detect the connected mobile device name via USB. or get the serial number.
Thanks
sorry for my bad english
|
|
|
|
|
sir actually my main aim is to call the notepad .exe in the system using parallel port. for that i thought i will arrange an ir interrupt to the parallel port and the parallel port which is connected to the system. In the system using the vb script and interfacing the parallel port with it can help me in calling the notepad.exe file Now i am not knowing how to write the program in the vb script...plz plz plz help me..
|
|
|
|
|
|
can i develop a software that splits ,joins,compress and decompress using visual basic 8.0?
|
|
|
|
|
Yes, if you have some programming skills. Google or MSDN will help you to find the documentation for each feature.
|
|
|
|
|
Since we know absolutely nothing ablut you and your skill set, it's impossible to answer this question.
Can any one of us do it?? Sure!
Can you?? We have no idea.
|
|
|
|
|
insert multiple values in single column from diff text boxes in dtabase using vb.net
|
|
|
|
|
Is there a question, or are you asking for permission?
|
|
|
|
|
You can concatenate all the values in the textboxes and insert them into a column. Or delimit them with a character and insert them.
Either way you can only have one piece of information inside a column.
|
|
|
|
|
try this:
Private Sub insertData()
Try
Dim con As SqlConnection = Nothing
Dim cmd As SqlCommand = Nothing
con = New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("inline").ConnectionString)
con.Open()
cmd = New SqlCommand("insert into table_name(column_Name) values ('" + TextBox1.Text + "," + TextBox2.Text + "')", con)
cmd.ExecuteNonQuery()
con.Close()
lblMsg.Text = "Saved Successfully"
Catch ex As Exception
lblMsg.Text = ex.Message
End Try
End Sub
|
|
|
|
|
Hello........
I am beginner in c# programming, want to know when we feed a text box then which event occurs and how does it work. Kindly explain it in detail.......
Soon reply will be appreciated.....!!!!
Thanks...
|
|
|
|
|
Please get yoursel a good book on the subject; posting questions here is not the way to learn programming. For a start you could read .NET Book Zero[^], and then work through these tutorials[^].
|
|
|
|
|
Please post C# questions in the C# forum[^].
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em> ProgramFOX
|
|
|
|
|
Hello..........
I am beginner in c# programming, want to know How does this code executes. Kindly describe in detail.
!System.Text.RegularExpressions.Regex.IsMatch(e.KeyChar.ToString(), "\\d+")
Soon reply will be appreciated.....!!!!
Thanks....
|
|
|
|
|
Calls the method "IsMatch" on the Regex class (from the "System.Text.RegularExpressions" namespace), with the arguments of the current keycharacter (provided by an event you did not copy/paste) and a RegEx. Then it inverses the outcome.
Not very helpful, is it? It compares a key with a RegEx and reports whether they match. You'd have to look up the "\\d+" part on this page[^] from MSDN, I don't know the regex-code from my head.
|
|
|
|
|
It tests whether the e.KeyChar property (which is presumably a char ) is not (note the ! at the start) a decimal digit.
It's a significantly less efficient version of:
!(e.KeyChar >= '0' && e.KeyChar <= '9')
or:
(e.KeyChar < '0' || e.KeyChar > '9')
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello..........
I am vipin saini,beginner in c# programming, want to know how to add masked text box to my visual studio toolbox control?????
Early reply will be appreciated!!!!!!
Thanks...
|
|
|
|
|
Member 9621354 wrote: beginner in c# programming Did you notice that this is the Visual Basic forum? Also a Google search for "masked text box" should find you some useful reading material.
|
|
|
|