|
|
I found that to. no help sorry
Jan
|
|
|
|
|
Translation: The customization is not installed because another version is currently installed that cannot be upgraded from this location. To install this version of the customization, you must first use Software to remove the following program: CalPicklist. Then install the new customization from the following location: file: /// D: / Stack / Visual Studio 2019 / Projects / Office / Excel / CalPicklist / bin / Release / CalPicklist.vsto
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged (Uri uri, String subscriptionId, Boolean previouslyInstalled)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn ()
Have you done what the message says?
|
|
|
|
|
Hello,
I would like to make a multi Series chart in vb.net how many of series depends on the department and the data gathered from a data-table which is collected from a DataGridView.
The table is shown as follow:
Department Period_Shown Rate_Int
EMW 2018 0.94
EMW 2019 0.55
ACH 2015 0.29
ACH 2016 0.52
ACH 2017 0.56
ACH 2018 0.63
ACH 2019 0.57
It have error on my code and it made the server freeze. Here is the warning message: Using the iteration variable in a query expression may have unexpected result. Instead create a local variable within the loop and assign it value of the iteration variable.Here is the source code for the chart control. Can anyone help me to fix it?
Dim dtRate As New DataTable("dtRate")
For Each cell As TableCell In GridView1.HeaderRow.Cells
dtRate.Columns.Add(cell.Text)
Next
For Each row As GridViewRow In GridView1.Rows
dtRate.Rows.Add()
For i As Integer = 0 To row.Cells.Count - 1
dtRate.Rows(row.RowIndex)(i) = row.Cells(i).Text
Next
Next
Dim Departments As List(Of String) = (From p In dtRate.AsEnumerable() _
Select p.Field(Of String)("Department")).Distinct().ToList()
If RateChart.Series.Count() = 1 Then
RateChart.Series.Remove(RateChart.Series(0))
End If
For Each UserDepartment As String In Departments
Dim x As Integer() = (From p In dtRate.AsEnumerable() _
Where p.Field(Of String)("Department") = UserDepartment _
Order By p.Field(Of Integer)("Shown_Period") _
Select p.Field(Of Integer)("Shown_Period")).ToArray()
Dim y As Integer() = (From p In dtRate.AsEnumerable() _
Where p.Field(Of String)("Department") = UserDepartment _
Order By p.Field(Of Integer)("Shown_Period") _
Select p.Field(Of Integer)("Num_Int")).ToArray()
RateChart.Series.Add(New Series(UserDepartment))
RateChart.Series(UserDepartment).IsValueShownAsLabel = True
RateChart.Series(UserDepartment).BorderWidth = 3
RateChart.Series(UserDepartment).ChartType = SeriesChartType.Line
RateChart.Series(UserDepartment).Points.DataBindXY(x, y)
Next
RateChart.Legends(0).Enabled = True
RateChart.Visible = True
btn_Print.Visible = True
End Sub</<pre lang="vb">
pre>
|
|
|
|
|
|
I need some guidance and advice to build a questionnaire system similar to Google forms that include two parts,
the first part is a desktop system with vb.net or c# and separate SQL server database (it must be a desktop system because it will be part of a vb.net old system, The new project will be called from within the main interface of the old project )
and the second part is a web system, and the two systems are linked to one SQL server database through a local network and a local server
the desktop system builds multiple questionnaires forms and each questionnaire is associated with a specific user to answer these questions through the web system via the username that will be assigned to him by the desktop system... Here, I would like to note that each user has a different questionnaire from the other...
The desktop system will also use the answers to build a dashboard has charts and report based on the analysis of the answers
My questions ...
1- What is the best way to design (questionnaire builder) if I want it to work and similar to Google Forms method and user interface of building questions if each user has its own questionnaire that contains an unlimited set of questions, the new question is added through the Add button and each question is specified by the admin It determines the nature of the answer and the answer and contains a tool to choose a specific classification from a group of classifications that are added to the system, and each question contains in addition to the answers a field of notes and evaluation from 1 to 5, and after building this questionnaire for a specific user it is permanently saved and linked with this user and there is a possibility to edit these questions on This questionnaire for the future.
Is the User Control method the best way to build a question-building interface, or is there a better way and how?
2- What are your tips and directions that help me to build a better design for such a system?
Greetings
|
|
|
|
|
You have posted this here and in the C# forum, but it has nothing to do with either language. This is purely a design question and the choice of language is largely irrelevant.
|
|
|
|
|
"Best" is a very subjective description, what is best for me may not be best for you. There is rarely a single perfect solution to any problem.
You could start here - ASP.NET Simple Survey Application[^] - ignore the language and read the theory.
Until you have decided which language(s) you are going to use then you are better off posting any follow up questions in the correct forum - Design and Architecture Discussion Boards[^]
|
|
|
|
|
Hi, I need help looking for the code to send an image via the bot
|
|
|
|
|
The only code you get is the code YOU WRITE.
There's never just one way to do something in code.
|
|
|
|
|
Helo, acording to this code (In Visual Basic for word):
The code works for me, but it is not what I want...
The problem is: I only wont to select a colored text (example -> A text colored in Red), selecting all the words colored by Red.
I am very frustrated because I have tried everything but it does not work for me.
My goal is taking that colored text to another word document. The most important colored text i have in the document is colored in blue sky.
Sorry for the writing and thank you for your trouble.
Sub ChangeColorWithReplace()
Selection.Find.ClearFormatting
Selection.Find.Font.Color = wdColorRed
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Font.Color = -603914241
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchByte = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
modified 9-Nov-20 12:18pm.
|
|
|
|
|
The code you have shared works perfectly - it finds all text coloured red and replaces it with blank. Which according to the "comment" in the code, and the title of your post, is what it is meant to do.
If you want to get a collection of all of the text in red to do something else with it then try something like this
Sub EditFindLoopExample()
Dim c As Collection
Set c = New Collection
With ActiveDocument.Content.Find
.ClearFormatting
.Font.Color = wdColorRed
Do While .Execute(Forward:=True, Format:=True) = True
With .Parent
If .End = ActiveDocument.Content.End Then
Exit Do
Else
c.Add .Text
End If
End With
Loop
End With
Dim s As Variant
For Each s In c
Debug.Print s
Next
End Sub Here is the link to the Microsoft Support example [^] this was based on -
|
|
|
|
|
Hello All
i am using vb6 source code for sending sms via gsm modem but problem occurs when Mobile set is changed now i want to use HSDPA usb device but problem is that message seam to be sent but recipient does not receive message
i am using AT commands please help me
|
|
|
|
|
Step 1: Stop using VB6 and migrate to .NET.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Dear Friends,
I'm writing you to try to solve a problem,I'm sending some hex value using a serial port to an external device.
It answer to my status request , but instead to show the value of 0x01 in the middle of the data packet it show 0x00.
I'm using a simple vb.net winform on VS2012.
Here the code i'm using:
Imports System
Imports System.IO
Imports System.IO.Ports
Imports System.Text
Imports System.Threading
Public Class Form1
Dim value As Byte
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
SerialPort1.Encoding = System.Text.Encoding.GetEncoding(1252)
SerialPort1.Open()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
SerialPort1.Close()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Dim array(6) As Byte
array(0) = &H3
array(1) = &H1
array(2) = &H1
array(3) = &HA4
array(4) = &HA5
array(5) = &HB2
SerialPort1.Write(array, 0, array.Length)
Label1.Text = ""
For i = 0 To 10
value = SerialPort1.ReadByte()
Label1.Text += value.ToString("x2") + " "
Next
End Sub
I'm receiving that :
03 01 01 A4 A5 B2 00 00 03 00 FC
But as from the device datasheets I must receive:
03 01 01 A4 A5 B2 01 00 03 00 FC
Using a port sniffer I see that the device answer correctly with the value of 0x01.
Somebodys has an idea why from my application I read the byte 6 as 0x00 and not 0x01?
The problem seems to be only with the value 0x00 and 0x01 ....others value are readed correctly(I suppose).
Thanks in advance
Maurizio
modified 6-Nov-20 11:26am.
|
|
|
|
|
Compile error:
User-defined type no defined
What causes this error?
|
|
|
|
|
|
There's no class called "ComboItem" defined in the .NET Framework, and apparently not in your own code either.
Perhaps you're looking for ComboxBoxItem?
|
|
|
|
|
I successfully added controls to my FlowLayoutPanel but they are not named(see code snipped).
This does not work
Player.name = "Player" & +1
So far this works:
Public Class Form1
Private WithEvents Player As AxAXVLC.AxVLCPlugin2
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Player = New AxAXVLC.AxVLCPlugin2
FlowLayoutPanel1.Controls.Add(Player)
Player.playlist.add("VideoUrl")
Player.playlist.play()
End Sub
What do i need to do do give every new Control a name?
and how can i mention them like player1 gets this URL and player2 gets an other URL?
player1.playlist.a... wont work because player1 is not declared.
|
|
|
|
|
At the same time you add the control to the panel, also assign it to a property you can reference; e.g.
public xxxx Player1 ...
Public xxxx Player2 ...
... Add( Player )
if (...)
Player1 =
else
Player2 =
etc.
That way compiler will recognize Player1 and Player2 (even though you haven't created them yet).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
hey, Thank you very much for the reply. This will help alot.
|
|
|
|
|
You're welcome!
Once you get more than a few players, you may want to switch to an array and then use a queue for example to determine who's up next, if it's turn based.
But for 2 players, using dedicated properties makes sense.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I need to call a method (returning void) in an async method.
I have problem with the syntax of the Task.Run() in VB.
I have a working example in C#.
So it's just another: "Parse-this-line-from-C#-into-VB-and-it-should-work".
VB-code
Module Module1
Sub Main()
Console.WriteLine("Start of Run")
Run()
Console.WriteLine("End of Run")
Console.ReadLine()
End Sub
Async Sub Run()
Dim arg = "LEET 1337"
Await Threading.Tasks.Task.Run(Function() Foo(arg))
End Sub
Sub Foo(ByVal asdf As String)
Console.WriteLine("Start of Foo")
Threading.Thread.Sleep(5000)
Console.WriteLine(asdf)
Console.WriteLine("End of Foo")
End Sub
End Module
C#-code
using System;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Start Run");
Run();
Console.WriteLine("End of Run");
Console.ReadLine();
}
static async void Run()
{
var arg = "LEET 1337";
await Task.Run(() => Foo(arg));
}
static void Foo(string asdf)
{
Console.WriteLine("Start Foo");
Thread.Sleep(5000);
Console.WriteLine(asdf);
Console.WriteLine("End of Foo");
}
}
}
|
|
|
|
|
|
Of course I have to switch Function() to Sub()
Thank you for the correction!
|
|
|
|